* linux-low.c (linux_wait_for_event): Update messages. Do not

reinsert auto-delete breakpoints.
	* mem-break.c (struct breakpoint): Change return type of handler to
	int.
	(set_breakpoint_at): Update handler type.
	(reinsert_breakpoint_handler): Return 1 instead of calling
	delete_breakpoint.
	(reinsert_breakpoint_by_bp): Check for the original breakpoint before
	setting a new one.
	(check_breakpoints): Delete auto-delete breakpoints and return 2.
	* mem-break.h (set_breakpoint_at): Update handler type.
	* thread-db.c (thread_db_create_event, thread_db_create_event): Update.
	* win32-low.c (auto_delete_breakpoint): New.
	(get_child_debug_event): Use it.
This commit is contained in:
Daniel Jacobowitz 2007-12-18 21:58:01 +00:00
parent 0205c1752c
commit b65d95c576
6 changed files with 65 additions and 19 deletions

View file

@ -1334,6 +1334,14 @@ fake_breakpoint_event (void)
for_each_inferior (&all_threads, suspend_one_thread);
}
#ifdef _WIN32_WCE
static int
auto_delete_breakpoint (CORE_ADDR stop_pc)
{
return 1;
}
#endif
/* Get the next event from the child. */
static int
@ -1445,7 +1453,7 @@ get_child_debug_event (struct target_waitstatus *ourstatus)
it is hit. */
set_breakpoint_at ((CORE_ADDR) (long) current_event.u
.CreateProcessInfo.lpStartAddress,
delete_breakpoint_at);
auto_delete_breakpoint);
}
#endif
break;