diff options
author | Daniel Jacobowitz <drow@false.org> | 2003-01-05 01:39:56 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2003-01-05 01:39:56 +0000 |
commit | 516034834f1bcade05e3dcd85e9c7c8b899adbd6 (patch) | |
tree | 7dfa0fc3ff5a3e7da16a50ff725fac9a561d7ec8 /gdb/gdbarch.c | |
parent | 95f90d2595724210a3f27456baeb6eed02ece2bc (diff) | |
download | binutils-gdb-516034834f1bcade05e3dcd85e9c7c8b899adbd6.tar.gz |
* arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
* d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
* hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
* blockframe.c: Include "gdbcmd.h" and "command.h".
(backtrace_below_main): New variable.
(file_frame_chain_valid, func_frame_chain_valid)
(nonnull_frame_chain_valid, generic_file_frame_chain_valid)
(generic_func_frame_chain_valid): Remove functions.
(frame_chain_valid, do_flush_frames_sfunc): New functions.
(_initialize_blockframe): New function.
* Makefile.in (blockframe.o): Update dependencies.
* frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
comment. Call frame_chain_valid ().
* frame.h: Remove old prototypes. Add prototype for
frame_chain_valid and update comments to match.
* gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
Remove old comment.
* gdbarch.h: Regenerated.
* gdbarch.c: Regenerated.
Plus updates to all other targets not to provide a FRAME_CHAIN_VALID.
Diffstat (limited to 'gdb/gdbarch.c')
-rw-r--r-- | gdb/gdbarch.c | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c index 3a44b3389d1..e39ff5a116d 100644 --- a/gdb/gdbarch.c +++ b/gdb/gdbarch.c @@ -556,7 +556,6 @@ gdbarch_alloc (const struct gdbarch_info *info, current_gdbarch->remote_translate_xfer_address = generic_remote_translate_xfer_address; current_gdbarch->frame_args_skip = -1; current_gdbarch->frameless_function_invocation = generic_frameless_function_invocation_not; - current_gdbarch->frame_chain_valid = generic_func_frame_chain_valid; current_gdbarch->frame_args_address = get_frame_base; current_gdbarch->frame_locals_address = get_frame_base; current_gdbarch->extra_stack_alignment_needed = 1; @@ -769,7 +768,7 @@ verify_gdbarch (struct gdbarch *gdbarch) if ((GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) && (gdbarch->frame_chain == 0)) fprintf_unfiltered (log, "\n\tframe_chain"); - /* Skip verify of frame_chain_valid, invalid_p == 0 */ + /* Skip verify of frame_chain_valid, has predicate */ if ((GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) && (gdbarch->frame_saved_pc == 0)) fprintf_unfiltered (log, "\n\tframe_saved_pc"); @@ -1445,6 +1444,15 @@ gdbarch_dump (struct gdbarch *gdbarch, struct ui_file *file) (long) current_gdbarch->frame_chain /*FRAME_CHAIN ()*/); #endif +#ifdef FRAME_CHAIN_VALID_P + fprintf_unfiltered (file, + "gdbarch_dump: %s # %s\n", + "FRAME_CHAIN_VALID_P()", + XSTRING (FRAME_CHAIN_VALID_P ())); + fprintf_unfiltered (file, + "gdbarch_dump: FRAME_CHAIN_VALID_P() = %d\n", + FRAME_CHAIN_VALID_P ()); +#endif #ifdef FRAME_CHAIN_VALID fprintf_unfiltered (file, "gdbarch_dump: %s # %s\n", @@ -4641,6 +4649,13 @@ set_gdbarch_frame_chain (struct gdbarch *gdbarch, } int +gdbarch_frame_chain_valid_p (struct gdbarch *gdbarch) +{ + gdb_assert (gdbarch != NULL); + return gdbarch->frame_chain_valid != 0; +} + +int gdbarch_frame_chain_valid (struct gdbarch *gdbarch, CORE_ADDR chain, struct frame_info *thisframe) { gdb_assert (gdbarch != NULL); |