This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Get rid of a deprecated function call in i386-tdep.c
- From: Mark Kettenis <kettenis at chello dot nl>
- To: gdb-patches at sources dot redhat dot com
- Date: Sat, 26 Oct 2002 17:13:56 +0200 (CEST)
- Subject: [PATCH] Get rid of a deprecated function call in i386-tdep.c
Checked in.
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* i386-tdep.c (i386_frame_saved_pc): Replace call to
deprecated_read_register_dummy with
frame_unwind_unsigned_register.
Index: i386-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/i386-tdep.c,v
retrieving revision 1.89
diff -u -p -r1.89 i386-tdep.c
--- i386-tdep.c 26 Oct 2002 14:41:37 -0000 1.89
+++ i386-tdep.c 26 Oct 2002 14:57:07 -0000
@@ -535,8 +535,12 @@ static CORE_ADDR
i386_frame_saved_pc (struct frame_info *frame)
{
if (PC_IN_CALL_DUMMY (frame->pc, 0, 0))
- return deprecated_read_register_dummy (frame->pc, frame->frame,
- PC_REGNUM);
+ {
+ ULONGEST pc;
+
+ frame_unwind_unsigned_register (frame, PC_REGNUM, &pc);
+ return pc;
+ }
if (frame->signal_handler_caller)
return i386_sigtramp_saved_pc (frame);