diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2022-01-17 11:27:35 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2022-03-31 11:32:33 -0400 |
commit | 4f5539f026fafe2a3bf190dd86e95f87d75a00e7 (patch) | |
tree | 024e004b82ad1876ab1e240014e90a07481de2a9 /gdb/remote.c | |
parent | 6e6e87de92b1c3ba95bf5f1932c59efea71ec4f6 (diff) | |
download | gdb-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.c | 2 |
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 |