]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/windows-nat.c
Simplify windows-nat.c solib handling
authorTom Tromey <tromey@adacore.com>
Thu, 31 Mar 2022 15:43:49 +0000 (09:43 -0600)
committerTom Tromey <tromey@adacore.com>
Mon, 4 Apr 2022 19:58:37 +0000 (13:58 -0600)
commit85b25bd9759a606ce32eab736381c3ca600bd367
tree5df98fe651a1a0e5e285f543bc536e149190b814
parent4994e74b7abae108000cfab8fa621473f2b11cff
Simplify windows-nat.c solib handling

Currently windows-nat.c uses struct so_list to record its local idea
of which shared libraries have been loaded.  However, many fields in
this are not needed, and furthermore I found this quite confusing at
first -- Windows actually uses solib-target and so the use of so_list
here is weird.

This patch simplifies this code by changing it to use a std::vector
and a new type that holds exactly what's needed for the Windows code.
gdb/windows-nat.c