aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386-tdep.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-12-02 18:29:08 +0000
committerAndrew Cagney <cagney@redhat.com>2001-12-02 18:29:08 +0000
commit22797942c46da1d57fbf609287ca44b9a4eabdf3 (patch)
treef0cb1d1d1bcac0c1e7d6b2c67a5cde15f5f05e4c /gdb/i386-tdep.c
parentd75bc93d66dd0f1b1899ad343853a962c0bbdcb4 (diff)
downloadgdb-22797942c46da1d57fbf609287ca44b9a4eabdf3.zip
gdb-22797942c46da1d57fbf609287ca44b9a4eabdf3.tar.gz
gdb-22797942c46da1d57fbf609287ca44b9a4eabdf3.tar.bz2
* i386-tdep.c (i386go32_frame_saved_pc): New function.
* config/i386/tm-go32.h (i386go32_frame_saved_pc): Declare. (FRAME_SAVED_PC): Redefine to i386go32_frame_saved_pc.
Diffstat (limited to 'gdb/i386-tdep.c')
-rw-r--r--gdb/i386-tdep.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c
index 0908273..bfab243 100644
--- a/gdb/i386-tdep.c
+++ b/gdb/i386-tdep.c
@@ -508,6 +508,12 @@ i386_frame_saved_pc (struct frame_info *frame)
return read_memory_unsigned_integer (frame->frame + 4, 4);
}
+CORE_ADDR
+i386go32_frame_saved_pc (struct frame_info *frame)
+{
+ return read_memory_integer (frame->frame + 4, 4);
+}
+
/* Immediately after a function call, return the saved pc. */
CORE_ADDR