summaryrefslogtreecommitdiff
path: root/gdb/infrun.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2022-01-13 14:15:45 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2022-04-04 22:11:48 -0400
commit148cf134e981ec060a5693480b33d1a0eb244e9e (patch)
treeedbd18bedc580a7c2435cf9e6f81fb6f922278ff /gdb/infrun.h
parent6f5d514f9134452ecfe0694b9025291f5abf1080 (diff)
gdb/infrun: add inferior parameters to stop_all_threads and restart_threads
A following patch will want to stop all threads of a given inferior (as opposed to all threads of all inferiors) while handling a vfork, and restart them after. To help with this, add inferior parameters to stop_all_threads and restart_threads. This is done as a separate patch to make sure this doesn't cause regressions on its own, and to keep the following patches more concise. No visible changes are expected here, since all calls sites pass nullptr, which should keep the existing behavior. Change-Id: I4d9ba886ce842042075b4e346cfa64bbe2580dbf
Diffstat (limited to 'gdb/infrun.h')
-rw-r--r--gdb/infrun.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/gdb/infrun.h b/gdb/infrun.h
index ecfb767692..9685f3a977 100644
--- a/gdb/infrun.h
+++ b/gdb/infrun.h
@@ -141,8 +141,11 @@ extern void nullify_last_target_wait_ptid ();
/* Stop all threads. Only returns after everything is halted.
REASON is a string indicating the reason why we stop all threads, used in
- debug messages. */
-extern void stop_all_threads (const char *reason);
+ debug messages.
+
+ If INF is non-nullptr, stop all threads of that inferior. Otherwise, stop
+ all threads of all inferiors. */
+extern void stop_all_threads (const char *reason, inferior *inf = nullptr);
extern void prepare_for_detach (void);