]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Use gdb unordered map in stap-probe.c
authorTom Tromey <tom@tromey.com>
Tue, 11 Mar 2025 17:18:41 +0000 (11:18 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 18 Mar 2025 11:32:03 +0000 (05:32 -0600)
This changes stap-probe.c to use gdb::unordered_map.

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

index 38ea199edd766c603ceb8251a2ec96fa7d10b0cf..b312b38db04670b2b1d7b5a0ea2eaf57a42b5bc9 100644 (file)
@@ -37,7 +37,7 @@
 #include "language.h"
 #include "elf-bfd.h"
 #include "expop.h"
-#include <unordered_map>
+#include "gdbsupport/unordered_map.h"
 
 #include <ctype.h>
 
@@ -434,7 +434,7 @@ typedef expr::operation_up binop_maker_ftype (expr::operation_up &&,
                                              expr::operation_up &&);
 /* Map from an expression opcode to a function that can create a
    binary operation of that type.  */
-static std::unordered_map<exp_opcode, binop_maker_ftype *> stap_maker_map;
+static gdb::unordered_map<exp_opcode, binop_maker_ftype *> stap_maker_map;
 
 /* Helper function to create a binary operation.  */
 static expr::operation_up