OSDN Git Service

Fix for PR threads/1048
authorcgf <cgf>
Fri, 26 Dec 2003 04:29:21 +0000 (04:29 +0000)
committercgf <cgf>
Fri, 26 Dec 2003 04:29:21 +0000 (04:29 +0000)
commit19f7ebde28a9cee077c8b5beada76755817adb9a
tree8372c6a7867a95e6761199abbfcd3e31ea674b90
parent023bf1a880e062d0de5719e7712490304a4da4d6
Fix for PR threads/1048
* win32-nat.c (thread_info_struct): Add reload_context flag.
(thread_rec): Don't reload thread context here.  Just set a flag.
(do_child_fetch_inferior_registers): Reload thread context here if appropriate.
Avoid doing anything if current_thread is NULL thanks to strange Windows
behavior.
(child_fetch_inferior_registers): Avoid doing anything if current_thread is
NULL.
(do_child_store_inferior_registers): Ditto.
(child_store_inferior_registers): Ditto.
(child_kill_inferior): Ditto.
(fake_create_process): Pretend to create a process for pathological windows
attach situation.
(get_child_debug_event): Call fake_create_process when the first event noticed
is thread creation rather than process creation.
(child_attach): Always set attach_flag when attaching.
(child_create_inferior): Set attach_flag to zero since we're not attaching.
gdb/ChangeLog
gdb/win32-nat.c