1 --- gdb-4.18/gdb/infptrace.c.sparc Wed Apr 14 17:36:29 1999
2 +++ gdb-4.18/gdb/infptrace.c Wed Apr 14 17:38:03 1999
6 # ifdef HAVE_SYS_PTRACE_H
8 +#if defined(__sparc__) && defined(__linux__)
9 +#undef PTRACE_GETREGS /* XXX noise from <sys/ptrace.h> */
10 +#undef PTRACE_SETREGS
11 +#undef PTRACE_GETFPREGS
12 +#undef PTRACE_SETFPREGS
16 # include <sys/ptrace.h>
21 #if !defined (PT_KILL)
22 #define PT_KILL 8 /* Send child a SIGKILL signal */
25 +#if defined(__sparc__) && defined(__linux__)
27 +#define PT_DETACH PTRACE_SUNDETACH
31 --- gdb-4.18/gdb/sparc-nat.c.sparc Wed Apr 14 17:38:52 1999
32 +++ gdb-4.18/gdb/sparc-nat.c Wed Apr 14 17:39:43 1999
38 +#if defined(__sparc__) && defined(__linux__)
39 +#undef PTRACE_GETREGS /* XXX noise from <sys/ptrace.h> */
40 +#undef PTRACE_SETREGS
41 +#undef PTRACE_GETFPREGS
42 +#undef PTRACE_SETFPREGS
47 #include <sys/ptrace.h>
49 +#if defined(__sparc__) && defined(__linux__)
51 +#define PT_DETACH PTRACE_SUNDETACH