This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Passing piped commands as argument to gdb
- From: Mahmood N <nt_mahmood at yahoo dot com>
- To: "gdb at sourceware dot org" <gdb at sourceware dot org>
- Date: Mon, 22 Dec 2014 10:09:21 +0000 (UTC)
- Subject: Passing piped commands as argument to gdb
- Authentication-results: sourceware.org; auth=none
- Reply-to: Mahmood N <nt_mahmood at yahoo dot 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