*** breakpoint.joel1.c Thu Aug 22 17:01:02 2002 --- breakpoint.c Thu Aug 22 17:56:03 2002 *************** void *** 6594,6604 **** breakpoint_auto_delete (bpstat bs) { struct breakpoint *b, *temp; for (; bs; bs = bs->next) if (bs->breakpoint_at && bs->breakpoint_at->disposition == disp_del && bs->stop) ! delete_breakpoint (bs->breakpoint_at); ALL_BREAKPOINTS_SAFE (b, temp) { --- 6594,6614 ---- breakpoint_auto_delete (bpstat bs) { struct breakpoint *b, *temp; + struct command_line *cmd; for (; bs; bs = bs->next) if (bs->breakpoint_at && bs->breakpoint_at->disposition == disp_del && bs->stop) ! { ! /* Deleting a temp breakpoint. If it has commands associated ! with it, preserve them in the in the bpstat list, so they ! can be executed by bpstat_do_actions. */ ! ! cmd = copy_command_lines (bs->commands); ! make_cleanup_free_command_lines (&cmd); ! delete_breakpoint (bs->breakpoint_at); ! bs->commands = cmd; ! } ALL_BREAKPOINTS_SAFE (b, temp) {