[binutils-gdb] Use gdb map in mi-cmds.c

Tom Tromey tromey@sourceware.org
Tue Mar 11 15:11:48 GMT 2025


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=383aa019aea415567ff03c24bccd19dbb13e9e0b

commit 383aa019aea415567ff03c24bccd19dbb13e9e0b
Author: Tom Tromey <tom@tromey.com>
Date:   Tue Feb 25 12:02:50 2025 -0700

    Use gdb map in mi-cmds.c
    
    This changes mi-cmds.c to use gdb::unordered_map.
    
    Approved-By: Simon Marchi <simon.marchi@efficios.com>

Diff:
---
 gdb/mi/mi-cmds.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gdb/mi/mi-cmds.c b/gdb/mi/mi-cmds.c
index 02d4dc33ec4..6f39989f051 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.  */


More information about the Gdb-cvs mailing list