diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-01-08 15:56:38 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-01-08 15:56:38 +0000 |
commit | 11c02a10e2ffb85de364eb178f28209885b82231 (patch) | |
tree | 3279a2d6139cce0d41b6ade4e5ae4203f439ad38 /gdb/x86-64-linux-tdep.c | |
parent | 626d0adf8438a379bc7931194ce8952354d618e5 (diff) | |
download | gdb-11c02a10e2ffb85de364eb178f28209885b82231.zip gdb-11c02a10e2ffb85de364eb178f28209885b82231.tar.gz gdb-11c02a10e2ffb85de364eb178f28209885b82231.tar.bz2 |
2003-01-08 Andrew Cagney <cagney@redhat.com>
* alpha-tdep.c: Use get_next_frame.
* arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
* dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
* m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
* mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
* ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
* v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
* xstormy16-tdep.c: Ditto.
Diffstat (limited to 'gdb/x86-64-linux-tdep.c')
-rw-r--r-- | gdb/x86-64-linux-tdep.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/x86-64-linux-tdep.c b/gdb/x86-64-linux-tdep.c index 0413f86..bb127e0 100644 --- a/gdb/x86-64-linux-tdep.c +++ b/gdb/x86-64-linux-tdep.c @@ -91,11 +91,11 @@ x86_64_linux_sigcontext_addr (struct frame_info *frame) pc = x86_64_linux_sigtramp_start (get_frame_pc (frame)); if (pc) { - if (frame->next) + if (get_next_frame (frame)) /* If this isn't the top frame, the next frame must be for the signal handler itself. The sigcontext structure is part of the user context. */ - return get_frame_base (frame->next) + LINUX_SIGINFO_SIZE + + return get_frame_base (get_next_frame (frame)) + LINUX_SIGINFO_SIZE + LINUX_UCONTEXT_SIGCONTEXT_OFFSET; @@ -167,7 +167,7 @@ x86_64_linux_frame_chain (struct frame_info *fi) addr = get_frame_base (fi); } else - addr = get_frame_base (fi->next); + addr = get_frame_base (get_next_frame (fi)); addr += LINUX_SIGINFO_SIZE + LINUX_UCONTEXT_SIGCONTEXT_OFFSET; @@ -181,7 +181,8 @@ x86_64_init_frame_pc (int fromleaf, struct frame_info *fi) { CORE_ADDR addr; - if (get_next_frame (fi) && (get_frame_type (fi->next) == SIGTRAMP_FRAME)) + if (get_next_frame (fi) + && (get_frame_type (get_next_frame (fi)) == SIGTRAMP_FRAME)) { addr = get_frame_base (get_next_frame (get_next_frame (fi))) + LINUX_SIGINFO_SIZE + LINUX_UCONTEXT_SIGCONTEXT_OFFSET; |