This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug cli/7754] ``(gdb) strace'' command
- From: "pedro at codesourcery dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 7 Apr 2010 17:36:30 -0000
- Subject: [Bug cli/7754] ``(gdb) strace'' command
- References: <20020814165801.7754.ac131313@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- 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.