aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386-tdep.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2002-10-26 14:58:42 +0000
committerMark Kettenis <kettenis@gnu.org>2002-10-26 14:58:42 +0000
commit267bf4bb327983b8cc59ebdb2a072e09954118b4 (patch)
treea74b2d1a07988c245c29fcf3eff979bcfb83927f /gdb/i386-tdep.c
parent751f1375d662b14f8550bd4821d8fd76f308ef0c (diff)
downloadgdb-267bf4bb327983b8cc59ebdb2a072e09954118b4.zip
gdb-267bf4bb327983b8cc59ebdb2a072e09954118b4.tar.gz
gdb-267bf4bb327983b8cc59ebdb2a072e09954118b4.tar.bz2
* i386-tdep.c (i386_frame_saved_pc): Replace call to
deprecated_read_register_dummy with frame_unwind_unsigned_register.
Diffstat (limited to 'gdb/i386-tdep.c')
-rw-r--r--gdb/i386-tdep.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c
index 252a9b7..ab1945f 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);