This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]