public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "tromey at sourceware dot org" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug build/27579] stap-probe.c : Invalid use of incomplete type ‘struct std::hash<exp_opcode>’ Date: Mon, 15 Mar 2021 15:49:36 +0000 [thread overview] Message-ID: <bug-27579-4717-z2HyZsu2e2@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-27579-4717@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=27579 --- Comment #3 from Tom Tromey <tromey at sourceware dot org> --- That does seem like a better way. diff --git a/gdb/stap-probe.c b/gdb/stap-probe.c index 5995c2824dc..7f6d98a8ef2 100644 --- a/gdb/stap-probe.c +++ b/gdb/stap-probe.c @@ -38,6 +38,7 @@ #include "elf-bfd.h" #include "expop.h" #include <unordered_map> +#include "gdbsupport/hash_enum.h" #include <ctype.h> @@ -436,7 +437,8 @@ 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 std::unordered_map<exp_opcode, binop_maker_ftype *, + gdb::hash_enum<exp_opcode>> stap_maker_map; /* Helper function to create a binary operation. */ static expr::operation_up -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2021-03-15 15:49 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-03-15 11:37 [Bug gdb/27579] New: " vvinayag at arm dot com 2021-03-15 14:58 ` [Bug build/27579] " tromey at sourceware dot org 2021-03-15 15:01 ` tromey at sourceware dot org 2021-03-15 15:10 ` vvinayag at arm dot com 2021-03-15 15:49 ` tromey at sourceware dot org [this message] 2021-03-15 15:49 ` tromey at sourceware dot org 2021-03-15 15:51 ` vvinayag at arm dot com 2021-03-15 16:08 ` tromey at sourceware dot org 2021-03-15 16:54 ` vvinayag at arm dot com 2021-03-15 17:32 ` cvs-commit at gcc dot gnu.org 2021-03-15 17:35 ` tromey at sourceware dot org 2021-03-15 17:36 ` tromey at sourceware dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-27579-4717-z2HyZsu2e2@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).