[1/3] gdb: print 'stop_requested' in infrun_debug_show_threads
Checks
Commit Message
Print the 'stop_requested' field of a thread in the debug logs.
The field may be useful when debugging GDB's infrun.
---
gdb/infrun.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
@@ -67,10 +67,11 @@ infrun_debug_show_threads (const char *title, ThreadRange threads)
infrun_debug_printf ("%s:", title);
for (thread_info *thread : threads)
infrun_debug_printf (" thread %s, executing = %d, resumed = %d, "
- "state = %s",
+ "stop_requested = %d, state = %s",
thread->ptid.to_string ().c_str (),
thread->executing (),
thread->resumed (),
+ thread->stop_requested,
thread_state_string (thread->state));
}
}