]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Make 'print_thread_events' static
authorTom Tromey <tom@tromey.com>
Sun, 12 Jan 2025 00:35:59 +0000 (17:35 -0700)
committerTom Tromey <tom@tromey.com>
Wed, 7 Jan 2026 18:33:04 +0000 (11:33 -0700)
This makes the 'print_thread_events' global static.  It's never used
outside of thread.c.

Reviewed-by: Stephan Rohr <stephan.rohr@intel.com>
gdb/gdbthread.h
gdb/thread.c

index 015da36ca71c6f32458bd80b7e0ce96b1e2474ee..68d7aebbbf768a91e2a1fb09052fc46cac320cdb 100644 (file)
@@ -864,10 +864,6 @@ extern struct cmd_list_element *thread_cmd_list;
 
 extern void thread_command (const char *tidstr, int from_tty);
 
-/* Print notices on thread events (attach, detach, etc.), set with
-   `set print thread-events'.  */
-extern bool print_thread_events;
-
 /* Prints the list of threads and their details on UIOUT.  If
    REQUESTED_THREADS, a list of GDB ids/ranges, is not NULL, only
    print threads whose ID is included in the list.  If PID is not -1,
index 2c5292d24b7c61663a1349d8c26cd0a4d53fad63..98228fc144ca74a733eab0ffe8ed8f7fb234ec1c 100644 (file)
@@ -51,6 +51,9 @@
 #include "interps.h"
 #include "record-full.h"
 
+/* Print notices when new threads are attached and detached.  */
+static bool print_thread_events = true;
+
 /* See gdbthread.h.  */
 
 bool debug_threads = false;
@@ -2059,8 +2062,6 @@ thread_find_command (const char *arg, int from_tty)
     gdb_printf (_("No threads match '%s'\n"), arg);
 }
 
-/* Print notices when new threads are attached and detached.  */
-bool print_thread_events = true;
 static void
 show_print_thread_events (struct ui_file *file, int from_tty,
                          struct cmd_list_element *c, const char *value)