]> git.pld-linux.org Git - packages/gdb.git/blob - gdb-sparcmin.patch
- updated for 6.3
[packages/gdb.git] / gdb-sparcmin.patch
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
3 @@ -39,6 +39,15 @@
4  # include <ptrace.h>
5  #else
6  # ifdef HAVE_SYS_PTRACE_H
7 +
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
13 +#undef  PT_DETACH
14 +#endif
15 +
16  #  include <sys/ptrace.h>
17  # endif
18  #endif
19 @@ -69,6 +78,11 @@
20  #endif
21  #if !defined (PT_KILL)
22  #define PT_KILL                8       /* Send child a SIGKILL signal */
23 +#endif
24 +
25 +#if defined(__sparc__) && defined(__linux__)
26 +#undef  PT_DETACH
27 +#define PT_DETACH       PTRACE_SUNDETACH
28  #endif
29  
30  #ifndef PT_ATTACH
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
33 @@ -23,7 +23,23 @@
34  #include "gdbcore.h"
35  
36  #include <signal.h>
37 +
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
43 +#undef  PT_ATTACH
44 +#undef  PT_DETACH
45 +#endif
46 +
47  #include <sys/ptrace.h>
48 +
49 +#if defined(__sparc__) && defined(__linux__)
50 +#undef  PT_DETACH
51 +#define PT_DETACH PTRACE_SUNDETACH
52 +#endif
53 +
54  #include <sys/wait.h>
55  #ifdef __linux__
56  #include <asm/reg.h>
This page took 0.076078 seconds and 3 git commands to generate.