This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Passing piped commands as argument to gdb
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Mahmood N <nt_mahmood at yahoo dot com>
- Cc: "gdb at sourceware dot org" <gdb at sourceware dot org>
- Date: Mon, 22 Dec 2014 11:16:13 +0100
- Subject: Re: Passing piped commands as argument to gdb
- Authentication-results: sourceware.org; auth=none
- References: <942706119 dot 96593 dot 1419242961644 dot JavaMail dot yahoo at jws10627 dot mail dot bf1 dot yahoo dot com>
On Mon, 22 Dec 2014 11:09:21 +0100, Mahmood N wrote:
> 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
mknod pipe p
bzcat file.bz2 >pipe &
gdb ./run_prog -ex 'run <pipe 6'
Jan