+2009-11-26 Pedro Alves <pedro@codesourcery.com>
+
+ * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
+ events, don't leave current_inferior pointing at null.
+
2009-11-26 Pedro Alves <pedro@codesourcery.com>
* win32-low.c (LOG): Delete.
gotevent:
- ptid = debug_event_ptid (¤t_event);
- current_inferior =
- (struct thread_info *) find_inferior_id (&all_threads, ptid);
-
switch (current_event.dwDebugEventCode)
{
case CREATE_THREAD_DEBUG_EVENT:
(unsigned) current_event.dwThreadId));
child_delete_thread (current_event.dwProcessId,
current_event.dwThreadId);
- break;
+
+ current_inferior = (struct thread_info *) all_threads.head;
+ return 1;
case CREATE_PROCESS_DEBUG_EVENT:
OUTMSG2 (("gdbserver: kernel event CREATE_PROCESS_DEBUG_EVENT "
break;
}
+ ptid = debug_event_ptid (¤t_event);
current_inferior =
(struct thread_info *) find_inferior_id (&all_threads, ptid);
return 1;