diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2021-05-27 22:24:45 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2021-07-12 20:46:52 -0400 |
commit | 7846f3aa61ae21fae8c3861917b44388de6b9ede (patch) | |
tree | 9441331c6b9017afa73850662c6407020cefabe5 /gdb/breakpoint.c | |
parent | 8b6a69b2f37fd1370aa823320f9dc3fd482e1e78 (diff) | |
download | gdb-7846f3aa61ae21fae8c3861917b44388de6b9ede.zip gdb-7846f3aa61ae21fae8c3861917b44388de6b9ede.tar.gz gdb-7846f3aa61ae21fae8c3861917b44388de6b9ede.tar.bz2 |
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
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 5cc3743..3288fee 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -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; |