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: Mahmood N <nt_mahmood at yahoo dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: "gdb at sourceware dot org" <gdb at sourceware dot org>
- Date: Mon, 22 Dec 2014 10:40:12 +0000 (UTC)
- Subject: Re: Passing piped commands as argument to gdb
- Authentication-results: sourceware.org; auth=none
- References: <20141222101613 dot GA15179 at host2 dot jankratochvil dot net>
- Reply-to: Mahmood N <nt_mahmood at yahoo dot com>
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