* i386-tdep.c (i386go32_frame_saved_pc): New function.
authorAndrew Cagney <cagney@redhat.com>
Sun, 2 Dec 2001 18:29:08 +0000 (18:29 +0000)
committerAndrew Cagney <cagney@redhat.com>
Sun, 2 Dec 2001 18:29:08 +0000 (18:29 +0000)
* config/i386/tm-go32.h (i386go32_frame_saved_pc): Declare.
(FRAME_SAVED_PC): Redefine to i386go32_frame_saved_pc.

gdb/ChangeLog
gdb/config/i386/tm-go32.h
gdb/i386-tdep.c

index 82e143da8f0c473c381881c5e4d089682518e81f..a4f02a46553b4dbf13f518956afa3f8487cac90e 100644 (file)
@@ -1,3 +1,9 @@
+2001-12-02  Andrew Cagney  <ac131313@redhat.com>
+
+       * 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  <ac131313@redhat.com>
 
        * defs.h: Update comment on HOST_BYTE_ORDER.
index 024f4fbe355e6e4817c9872dfe35cd83600bceaa..b660827bd66515acf658e7d48f842c7081b96a33 100644 (file)
@@ -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.  */
 
index 0908273c76ed37925891e9685b9f6558928a0b34..bfab2430e71a87a0e946bc0a631fe7a4bfee9698 100644 (file)
@@ -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
This page took 0.043393 seconds and 4 git commands to generate.