summaryrefslogtreecommitdiff
path: root/gdb/gdb_ptrace.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@redhat.com>2010-02-24 15:14:30 +0000
committerDavid S. Miller <davem@redhat.com>2010-02-24 15:14:30 +0000
commit2ce44621c197854d3eeeae52be5216136b8a414f (patch)
tree0abf52a6007d20c8f08dfc4e93c1bec45ca02176 /gdb/gdb_ptrace.h
parent9da779365c02b4a979f58503157c0a86866d1741 (diff)
downloadgdb-2ce44621c197854d3eeeae52be5216136b8a414f.tar.gz
gdb: Add sparc*-*-linux catch syscall support.
2010-02-24 David S. Miller <davem@davemloft.net> * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it. * syscalls/sparc-linux.xml: New. * syscalls/sparc64-linux.xml: New. * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files. * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define. (sparc32_linux_get_syscall_number): New function. (sparc32_linux_init_abi): Set syscall XML file name and hook up syscall number fetcher. * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define. (sparc64_linux_get_syscall_number): New function. (sparc64_linux_init_abi): Set syscall XML file name and hook up syscall number fetcher.
Diffstat (limited to 'gdb/gdb_ptrace.h')
-rw-r--r--gdb/gdb_ptrace.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/gdb_ptrace.h b/gdb/gdb_ptrace.h
index 71b448fb03b..8ee8c4eea35 100644
--- a/gdb/gdb_ptrace.h
+++ b/gdb/gdb_ptrace.h
@@ -115,7 +115,11 @@
and there is probably no special request that we would be required
to use when resuming the execution of our program. */
#ifndef PT_SYSCALL
-# define PT_SYSCALL PT_CONTINUE
+# ifdef PTRACE_SYSCALL
+# define PT_SYSCALL PTRACE_SYSCALL
+#else
+# define PT_SYSCALL PT_CONTINUE
+# endif
#endif
/* Some systems, in particular DEC OSF/1, Digital Unix, Compaq Tru64