diff options
author | Pedro Alves <palves@redhat.com> | 2017-05-04 14:43:34 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2017-05-04 15:17:38 +0100 |
commit | f6223dbb50b5d8780df633633adf0742c662173d (patch) | |
tree | f75fdf41dd3170fef252b7518c15c658f2a96717 /gdb/proc-service.c | |
parent | 3c3ae77e68a9032ef9f174bf6b1cc992b6a4cb35 (diff) | |
download | gdb-f6223dbb50b5d8780df633633adf0742c662173d.zip gdb-f6223dbb50b5d8780df633633adf0742c662173d.tar.gz gdb-f6223dbb50b5d8780df633633adf0742c662173d.tar.bz2 |
make_cleanup_restore_current_thread: Look up thread earlier
The unconditional is_stopped call already asserts that the thread exists.
gdb/ChangeLog:
2017-05-04 Pedro Alves <palves@redhat.com>
* thread.c (make_cleanup_restore_current_thread): Move
find_thread_ptid call before the is_stopped call. Assert that the
thread is found. Replace is_stopped call by checking the thread's
state directly. Remove unnecessary NULL-thread check.
Diffstat (limited to 'gdb/proc-service.c')
0 files changed, 0 insertions, 0 deletions