[08/19] Use gdb unordered map in stap-probe.c

Message ID 20250317-replace-std-stuff-v1-8-7ba4ee88e218@tromey.com
State New
Headers
Series Convert std::unordered_{set,map} to gdb implementations |

Commit Message

Tom Tromey March 18, 2025, 2:15 a.m. UTC
  This changes stap-probe.c to use gdb::unordered_map.
---
 gdb/stap-probe.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Patch

diff --git a/gdb/stap-probe.c b/gdb/stap-probe.c
index 38ea199edd766c603ceb8251a2ec96fa7d10b0cf..b312b38db04670b2b1d7b5a0ea2eaf57a42b5bc9 100644
--- a/gdb/stap-probe.c
+++ b/gdb/stap-probe.c
@@ -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