Remove the "next" field from windows_thread_info
authorTom Tromey <tromey@adacore.com>
Wed, 8 Apr 2020 20:33:35 +0000 (14:33 -0600)
committerTom Tromey <tromey@adacore.com>
Wed, 8 Apr 2020 20:47:57 +0000 (14:47 -0600)
commit93366324f5232374bc19d94d94b5ed6159326240
tree07338de00e881cdedab891def4e7c5b3567510b6
parent0f2265e2461babf685ff14f4ec9a9c60898453fe
Remove the "next" field from windows_thread_info

This changes windows_thread_info to remove the "next" field, replacing
the linked list of threads with a vector.  This is a prerequisite to
sharing this structure with gdbserver, which manages threads
differently.

gdb/ChangeLog
2020-04-08  Tom Tromey  <tromey@adacore.com>

* windows-nat.c (struct windows_thread_info): Remove typedef.
(thread_head): Remove.
(thread_list): New global.
(thread_rec, windows_add_thread, windows_init_thread_list)
(windows_delete_thread, windows_continue): Update.
gdb/ChangeLog
gdb/windows-nat.c