aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid S. Miller <davem@redhat.com>2010-02-24 15:14:31 +0000
committerDavid S. Miller <davem@redhat.com>2010-02-24 15:14:31 +0000
commit09de9781bdd949cdd00adec6e0693a0d79d70463 (patch)
treef013dfddf91d156bb093b2521f4c5fa0090f194d /gdb/gdb_ptrace.h
parent PR binutils/6773 (diff)
downloadbinutils-gdb-09de9781bdd949cdd00adec6e0693a0d79d70463.tar.gz
binutils-gdb-09de9781bdd949cdd00adec6e0693a0d79d70463.tar.bz2
binutils-gdb-09de9781bdd949cdd00adec6e0693a0d79d70463.zip
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