gdb: use intrusive_list for linux-nat lwp_list
authorSimon Marchi <simon.marchi@polymtl.ca>
Sat, 28 Aug 2021 14:58:45 +0000 (10:58 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Tue, 28 Sep 2021 02:30:11 +0000 (22:30 -0400)
commit901b98215e767bbffb1bfa869e02d7dc5ea786ec
tree31da2785d795cdf08419b11c6cfd701f1fa7b248
parent676362df181a39a5c58bba15f4f7524bfd58b88d
gdb: use intrusive_list for linux-nat lwp_list

Replace the manually maintained linked list of lwp_info objects with
intrusive_list.  Replace the ALL_LWPS macro with all_lwps, which returns
a range.  Add all_lwps_safe as well, for use in iterate_over_lwps, which
currently iterates in a safe manner.

Change-Id: I355313502510acc0103f5eaf2fbde80897d6376c
gdb/ia64-linux-nat.c
gdb/linux-nat.c
gdb/linux-nat.h
gdb/linux-thread-db.c
gdb/mips-linux-nat.c