Passing piped commands as argument to gdb

Mahmood N <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <942706119.96593.1419242961644.JavaMail.yahoo@jws10627.mail.bf1.yahoo.com>
Hi

I have a large bz file which is piped to a program like this
    bzcat file.bz2 |./run_prog 6
Now I want to use gdb, however the following command fails
    gdb --args  bzcat file.bz2 |./run_prog 6



What is the correct format?

Regards,
Mahmood
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.