]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Use gdb map in mi-cmds.c
authorTom Tromey <tom@tromey.com>
Tue, 25 Feb 2025 19:02:50 +0000 (12:02 -0700)
committerTom Tromey <tom@tromey.com>
Tue, 11 Mar 2025 14:40:07 +0000 (08:40 -0600)
This changes mi-cmds.c to use gdb::unordered_map.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/mi/mi-cmds.c

index 02d4dc33ec4121bec96484cff779360c512a4790..6f39989f051833e98999a5c149f1772338c296a3 100644 (file)
 #include "mi-cmds.h"
 #include "mi-main.h"
 #include "mi-parse.h"
-#include <map>
+#include "gdbsupport/unordered_map.h"
 #include <string>
 
 /* MI command table (built at run time). */
 
-static std::map<std::string, mi_command_up> mi_cmd_table;
+static gdb::unordered_map<std::string, mi_command_up> mi_cmd_table;
 
 /* MI command with a pure MI implementation.  */