* gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
* gdbarch.h, gdbarch.c: Re-generate.
* blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
* infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
* frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
2004-05-08 Andrew Cagney <cagney@redhat.com>
+ * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
+ * gdbarch.h, gdbarch.c: Re-generate.
+ * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
+ DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
+ * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
+ * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
+
* breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
(struct frame_info): Delete opaque declaration.
* breakpoint.c (deprecated_frame_in_dummy): Delete function.
legacy_frame_chain_valid (CORE_ADDR fp, struct frame_info *fi)
{
/* Don't prune CALL_DUMMY frames. */
- if (DEPRECATED_USE_GENERIC_DUMMY_FRAMES
- && DEPRECATED_PC_IN_CALL_DUMMY (get_frame_pc (fi), 0, 0))
+ if (DEPRECATED_PC_IN_CALL_DUMMY (get_frame_pc (fi), 0, 0))
return 1;
/* If the new frame pointer is zero, then it isn't valid. */
static enum frame_type
frame_type_from_pc (CORE_ADDR pc)
{
- if (DEPRECATED_USE_GENERIC_DUMMY_FRAMES
- && deprecated_pc_in_call_dummy (pc, 0, 0))
+ /* NOTE: cagney/2004-05-08: Eliminating this function depends on all
+ architectures being forced to use the frame-unwind code. */
+ if (deprecated_pc_in_call_dummy (pc, 0, 0))
return DUMMY_FRAME;
else
return NORMAL_FRAME;
has previously set it. This is really somewhat bogus. The
initialization, as seen in create_new_frame(), should occur
before the INIT function has been called. */
- if (DEPRECATED_USE_GENERIC_DUMMY_FRAMES
- && deprecated_pc_in_call_dummy (get_frame_pc (prev), 0, 0))
+ if (deprecated_pc_in_call_dummy (get_frame_pc (prev), 0, 0))
prev->type = DUMMY_FRAME;
if (prev->type == NORMAL_FRAME)
extern struct gdbarch *current_gdbarch;
-/* Always one, being eliminated. */
-#define DEPRECATED_USE_GENERIC_DUMMY_FRAMES 1
-
/* If any of the following are defined, the target wasn't correctly
converted. */
extern struct gdbarch *current_gdbarch;
-/* Always one, being eliminated. */
-#define DEPRECATED_USE_GENERIC_DUMMY_FRAMES 1
-
/* If any of the following are defined, the target wasn't correctly
converted. */
dummy_addr. Ulgh! Blame the HP/UX target. */
(*real_pc) += DEPRECATED_CALL_DUMMY_START_OFFSET;
write_memory (start_sp, (char *) dummy1, sizeof_dummy1);
- if (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
- generic_save_call_dummy_addr (start_sp, start_sp + sizeof_dummy1);
+ generic_save_call_dummy_addr (start_sp, start_sp + sizeof_dummy1);
return sp;
}
internal_error (__FILE__, __LINE__, "bad switch");
}
- if (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
- /* Save where the breakpoint is going to be inserted so that the
- dummy-frame code is later able to re-identify it. */
- generic_save_call_dummy_addr (bp_addr, bp_addr + 1);
+ /* Save where the breakpoint is going to be inserted so that the
+ dummy-frame code is later able to re-identify it. */
+ generic_save_call_dummy_addr (bp_addr, bp_addr + 1);
if (nargs < TYPE_NFIELDS (ftype))
error ("too few arguments in function call");
/* Sanity. The exact same SP value is returned by
PUSH_DUMMY_CALL, saved as the dummy-frame TOS, and used by
unwind_dummy_id to form the frame ID's stack address. */
- gdb_assert (DEPRECATED_USE_GENERIC_DUMMY_FRAMES);
generic_save_dummy_frame_tos (sp);
}
else if (DEPRECATED_SAVE_DUMMY_FRAME_TOS_P ())
/* Sanity. The exact same SP value is returned by
PUSH_DUMMY_CALL, saved as the dummy-frame TOS, and used by
unwind_dummy_id to form the frame ID's stack address. */
- gdb_assert (DEPRECATED_USE_GENERIC_DUMMY_FRAMES);
frame = frame_id_build (sp, sal.pc);
}
else