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] Fix amd64 compilation


Apparently Andrew missed the push_dummy_call() in x86-64-tdep.c.

Committed.

Index: ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>
 
	* x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
	function signature.

Index: x86-64-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/x86-64-tdep.c,v
retrieving revision 1.74
diff -u -p -r1.74 x86-64-tdep.c
--- x86-64-tdep.c 31 May 2003 16:49:18 -0000 1.74
+++ x86-64-tdep.c 31 May 2003 16:52:25 -0000
@@ -754,9 +754,10 @@ x86_64_store_return_value (struct type *
 
 
 static CORE_ADDR
-x86_64_push_dummy_call (struct gdbarch *gdbarch, struct regcache *regcache,
-			CORE_ADDR dummy_addr, int nargs, struct value **args,
-			CORE_ADDR sp, int struct_return, CORE_ADDR struct_addr)
+x86_64_push_dummy_call (struct gdbarch *gdbarch, CORE_ADDR func_addr,
+			struct regcache *regcache, CORE_ADDR bp_addr,
+			int nargs, struct value **args,	CORE_ADDR sp,
+			int struct_return, CORE_ADDR struct_addr)
 {
   char buf[8];
 
@@ -772,7 +773,7 @@ x86_64_push_dummy_call (struct gdbarch *
 
   /* Store return address.  */
   sp -= 8;
-  store_unsigned_integer (buf, 8, dummy_addr);
+  store_unsigned_integer (buf, 8, bp_addr);
   write_memory (sp, buf, 8);
 
   /* Finally, update the stack pointer...  */


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