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] FreeBSD/alpha ARI fix


The ARI spotted this one.

Committed.

Mark


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

	* alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
	frame_unwind_register_unsigned instead of
	frame_unwind_unsigned_register.

Index: alphafbsd-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/alphafbsd-tdep.c,v
retrieving revision 1.10
diff -u -p -r1.10 alphafbsd-tdep.c
--- alphafbsd-tdep.c 11 Jul 2003 21:49:04 -0000 1.10
+++ alphafbsd-tdep.c 31 Aug 2003 12:55:02 -0000
@@ -81,10 +81,7 @@ alphafbsd_sigtramp_offset (CORE_ADDR pc)
 static CORE_ADDR
 alphafbsd_sigcontext_addr (struct frame_info *next_frame)
 {
-  ULONGEST sp;
-
-  frame_unwind_unsigned_register (next_frame, ALPHA_SP_REGNUM, &sp);
-  return sp + 24;
+  return frame_unwind_register_unsigned (next_frame, ALPHA_SP_REGNUM) + 24;
 }
 
 /* FreeBSD 5.0-RELEASE or later.  */


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