From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Mahmood N <nt_mahmood@yahoo.com>
Cc: "gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: Passing piped commands as argument to gdb
Date: Mon, 22 Dec 2014 10:16:00 -0000 [thread overview]
Message-ID: <20141222101613.GA15179@host2.jankratochvil.net> (raw)
In-Reply-To: <942706119.96593.1419242961644.JavaMail.yahoo@jws10627.mail.bf1.yahoo.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
next prev parent reply other threads:[~2014-12-22 10:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-22 10:09 Mahmood N
2014-12-22 10:16 ` Jan Kratochvil [this message]
2014-12-22 10:40 ` Mahmood N
2014-12-22 13:55 ` Jan Kratochvil
2014-12-22 14:43 ` Mahmood N
2014-12-22 14:46 ` Jan Kratochvil
2014-12-22 17:20 ` Mahmood N
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20141222101613.GA15179@host2.jankratochvil.net \
--to=jan.kratochvil@redhat.com \
--cc=gdb@sourceware.org \
--cc=nt_mahmood@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox