diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-12-09 01:40:25 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-12-09 01:40:25 +0000 |
commit | 8b36eed86d2784688816eb8bf25bf50b188e2c23 (patch) | |
tree | 420fe9c2a3b4086dcadf43cc960542b4bc2491d1 /gdb/breakpoint.c | |
parent | aeeccc89cabdc8a3f88dd4b7192af4cd78ec7571 (diff) | |
download | gdb-8b36eed86d2784688816eb8bf25bf50b188e2c23.zip gdb-8b36eed86d2784688816eb8bf25bf50b188e2c23.tar.gz gdb-8b36eed86d2784688816eb8bf25bf50b188e2c23.tar.bz2 |
2002-12-08 Andrew Cagney <ac131313@redhat.com>
* blockframe.c: Use get_frame_base instead of directly accessing
the `struct frame_info' member frame.
* f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
* stack.c, dummy-frame.c, breakpoint.c: Ditto.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index cf3da5e..a53a16b 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -1704,7 +1704,7 @@ deprecated_frame_in_dummy (struct frame_info *frame) ALL_BREAKPOINTS (b) { if (b->type == bp_call_dummy - && b->frame == frame->frame + && b->frame == get_frame_base (frame) /* We need to check the PC as well as the frame on the sparc, for signals.exp in the testsuite. */ && (frame->pc @@ -2728,7 +2728,7 @@ bpstat_stop_status (CORE_ADDR *pc, int not_a_sw_breakpoint) } if (b->frame && - b->frame != (get_current_frame ())->frame) + b->frame != get_frame_base (get_current_frame ())) bs->stop = 0; else { @@ -4318,7 +4318,7 @@ set_longjmp_resume_breakpoint (CORE_ADDR pc, struct frame_info *frame) b->address = pc; b->enable_state = bp_enabled; if (frame != NULL) - b->frame = frame->frame; + b->frame = get_frame_base (frame); else b->frame = 0; check_duplicates (b); @@ -4379,7 +4379,7 @@ set_momentary_breakpoint (struct symtab_and_line sal, struct frame_info *frame, b = set_raw_breakpoint (sal, type); b->enable_state = bp_enabled; b->disposition = disp_donttouch; - b->frame = (frame ? frame->frame : 0); + b->frame = (frame ? get_frame_base (frame) : 0); /* If we're debugging a multi-threaded program, then we want momentary breakpoints to be active in only a @@ -5427,7 +5427,7 @@ watch_command_1 (char *arg, int accessflag, int from_tty) scope_breakpoint->disposition = disp_del; /* Only break in the proper frame (help with recursion). */ - scope_breakpoint->frame = prev_frame->frame; + scope_breakpoint->frame = get_frame_base (prev_frame); /* Set the address at which we will stop. */ scope_breakpoint->address = get_frame_pc (prev_frame); |