diff options
author | Tom Tromey <tom@tromey.com> | 2025-02-25 12:01:21 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2025-03-11 08:40:06 -0600 |
commit | 0c9953e0e07173f172c0994302d062a57dae57b0 (patch) | |
tree | 82a0657580fb5e06e6903f0993c2a63eb2c939ba /gdb/python | |
parent | ca198333325b87706c4506dd2005eb41736fe660 (diff) | |
download | binutils-0c9953e0e07173f172c0994302d062a57dae57b0.zip binutils-0c9953e0e07173f172c0994302d062a57dae57b0.tar.gz binutils-0c9953e0e07173f172c0994302d062a57dae57b0.tar.bz2 |
Use gdb map in py-connection.c
This changes py-connection.c to use gdb::unordered_map.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/python')
-rw-r--r-- | gdb/python/py-connection.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gdb/python/py-connection.c b/gdb/python/py-connection.c index 7b5146d..d2cd10d 100644 --- a/gdb/python/py-connection.c +++ b/gdb/python/py-connection.c @@ -27,8 +27,7 @@ #include "arch-utils.h" #include "remote.h" #include "charset.h" - -#include <map> +#include "gdbsupport/unordered_map.h" /* The Python object that represents a connection. */ @@ -65,8 +64,8 @@ extern PyTypeObject remote_connection_object_type /* A map between process_stratum targets and the Python object representing them. We actually hold a gdbpy_ref around the Python object so that reference counts are handled correctly when entries are deleted. */ -static std::map<process_stratum_target *, - gdbpy_ref<connection_object>> all_connection_objects; +static gdb::unordered_map<process_stratum_target *, + gdbpy_ref<connection_object>> all_connection_objects; /* Return a reference to a gdb.TargetConnection object for TARGET. If TARGET is nullptr then a reference to None is returned. |