aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdb_ptrace.h
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
parentc060226ad07dc40da26ecf8483a911cf3f18cb81 (diff)
downloadgdb-09de9781bdd949cdd00adec6e0693a0d79d70463.zip
gdb-09de9781bdd949cdd00adec6e0693a0d79d70463.tar.gz
gdb-09de9781bdd949cdd00adec6e0693a0d79d70463.tar.bz2
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 71b448f..8ee8c4e 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