* i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
authorMark Kettenis <kettenis@gnu.org>
Sun, 2 Mar 2003 17:05:18 +0000 (17:05 +0000)
committerMark Kettenis <kettenis@gnu.org>
Sun, 2 Mar 2003 17:05:18 +0000 (17:05 +0000)
get_frame_base.

gdb/ChangeLog
gdb/i386bsd-tdep.c

index 5a109391adda699f431fd2cf1a940fd310b70ebb..d6de92eedb5738d4f4cf01cf180165a9d5782ebe 100644 (file)
@@ -1,5 +1,8 @@
 2003-03-02  Mark Kettenis  <kettenis@gnu.org>
 
+       * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
+       get_frame_base.
+
        * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
        DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
 
index af30df11e264c7ca49e93a65f678e45356c91cfc..c0c544de52d039573317690aaa1608939ad7e58c 100644 (file)
@@ -50,11 +50,13 @@ i386bsd_pc_in_sigtramp (CORE_ADDR pc, char *name)
 CORE_ADDR
 i386bsd_sigcontext_addr (struct frame_info *frame)
 {
-  if (frame->next)
+  struct frame_info *next_frame = get_next_frame (frame);
+
+  if (next_frame)
     /* If this isn't the top frame, the next frame must be for the
        signal handler itself.  A pointer to the sigcontext structure
        is passed as the third argument to the signal handler.  */
-    return read_memory_unsigned_integer (frame->next->frame + 16, 4);
+    return read_memory_unsigned_integer (get_frame_base (next_frame) + 16, 4);
 
   /* This is the top frame.  We'll have to find the address of the
      sigcontext structure by looking at the stack pointer.  */
This page took 0.03011 seconds and 4 git commands to generate.