]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdbserver: use `gdb::unordered_map` users/simark/try-gdbserver-unordered-map
authorSimon Marchi <simon.marchi@polymtl.ca>
Tue, 26 Nov 2024 03:16:48 +0000 (22:16 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Tue, 26 Nov 2024 03:20:39 +0000 (22:20 -0500)
commit74f8902dddbfa60bceae086be2c34ee7f1ca3c37
treed20a0bb37e4307b2086253f8828ab5b67e087913
parente1bb778eabc85d262e368fdd6fbcee57b02c1bba
gdbserver: use `gdb::unordered_map`

Replace the few uses of `std::unordered_map` with `gdb::unordered_map`.

The only one of these that is likely to ever see a lot of elements is
probably `process_info::m_ptid_thread_map`.  It was added precisely to
improve performance when there are a lot of threads.  So using
`gdb::unordered_map` here won't hurt.

Change-Id: Ibc4ede5245551fdd7717cb349a012d05726f4363
gdbserver/inferiors.h
gdbserver/linux-aarch64-tdesc.cc
gdbserver/server.cc