* i386-tdep.c (i386_frame_saved_pc): Replace call to
authorMark Kettenis <kettenis@gnu.org>
Sat, 26 Oct 2002 14:58:42 +0000 (14:58 +0000)
committerMark Kettenis <kettenis@gnu.org>
Sat, 26 Oct 2002 14:58:42 +0000 (14:58 +0000)
deprecated_read_register_dummy with
frame_unwind_unsigned_register.

gdb/ChangeLog
gdb/i386-tdep.c

index 4abddcdc3458a7ea245888ace57b71b427f802ed..00be9c2770a818b41d47f50a4356672fe1cf9318 100644 (file)
@@ -1,5 +1,9 @@
 2002-10-26  Mark Kettenis  <kettenis@gnu.org>
 
+       * i386-tdep.c (i386_frame_saved_pc): Replace call to
+       deprecated_read_register_dummy with
+       frame_unwind_unsigned_register.
+
        * i386-tdep.c (i386_extract_struct_value_address): Use
        regcache_raw_read_unsigned instead of
        regcache_cooked_read_unsigned since we know that the register
index 252a9b7c28b102ac789ce207e2b2a9edb5690d6e..ab1945fea66927d5e988313de5e58f1db95aeb3a 100644 (file)
@@ -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);