aboutsummaryrefslogtreecommitdiff
path: root/gdb/vax-tdep.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-01-08 15:56:38 +0000
committerAndrew Cagney <cagney@redhat.com>2003-01-08 15:56:38 +0000
commit11c02a10e2ffb85de364eb178f28209885b82231 (patch)
tree3279a2d6139cce0d41b6ade4e5ae4203f439ad38 /gdb/vax-tdep.c
parent626d0adf8438a379bc7931194ce8952354d618e5 (diff)
downloadgdb-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/vax-tdep.c')
-rw-r--r--gdb/vax-tdep.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/gdb/vax-tdep.c b/gdb/vax-tdep.c
index 3c223c5..52438d5 100644
--- a/gdb/vax-tdep.c
+++ b/gdb/vax-tdep.c
@@ -170,9 +170,10 @@ vax_sigtramp_saved_pc (struct frame_info *frame)
buf = alloca (ptrbytes);
/* Get sigcontext address, it is the third parameter on the stack. */
- if (frame->next)
+ if (get_next_frame (frame))
sigcontext_addr = read_memory_typed_address
- (FRAME_ARGS_ADDRESS (frame->next) + FRAME_ARGS_SKIP + sigcontext_offs,
+ (FRAME_ARGS_ADDRESS (get_next_frame (frame))
+ + FRAME_ARGS_SKIP + sigcontext_offs,
builtin_type_void_data_ptr);
else
sigcontext_addr = read_memory_typed_address
@@ -205,8 +206,8 @@ vax_frame_args_address_correct (struct frame_info *frame)
(which is one reason that "info frame" exists). So, return 0 (indicating
we don't know the address of the arglist) if we don't know what frame
this frame calls. */
- if (frame->next)
- return (read_memory_integer (get_frame_base (frame->next) + 8, 4));
+ if (get_next_frame (frame))
+ return (read_memory_integer (get_frame_base (get_next_frame (frame)) + 8, 4));
return (0);
}
@@ -217,8 +218,8 @@ vax_frame_args_address (struct frame_info *frame)
/* In most of GDB, getting the args address is too important to
just say "I don't know". This is sometimes wrong for functions
that aren't on top of the stack, but c'est la vie. */
- if (frame->next)
- return (read_memory_integer (get_frame_base (frame->next) + 8, 4));
+ if (get_next_frame (frame))
+ return (read_memory_integer (get_frame_base (get_next_frame (frame)) + 8, 4));
return (read_register (VAX_AP_REGNUM));
}