Fix a crash on uninitialized ECS->EVENT_THREAD for a newly found thread.
authorJan Kratochvil <jan.kratochvil@redhat.com>
Wed, 17 Sep 2008 21:48:49 +0000 (21:48 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Wed, 17 Sep 2008 21:48:49 +0000 (21:48 +0000)
commit88ed393a46c5216e25997cb873e1ebef32cb511f
tree635847b897b73c3f30c5dabb84099c3342a1f29a
parent2a7b2e88e38cbd83225e9c3b28a990de56dccef7
Fix a crash on uninitialized ECS->EVENT_THREAD for a newly found thread.
* infrun.c (wait_for_inferior): Move this ECS->EVENT_THREAD
initialization ...
(fetch_inferior_event): ... and this ECS->EVENT_THREAD initialization
...
(handle_inferior_event): ... here after the add_thread call together
with the local adjust_pc_after_break and reinit_frame_cache calls.
gdb/ChangeLog
gdb/infrun.c