From 267bf4bb327983b8cc59ebdb2a072e09954118b4 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sat, 26 Oct 2002 14:58:42 +0000 Subject: [PATCH] * i386-tdep.c (i386_frame_saved_pc): Replace call to deprecated_read_register_dummy with frame_unwind_unsigned_register. --- gdb/ChangeLog | 4 ++++ gdb/i386-tdep.c | 8 ++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4abddcdc345..00be9c2770a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2002-10-26 Mark Kettenis + * 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 diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c index 252a9b7c28b..ab1945fea66 100644 --- a/gdb/i386-tdep.c +++ b/gdb/i386-tdep.c @@ -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); -- 2.30.2