aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2022-01-17 11:27:35 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2022-03-31 11:32:33 -0400
commit4f5539f026fafe2a3bf190dd86e95f87d75a00e7 (patch)
tree024e004b82ad1876ab1e240014e90a07481de2a9 /gdb/remote.c
parent6e6e87de92b1c3ba95bf5f1932c59efea71ec4f6 (diff)
downloadgdb-4f5539f026fafe2a3bf190dd86e95f87d75a00e7.zip
gdb-4f5539f026fafe2a3bf190dd86e95f87d75a00e7.tar.gz
gdb-4f5539f026fafe2a3bf190dd86e95f87d75a00e7.tar.bz2
gdb/infrun: add reason parameter to stop_all_threads
Add a "reason" parameter, only used to show in debug messages what is the reason for stopping all threads. This helped me understand the debug logs while adding some new uses of stop_all_threads, so I am proposing to merge it. Change-Id: I66c8c335ebf41836a7bc3d5fe1db92c195f65e55
Diffstat (limited to 'gdb/remote.c')
-rw-r--r--gdb/remote.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index bc308bd..3f06ba5 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -4642,7 +4642,7 @@ remote_target::process_initial_stop_replies (int from_tty)
gdb_assert (!this->is_async_p ());
SCOPE_EXIT { target_async (0); };
target_async (1);
- stop_all_threads ();
+ stop_all_threads ("remote connect in all-stop");
}
/* If all threads of an inferior were already stopped, we