This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH/i386newframe] Fix problems with Linux/i386 and Linux/x86-64


Checked in.

Mark


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

	* i386-linux-tdep.c (i386_linux_sigcontext_addr): Call read_memory
	with correct arguments.
	* config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.

Index: i386-linux-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/i386-linux-tdep.c,v
retrieving revision 1.26.2.3
diff -u -p -r1.26.2.3 i386-linux-tdep.c
--- i386-linux-tdep.c 17 May 2003 15:34:56 -0000 1.26.2.3
+++ i386-linux-tdep.c 17 May 2003 22:42:03 -0000
@@ -277,7 +277,7 @@ i386_linux_sigcontext_addr (struct frame
       /* The sigcontext structure is part of the user context.  A
 	 pointer to the user context is passed as the third argument
 	 to the signal handler.  */
-      read_memory (sp + 8, 4, buf);
+      read_memory (sp + 8, buf, 4);
       ucontext_addr = extract_unsigned_integer (buf, 4) + 20;
       return ucontext_addr + I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET;
     }
Index: config/i386/x86-64linux.mt
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/x86-64linux.mt,v
retrieving revision 1.6.20.2
diff -u -p -r1.6.20.2 x86-64linux.mt
--- config/i386/x86-64linux.mt 17 May 2003 15:25:57 -0000 1.6.20.2
+++ config/i386/x86-64linux.mt 17 May 2003 22:42:03 -0000
@@ -1,6 +1,6 @@
 # Target: AMD x86-64 running GNU/Linux
 TDEPFILES= x86-64-tdep.o x86-64-linux-tdep.o \
-	i386-tdep.o i387-tdep.o \
+	i386-tdep.o i387-tdep.o i386-linux-tdep.o \
 	solib.o solib-svr4.o solib-legacy.o
 TM_FILE=tm-x86-64linux.h
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]