From: Tom Tromey Date: Tue, 5 Apr 2022 13:25:10 +0000 (-0600) Subject: Don't call init_thread_list in windows-nat.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4815d6125ec580cc02a1094d61b8c9d1cc83c0a1;p=binutils-gdb.git Don't call init_thread_list in windows-nat.c 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. --- diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index 44c1950ace9..646ddda7328 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -401,7 +401,6 @@ static void windows_init_thread_list (void) { DEBUG_EVENTS ("called"); - init_thread_list (); thread_list.clear (); }