[binutils-gdb] make_cleanup_restore_current_thread: Look up thread earlier
sergiodj+buildbot@sergiodj.net
sergiodj+buildbot@sergiodj.net
Thu May 4 17:44:00 GMT 2017
*** TEST RESULTS FOR COMMIT f6223dbb50b5d8780df633633adf0742c662173d ***
Author: Pedro Alves <palves@redhat.com>
Branch: master
Commit: f6223dbb50b5d8780df633633adf0742c662173d
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.
More information about the Gdb-testers
mailing list