wait_for_inferior and errors thrown from target_wait
authorPedro Alves <palves@redhat.com>
Wed, 1 Apr 2015 13:58:56 +0000 (14:58 +0100)
committerPedro Alves <palves@redhat.com>
Wed, 1 Apr 2015 13:58:56 +0000 (14:58 +0100)
commite6f5c25b57546cbd88daccea4f1739c3f90f7560
tree3dc03fa96f896d2a52857b1bbc8901387ce69ab1
parentc4fc4724a6afd605692b24c0af24c7e234dc5ace
wait_for_inferior and errors thrown from target_wait

Noticed that if an error is thrown out of target_wait, we miss running
finish_thread_state_cleanup.

Tested on x86_64 Fedora 20, with "maint set target-async off".

gdb/ChangeLog:
2015-04-01  Pedro Alves  <palves@redhat.com>

* infrun.c (wait_for_inferior): Install the
finish_thread_state_cleanup cleanup across the whole function, not
just around handle_inferior_event.
gdb/ChangeLog
gdb/infrun.c