]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: use gdb::unordered_{set,map} at a few places
authorSimon Marchi <simon.marchi@efficios.com>
Thu, 13 Nov 2025 21:43:56 +0000 (16:43 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Mon, 17 Nov 2025 16:31:01 +0000 (11:31 -0500)
commit965deba12083d600eada3937b99699a873e0dcbe
tree51104f64843ec881f47898175f72c43abda7dff5
parentdef931f1270874aed2ed0a385a964f60f0c28161
gdb: use gdb::unordered_{set,map} at a few places

Use the gdb:: set/map types instead of the std:: ones.  I only changed
places in files I can build on my dev machine.

I needed to explicitly default the move constructor and assigment
operator in proc_mem_file.  I think this is ok, as nothing takes the
address of a proc_mem_file, requiring it not to move.

I also needed to do it for refcnt_fd, in solib-rocm.c.  It's a bit odd
to prevent moving / copying a refcnt_fd, as this struct doesn't directly
hold a resource, but I think I get why it was done.

Change-Id: If6f2d7ba3b1ae338eba38b0ab9f987400e661dff
Approved-By: Tom Tromey <tom@tromey.com>
gdb/aarch64-tdep.c
gdb/amdgpu-tdep.c
gdb/amdgpu-tdep.h
gdb/arch/amd64-linux-tdesc.c
gdb/arch/i386-linux-tdesc.c
gdb/i386-tdep.c
gdb/linux-nat.c
gdb/solib-rocm.c
gdb/solib-svr4.c
gdb/x86-nat.c