gdb/infrun: add inferior parameters to stop_all_threads and restart_threads
[deliverable/binutils-gdb.git] / gdb / infrun.h
index 36591417ca6e6a72d3117af058e8731c9ffa5c18..945476c2dd83847f9b410733272024574f3dcda5 100644 (file)
@@ -27,6 +27,7 @@ struct address_space;
 struct return_value_info;
 struct process_stratum_target;
 struct thread_info;
+struct inferior;
 
 /* True if we are debugging run control.  */
 extern bool debug_infrun;
@@ -140,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);
 
This page took 0.022562 seconds and 4 git commands to generate.