[10/10] Use gdb map in mi-cmds.c

Message ID 20250225-source-cache-hash-v1-10-f937ce22b0e9@tromey.com
State New
Headers
Series Some simple changes to use gdb's unordered set and map |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-arm success Build passed
linaro-tcwg-bot/tcwg_gdb_check--master-arm success Test passed
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 success Build passed
linaro-tcwg-bot/tcwg_gdb_check--master-aarch64 success Test passed

Commit Message

Tom Tromey Feb. 26, 2025, 1:08 a.m. UTC
  This changes mi-cmds.c to use gdb::unordered_map.
---
 gdb/mi/mi-cmds.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Patch

diff --git a/gdb/mi/mi-cmds.c b/gdb/mi/mi-cmds.c
index 02d4dc33ec4121bec96484cff779360c512a4790..6f39989f051833e98999a5c149f1772338c296a3 100644
--- a/gdb/mi/mi-cmds.c
+++ b/gdb/mi/mi-cmds.c
@@ -21,12 +21,12 @@ 
 #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.  */