Fix for PR threads/1048
authorChristopher Faylor <me+cygwin@cgf.cx>
Fri, 26 Dec 2003 04:29:22 +0000 (04:29 +0000)
committerChristopher Faylor <me+cygwin@cgf.cx>
Fri, 26 Dec 2003 04:29:22 +0000 (04:29 +0000)
commit3ade53336e08ff84a0b150acaafd41983c870472
tree88cd2db621f1d4af1352f210313b9af26db0eddd
parent87a45c96062d658ca83b50aa060a648bf5f5f1ff
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
gdb/windows-nat.c