Don't call init_thread_list in windows-nat.c
authorTom Tromey <tromey@adacore.com>
Tue, 5 Apr 2022 13:25:10 +0000 (07:25 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 5 Apr 2022 14:28:22 +0000 (08:28 -0600)
I don't think there's any need to call init_thread_list in
windows-nat.c.  This patch removes it.  I tested this using the
internal AdaCore test suite on Windows, which FWIW does include some
multi-threaded inferiors.

gdb/windows-nat.c

index 44c1950ace9055e3727094c8cef998f3b72909a5..646ddda7328fd0e7367006520bf5084687a7605d 100644 (file)
@@ -401,7 +401,6 @@ static void
 windows_init_thread_list (void)
 {
   DEBUG_EVENTS ("called");
 windows_init_thread_list (void)
 {
   DEBUG_EVENTS ("called");
-  init_thread_list ();
   thread_list.clear ();
 }
 
   thread_list.clear ();
 }