This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Some questions about using gdb catch syscall function
- From: "Nan Xiao" <xiaonan19830818 at qq dot com>
- To: "gdb" <gdb at sourceware dot org>
- Date: Tue, 9 Dec 2014 10:16:46 +0800
- Subject: Some questions about using gdb catch syscall function
- Authentication-results: sourceware.org; auth=none
Hi all,
I am using gdb's catch syscall function(https://sourceware.org/gdb/onlinedocs/gdb/Set-Catchpoints.html#index-catch-syscall), and meets some issues. The procedure of running gdb is like this:
(gdb) catch syscall
warning: Can not parse XML syscalls information; XML support was disabled at compile time.
Catchpoint 1 (any syscall)
(gdb) catch syscall 1
Catchpoint 2 (syscall 1)
(gdb) catch syscall read
Unknown syscall name 'read'.
My questions are:
(1) gdb prints "warning: Can not parse XML syscalls information; XML support was disabled at compile time.". Does it affect the normal use of catch function? It seems the gdb can set catchpoint normally.
(2) I can use "catch syscall number" correctly, why can't use "catch syscall name"?
P.S., my gdb is 7.8.1 and runs on Linux X86.
Could anyone give any comments about this issue? Thanks very much in advance!
Best Regards
Nan Xiao