aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386bsd-tdep.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2003-03-02 17:05:18 +0000
committerMark Kettenis <kettenis@gnu.org>2003-03-02 17:05:18 +0000
commitb4700d91c922f8ab888fd0259f3bb410c7a6ad3c (patch)
tree1534c4bb1f98426b0aadd33882dd54531faf8b8b /gdb/i386bsd-tdep.c
parent645dd5195587b4bac65332f5546d52c868a8df1e (diff)
downloadfsf-binutils-gdb-b4700d91c922f8ab888fd0259f3bb410c7a6ad3c.zip
fsf-binutils-gdb-b4700d91c922f8ab888fd0259f3bb410c7a6ad3c.tar.gz
fsf-binutils-gdb-b4700d91c922f8ab888fd0259f3bb410c7a6ad3c.tar.bz2
* i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
get_frame_base.
Diffstat (limited to 'gdb/i386bsd-tdep.c')
-rw-r--r--gdb/i386bsd-tdep.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/i386bsd-tdep.c b/gdb/i386bsd-tdep.c
index af30df1..c0c544d 100644
--- a/gdb/i386bsd-tdep.c
+++ b/gdb/i386bsd-tdep.c
@@ -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. */