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/infcmd.c | |
parent | gdb/testsuite: update copyright years in gdb.base/vfork-follow-parent.* (diff) | |
download | binutils-gdb-4f5539f026fafe2a3bf190dd86e95f87d75a00e7.tar.gz binutils-gdb-4f5539f026fafe2a3bf190dd86e95f87d75a00e7.tar.bz2 binutils-gdb-4f5539f026fafe2a3bf190dd86e95f87d75a00e7.zip |
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/infcmd.c')
-rw-r--r-- | gdb/infcmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c index fbae4e14a5f..b76345d8426 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -2521,7 +2521,7 @@ attach_post_wait (int from_tty, enum attach_post_wait_mode mode) { struct thread_info *lowest = inferior_thread (); - stop_all_threads (); + stop_all_threads ("attaching"); /* It's not defined which thread will report the attach stop. For consistency, always select the thread with |