diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-11-24 19:48:13 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-11-24 19:48:13 +0000 |
commit | c193f6ac9cadbfcaf4bae1a46d01b6c2a4f66bb4 (patch) | |
tree | 94e43a5b7c11851202f9ea9b4f725dd041f7b7a8 /gdb/infrun.c | |
parent | e5d2af146b35918deacdec7270a9e6890410e1a5 (diff) | |
download | gdb-c193f6ac9cadbfcaf4bae1a46d01b6c2a4f66bb4.zip gdb-c193f6ac9cadbfcaf4bae1a46d01b6c2a4f66bb4.tar.gz gdb-c193f6ac9cadbfcaf4bae1a46d01b6c2a4f66bb4.tar.bz2 |
2002-11-19 Andrew Cagney <ac131313@redhat.com>
* frame.h (FRAME_FP): Delete macro.
(get_frame_base): New function declaration.
* frame.c (get_frame_base): New function.
(get_frame_id): Use ->frame.
(frame_find_by_id): Rewrite to use get_frame_id.
* blockframe.c: Use get_frame_base instead of FRAME_FP.
* cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
* hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
* m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
* mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
* sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
* v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r-- | gdb/infrun.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c index b179bf6..49b90a6 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -2053,7 +2053,7 @@ handle_inferior_event (struct execution_control_state *ecs) || trap_expected || (!CALL_DUMMY_BREAKPOINT_OFFSET_P && PC_IN_CALL_DUMMY (stop_pc, read_sp (), - FRAME_FP (get_current_frame ()))) + get_frame_base (get_current_frame ()))) || (step_range_end && step_resume_breakpoint == NULL)); else @@ -2064,7 +2064,7 @@ handle_inferior_event (struct execution_control_state *ecs) check here as well as above. */ || (!CALL_DUMMY_BREAKPOINT_OFFSET_P && PC_IN_CALL_DUMMY (stop_pc, read_sp (), - FRAME_FP + get_frame_base (get_current_frame ())))); if (!ecs->random_signal) @@ -2255,7 +2255,7 @@ process_event_stop_test: #if 0 /* FIXME - Need to implement nested temporary breakpoints */ if (step_over_calls - && (INNER_THAN (FRAME_FP (get_current_frame ()), + && (INNER_THAN (get_frame_base (get_current_frame ()), step_frame_address))) { ecs->another_trap = 1; @@ -2466,7 +2466,7 @@ process_event_stop_test: case she'd better know what she's doing. */ if (CALL_DUMMY_HAS_COMPLETED (stop_pc, read_sp (), - FRAME_FP (get_current_frame ())) + get_frame_base (get_current_frame ())) && !step_range_end) { stop_print_frame = 0; @@ -2567,7 +2567,7 @@ process_event_stop_test: { - CORE_ADDR current_frame = FRAME_FP (get_current_frame ()); + CORE_ADDR current_frame = get_frame_base (get_current_frame ()); if (INNER_THAN (current_frame, step_frame_address)) { @@ -2838,7 +2838,7 @@ process_event_stop_test: } step_range_start = ecs->sal.pc; step_range_end = ecs->sal.end; - step_frame_address = FRAME_FP (get_current_frame ()); + step_frame_address = get_frame_base (get_current_frame ()); ecs->current_line = ecs->sal.line; ecs->current_symtab = ecs->sal.symtab; @@ -2846,7 +2846,7 @@ process_event_stop_test: of a line of the caller, continue stepping, but step_frame_address must be modified to current frame */ { - CORE_ADDR current_frame = FRAME_FP (get_current_frame ()); + CORE_ADDR current_frame = get_frame_base (get_current_frame ()); if (!(INNER_THAN (current_frame, step_frame_address))) step_frame_address = current_frame; } @@ -3353,7 +3353,7 @@ normal_stop (void) { case PRINT_UNKNOWN: if (stop_step - && step_frame_address == FRAME_FP (get_current_frame ()) + && step_frame_address == get_frame_base (get_current_frame ()) && step_start_function == find_pc_function (stop_pc)) source_flag = SRC_LINE; /* finished step, just print source line */ else |