From 22797942c46da1d57fbf609287ca44b9a4eabdf3 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Sun, 2 Dec 2001 18:29:08 +0000 Subject: [PATCH] * 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. --- gdb/ChangeLog | 6 ++++++ gdb/config/i386/tm-go32.h | 3 ++- gdb/i386-tdep.c | 6 ++++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 82e143da8f0..a4f02a46553 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2001-12-02 Andrew Cagney + + * 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. + 2001-12-01 Andrew Cagney * defs.h: Update comment on HOST_BYTE_ORDER. diff --git a/gdb/config/i386/tm-go32.h b/gdb/config/i386/tm-go32.h index 024f4fbe355..b660827bd66 100644 --- a/gdb/config/i386/tm-go32.h +++ b/gdb/config/i386/tm-go32.h @@ -45,8 +45,9 @@ #define FRAMELESS_FUNCTION_INVOCATION(FI) \ (frameless_look_for_prologue(FI)) +extern CORE_ADDR i386go32_frame_saved_pc (struct frame_info *frame); #undef FRAME_SAVED_PC -#define FRAME_SAVED_PC(FRAME) (read_memory_integer ((FRAME)->frame + 4, 4)) +#define FRAME_SAVED_PC(FRAME) (i386go32_frame_saved_pc ((FRAME))) /* Support for longjmp. */ diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c index 0908273c76e..bfab2430e71 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 -- 2.30.2