From 818dd999829879775f22b319e1fe2c8c3a7f77b9 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Wed, 11 Dec 2002 22:34:47 +0000 Subject: 2002-12-06 Andrew Cagney * 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. --- gdb/infcmd.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'gdb/infcmd.c') diff --git a/gdb/infcmd.c b/gdb/infcmd.c index a455129..c8b5aa2 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); -- cgit v1.1