summaryrefslogtreecommitdiff
path: root/gdb/infcmd.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-12-11 22:34:47 +0000
committerAndrew Cagney <cagney@redhat.com>2002-12-11 22:34:47 +0000
commitb8651bf1915c2a9732707e26022d015c1f70e182 (patch)
tree86cad14db6fb7098787693c26116125ee4f655ec /gdb/infcmd.c
parent83752e021eb302346b16bdcc8face8a9b891fb16 (diff)
downloadgdb-b8651bf1915c2a9732707e26022d015c1f70e182.tar.gz
2002-12-06 Andrew Cagney <ac131313@redhat.com>
* breakpoint.h (struct breakpoint): Replace frame with frame_id. (set_momentary_breaokpoint): Replace `struct frame_info' parameter with `struct frame_id'. (set_longjmp_resume_breakpoint): Ditto. * infrun.c (handle_inferior_event): Update. * breakpoint.c (watch_command_1, until_break_command): Update. * infrun.c (handle_inferior_event, check_sigtramp2): Update. (handle_inferior_event, step_over_function): Update. * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update. (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update. (set_momentary_breakpoint, deprecated_frame_in_dummy): Update. * infcmd.c (finish_command, run_stack_dummy): Update.
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r--gdb/infcmd.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c
index a45512912d0..c8b5aa28e82 100644
--- a/gdb/infcmd.c
+++ b/gdb/infcmd.c
@@ -1018,8 +1018,11 @@ run_stack_dummy (CORE_ADDR addr, struct regcache *buffer)
addr is the address of the call dummy plus the CALL_DUMMY_START_OFFSET,
so we need to subtract the CALL_DUMMY_START_OFFSET. */
+ /* FIXME: cagney/2002-12-01: Rather than pass in curent frame,
+ why not just create, and then pass in a frame ID. This would
+ make it possible to eliminate set_current_frame(). */
bpt = set_momentary_breakpoint (sal,
- get_current_frame (),
+ get_frame_id (get_current_frame ()),
bp_call_dummy);
bpt->disposition = disp_del;
@@ -1284,7 +1287,7 @@ finish_command (char *arg, int from_tty)
sal = find_pc_line (get_frame_pc (frame), 0);
sal.pc = get_frame_pc (frame);
- breakpoint = set_momentary_breakpoint (sal, frame, bp_finish);
+ breakpoint = set_momentary_breakpoint (sal, get_frame_id (frame), bp_finish);
if (!event_loop_p || !target_can_async_p ())
old_chain = make_cleanup_delete_breakpoint (breakpoint);