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.
This commit is contained in:
David S. Miller
2010-02-24 15:14:31 +00:00
parent c060226ad0
commit 09de9781bd
7 changed files with 752 additions and 2 deletions

View File

@@ -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