[PATCH/SPARC] Make "sparc/nm-linux.h" 64-bit friendly

Mark Kettenis kettenis@chello.nl
Sun Nov 2 10:20:00 GMT 2003


Without this patch, things go very wrong for a 64-bit GDB.

Committed to the SPARC-branch.

Mark


Index: ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>

	* config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
	Define.

Index: config/sparc/nm-linux.h
===================================================================
RCS file: /cvs/src/src/gdb/config/sparc/nm-linux.h,v
retrieving revision 1.6.50.1
diff -u -p -r1.6.50.1 nm-linux.h
--- config/sparc/nm-linux.h 25 Oct 2003 18:42:28 -0000 1.6.50.1
+++ config/sparc/nm-linux.h 2 Nov 2003 10:18:34 -0000
@@ -25,6 +25,13 @@
 
 #include "config/nm-linux.h"
 
+/* Type of the third argument to the `ptrace' system call.  */
+#define PTRACE_ARG3_TYPE long
+
+/* Type of the fourth argument to the `ptrace' system call.  */
+#define PTRACE_XFER_TYPE long
+
+/* Override copies of {fetch,store}_inferior_registers in `infptrace.c'.  */
 #define FETCH_INFERIOR_REGISTERS
 
 #endif /* nm-linux.h */



More information about the Gdb-patches mailing list