Passing piped commands as argument to gdb

Mahmood N nt_mahmood@yahoo.com
Mon Dec 22 10:40:00 GMT 2014


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



More information about the Gdb mailing list