From: Mahmood N <nt_mahmood@yahoo.com>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: "gdb@sourceware.org" <gdb@sourceware.org>
Subject: Re: Passing piped commands as argument to gdb
Date: Mon, 22 Dec 2014 10:40:00 -0000 [thread overview]
Message-ID: <829998882.105409.1419244812763.JavaMail.yahoo@jws10620.mail.bf1.yahoo.com> (raw)
In-Reply-To: <20141222101613.GA15179@host2.jankratochvil.net>
Thanks. Generally it works. However, when I start the command, the program is run, I want to set a breakpoint at line 26 in my code which is the beginning of the readings
However, here is what I get
$ g++ -g -ggdb -o dir-pred dir-pred.cpp
$ rm pipe
$ mknod pipe p
$ bzcat file.bz2 > pipe &
[1] 18321
$ gdb
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-60.el6)
(gdb) break dir-pred.cpp:26
No symbol table is loaded. Use the "file" command.
Make breakpoint pending on future shared library load? (y or [n])
Should I say Y or N?
Regards,
Mahmood
next prev parent reply other threads:[~2014-12-22 10:40 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
2014-12-22 10:40 ` Mahmood N [this message]
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=829998882.105409.1419244812763.JavaMail.yahoo@jws10620.mail.bf1.yahoo.com \
--to=nt_mahmood@yahoo.com \
--cc=gdb@sourceware.org \
--cc=jan.kratochvil@redhat.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