Re: [PATCH v2] gdb: use gdb::unordered_{set,map} at a few places

Daniel Fellows <[email protected]> Mon, 27 Jul 2026 17:21:16 +0100
Newsgroups gmane.comp.gdb.patches
Message-ID <[email protected]>
Hi Simon,

Would you be willing to backport the solib-svr4.c change from this patch
to gdb-17-branch?

We encountered the following build failure on both Intel and Arm macOS
hosts after moving to GDB 17:

gdb/solib-svr4.c:3769:3: error:
no template named 'unordered_map' in namespace 'std';
did you mean 'gdb::unordered_map'?

I tested changing this instance to gdb::unordered_map, and it fixes the
affected macOS builds.

The complete commit touches several unrelated files, has conflicts with
gdb-17-branch, and part of it was later reverted for x86-nat.c. Only the
solib-svr4.c change appears to be required here.

Would you be able to prepare that backport, or advise whether another
approach would be preferred?

Thanks,
Daniel