[1/3] gdb: improve infrun_debug_show_threads output

Message ID c1168e68878f02cc26c7e0b4c9c8e8215d626c10.1665076921.git.aburgess@redhat.com
State Committed
Commit adaef6569562ec0c3feb6144d0a420149906bf01
Headers
Series Another set of debug output patches |

Commit Message

Andrew Burgess Oct. 6, 2022, 5:23 p.m. UTC
  This commit switches to use INFRUN_SCOPED_DEBUG_START_END in the
infrun_debug_show_threads function, which means the output will get an
extra level of indentation, this looks a little nicer I think.
---
 gdb/infrun.h | 2 ++
 1 file changed, 2 insertions(+)
  

Patch

diff --git a/gdb/infrun.h b/gdb/infrun.h
index 0c7c55eabec..226cb3c3e34 100644
--- a/gdb/infrun.h
+++ b/gdb/infrun.h
@@ -62,6 +62,8 @@  infrun_debug_show_threads (const char *title, ThreadRange threads)
 {
   if (debug_infrun)
     {
+      INFRUN_SCOPED_DEBUG_ENTER_EXIT;
+
       infrun_debug_printf ("%s:", title);
       for (thread_info *thread : threads)
 	infrun_debug_printf ("  thread %s, executing = %d, resumed = %d, "