mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 01:50:24 +08:00
* win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
events, don't leave current_inferior pointing at null.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
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>
|
2009-11-26 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
* win32-low.c (LOG): Delete.
|
* win32-low.c (LOG): Delete.
|
||||||
|
@ -1438,10 +1438,6 @@ get_child_debug_event (struct target_waitstatus *ourstatus)
|
|||||||
|
|
||||||
gotevent:
|
gotevent:
|
||||||
|
|
||||||
ptid = debug_event_ptid (¤t_event);
|
|
||||||
current_inferior =
|
|
||||||
(struct thread_info *) find_inferior_id (&all_threads, ptid);
|
|
||||||
|
|
||||||
switch (current_event.dwDebugEventCode)
|
switch (current_event.dwDebugEventCode)
|
||||||
{
|
{
|
||||||
case CREATE_THREAD_DEBUG_EVENT:
|
case CREATE_THREAD_DEBUG_EVENT:
|
||||||
@ -1463,7 +1459,9 @@ get_child_debug_event (struct target_waitstatus *ourstatus)
|
|||||||
(unsigned) current_event.dwThreadId));
|
(unsigned) current_event.dwThreadId));
|
||||||
child_delete_thread (current_event.dwProcessId,
|
child_delete_thread (current_event.dwProcessId,
|
||||||
current_event.dwThreadId);
|
current_event.dwThreadId);
|
||||||
break;
|
|
||||||
|
current_inferior = (struct thread_info *) all_threads.head;
|
||||||
|
return 1;
|
||||||
|
|
||||||
case CREATE_PROCESS_DEBUG_EVENT:
|
case CREATE_PROCESS_DEBUG_EVENT:
|
||||||
OUTMSG2 (("gdbserver: kernel event CREATE_PROCESS_DEBUG_EVENT "
|
OUTMSG2 (("gdbserver: kernel event CREATE_PROCESS_DEBUG_EVENT "
|
||||||
@ -1558,6 +1556,7 @@ get_child_debug_event (struct target_waitstatus *ourstatus)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ptid = debug_event_ptid (¤t_event);
|
||||||
current_inferior =
|
current_inferior =
|
||||||
(struct thread_info *) find_inferior_id (&all_threads, ptid);
|
(struct thread_info *) find_inferior_id (&all_threads, ptid);
|
||||||
return 1;
|
return 1;
|
||||||
|
Reference in New Issue
Block a user