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
This commit is contained in:
parent
6e6e87de92
commit
4f5539f026
4 changed files with 14 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue