[Bug cli/7754] ``(gdb) strace'' command

pedro at codesourcery dot com sourceware-bugzilla@sourceware.org
Wed Apr 7 17:36:00 GMT 2010


------- Additional Comments From pedro at codesourcery dot com  2010-04-07 17:36 -------
I don't think that with "catch syscall" alone, you can do what the PR
suggests:

 (gdb) set strace on
 (gdb) next
 open("/non/existant/file", 0) = -1, ENOENT
 11    fprintf (...);

Note that this will print info about any syscall the program did
during the "next", and that the "next" wasn't cancelled when the
syscall even was reported.  You may add for example a "continue"
command to a catch syscall to emulate the strace tool, but that
will forget about your "next".


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=7754

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the Gdb-prs mailing list