2001-06-01 Michael Snyder <msnyder@redhat.com>

* thread.c (delete_step_resume_breakpoint): New function.
	Maintain internal consistency of the thread list while deleting
	a step_resume_breakpoint.
	* gdbthread.h (delete_step_resume_breakpoint): Export.
	* breakpoint.c (bpstat_find_step_resume_breakpoint):
	Make thread-aware: don't return a step_resume_breakpoint
	for the wrong thread.
	* infrun.c (wait_for_inferior): Call delete_step_resume_breakpoint
	instead of delete_breakpoint_current_contents.
	(fetch_inferior_event): Ditto.
	(handle_inferior_event): Call delete_step_resume_breakpoint
	instead of delete_breakpoint.
This commit is contained in:
Michael Snyder
2001-06-02 00:36:20 +00:00
parent c6ad9598d0
commit 8601f500c8
5 changed files with 43 additions and 7 deletions

View File

@@ -78,6 +78,9 @@ extern struct thread_info *add_thread (ptid_t ptid);
/* Delete an existing thread list entry. */
extern void delete_thread (ptid_t);
/* Delete a step_resume_breakpoint from the thread database. */
extern void delete_step_resume_breakpoint (void *);
/* Translate the integer thread id (GDB's homegrown id, not the system's)
into a "pid" (which may be overloaded with extra thread information). */
extern ptid_t thread_id_to_pid (int);