mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
gdb: add setter / getter for thread_info resumed state
A following patch will want to do things when a thread's resumed state changes. Make the `resumed` field private (renamed to `m_resumed`) and add a getter and a setter for it. The following patch in question will therefore be able to add some code to the setter. Change-Id: I360c48cc55a036503174313261ce4e757d795319
This commit is contained in:
@@ -407,8 +407,7 @@ breakpoints_should_be_inserted_now (void)
|
||||
/* Don't remove breakpoints yet if, even though all threads are
|
||||
stopped, we still have events to process. */
|
||||
for (thread_info *tp : all_non_exited_threads ())
|
||||
if (tp->resumed
|
||||
&& tp->suspend.waitstatus_pending_p)
|
||||
if (tp->resumed () && tp->suspend.waitstatus_pending_p)
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user