aboutsummaryrefslogtreecommitdiff
path: root/gdb/stap-probe.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2024-11-01 13:07:16 -0600
committerTom Tromey <tromey@adacore.com>2024-11-04 10:49:06 -0700
commit8675d15227529517e0a7e78e1524ad9cc76afc14 (patch)
treeb85f13a53849770f951cdd79d50984e6b87b9112 /gdb/stap-probe.c
parentebc73070f4b85e4adee7d2f49cb32e2bd7b16324 (diff)
downloadgdb-8675d15227529517e0a7e78e1524ad9cc76afc14.zip
gdb-8675d15227529517e0a7e78e1524ad9cc76afc14.tar.gz
gdb-8675d15227529517e0a7e78e1524ad9cc76afc14.tar.bz2
Remove gdb::hash_enum
gdb::hash_enum is a workaround for a small oversight in C++11: std::hash was not defined for enumeration types. This was rectified in C++14 and so we can remove the local workaround. Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/stap-probe.c')
-rw-r--r--gdb/stap-probe.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/stap-probe.c b/gdb/stap-probe.c
index 9558351..9a2ff92 100644
--- a/gdb/stap-probe.c
+++ b/gdb/stap-probe.c
@@ -38,7 +38,6 @@
#include "elf-bfd.h"
#include "expop.h"
#include <unordered_map>
-#include "gdbsupport/hash_enum.h"
#include <ctype.h>
@@ -435,8 +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 *,
- gdb::hash_enum<exp_opcode>> stap_maker_map;
+static std::unordered_map<exp_opcode, binop_maker_ftype *> stap_maker_map;
/* Helper function to create a binary operation. */
static expr::operation_up