Passing piped commands as argument to gdb

Mahmood N nt_mahmood@yahoo.com
Mon Dec 22 14:43:00 GMT 2014


Yes I know. As I said in my previous email, your method generally works and I tested that. This is a different problem.

What you wrote, and what I tested results in the execution of the program under gdb. So it start and run the program. Now, I want to first set a breakpoint then run the program under gdb. Pasting the commands one more time, I get this error

 
$ 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])

Regards,
Mahmood



More information about the Gdb mailing list