diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-08-11 00:59:29 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-08-11 00:59:29 +0000 |
commit | fe882aae76da6e2f04a8a8de4ef3c7538a163b7d (patch) | |
tree | 551da6c28e62d90a6a7103b19915e80aaf9f3178 /gdb/mn10300-tdep.c | |
parent | 150c7cbc061880c3386ca4bfecf9aac9eb5ab34a (diff) | |
download | gdb-fe882aae76da6e2f04a8a8de4ef3c7538a163b7d.tar.gz |
* target.h (TARGET_VIRTUAL_FRAME_POINTER): Delete, multi-arched.
* gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Add.
* gdbarch.h, gdbarch.c: Regenerate.
* arch-utils.h (legacy_virtual_frame_pointer): Declare.
* arch-utils.c: Include "gdb_assert.h".
(legacy_virtual_frame_pointer): Define.
* Makefile.in (arch-utils.o): Depends on gdb_assert.h.
* tracepoint.c (encode_actions): Make frame_reg an int. Make
frame_offset a LONGEST.
* ax-gdb.c (gen_frame_args_address): Ditto.
(gen_frame_locals_address): Ditto.
* mn10300-tdep.c (mn10300_gdbarch_init): Initialize
virtual_frame_pointer.
(mn10300_virtual_frame_pointer): Make static. Update parameter
list to match function signature.
* config/mn10300/tm-mn10300.h (TARGET_VIRTUAL_FRAME_POINTER): Delete.
Diffstat (limited to 'gdb/mn10300-tdep.c')
-rw-r--r-- | gdb/mn10300-tdep.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gdb/mn10300-tdep.c b/gdb/mn10300-tdep.c index dd7674edc8d..53f6ec9019e 100644 --- a/gdb/mn10300-tdep.c +++ b/gdb/mn10300-tdep.c @@ -844,8 +844,10 @@ mn10300_frame_init_saved_regs (struct frame_info *frame) plus any necessary offset to be applied to the register before any frame pointer offsets. */ -void -mn10300_virtual_frame_pointer (CORE_ADDR pc, long *reg, long *offset) +static void +mn10300_virtual_frame_pointer (CORE_ADDR pc, + int *reg, + LONGEST *offset) { struct frame_info *dummy = analyze_dummy_frame (pc, 0); /* Set up a dummy frame_info, Analyze the prolog and fill in the @@ -1073,6 +1075,7 @@ mn10300_gdbarch_init (struct gdbarch_info info, set_gdbarch_dwarf2_reg_to_regnum (gdbarch, mn10300_dwarf2_reg_to_regnum); set_gdbarch_do_registers_info (gdbarch, mn10300_do_registers_info); set_gdbarch_fp_regnum (gdbarch, 31); + set_gdbarch_virtual_frame_pointer (gdbarch, mn10300_virtual_frame_pointer); /* Breakpoints. */ set_gdbarch_breakpoint_from_pc (gdbarch, mn10300_breakpoint_from_pc); |