aboutsummaryrefslogtreecommitdiff
path: root/gdb/thread.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2021-05-27 22:24:45 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2021-07-12 20:46:52 -0400
commit7846f3aa61ae21fae8c3861917b44388de6b9ede (patch)
tree9441331c6b9017afa73850662c6407020cefabe5 /gdb/thread.c
parent8b6a69b2f37fd1370aa823320f9dc3fd482e1e78 (diff)
downloadbinutils-7846f3aa61ae21fae8c3861917b44388de6b9ede.zip
binutils-7846f3aa61ae21fae8c3861917b44388de6b9ede.tar.gz
binutils-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/thread.c')
-rw-r--r--gdb/thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/thread.c b/gdb/thread.c
index 925ed96..c6c63b7 100644
--- a/gdb/thread.c
+++ b/gdb/thread.c
@@ -708,7 +708,7 @@ void
set_resumed (process_stratum_target *targ, ptid_t ptid, bool resumed)
{
for (thread_info *tp : all_non_exited_threads (targ, ptid))
- tp->resumed = resumed;
+ tp->set_resumed (resumed);
}
/* Helper for set_running, that marks one thread either running or