This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] make_cleanup_restore_current_thread: Look up thread earlier
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Thu, 04 May 2017 13:44:17 -0400
- Subject: [binutils-gdb] make_cleanup_restore_current_thread: Look up thread earlier
- Authentication-results: sourceware.org; auth=none
*** 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.