aboutsummaryrefslogtreecommitdiff
path: root/gdb/utils.h
diff options
context:
space:
mode:
authorChristian Biesinger <cbiesinger@google.com>2019-10-22 13:37:37 -0500
committerChristian Biesinger <cbiesinger@google.com>2019-10-22 13:41:12 -0500
commit3a49427939764f53e196ae10013c72fcffb8c085 (patch)
tree3fd19bc98d4e2d2b6b6cce5f182683c61d4f6d92 /gdb/utils.h
parentccb1ba62299edce72053dd567b9d384814e11885 (diff)
downloadgdb-3a49427939764f53e196ae10013c72fcffb8c085.zip
gdb-3a49427939764f53e196ae10013c72fcffb8c085.tar.gz
gdb-3a49427939764f53e196ae10013c72fcffb8c085.tar.bz2
Fix compile error & incorrect push
I accidentally pushed the wrong version of the patch for commit 7bb43059820c5febb4509b15202a93efde442bc6 (where the review comments were not fixed), and I did a bad conflict resolution for ccb1ba62299edce72053dd567b9d384814e11885 leading to a compile error when libxxhash is available. This fixes both issues. gdb/ChangeLog: 2019-10-22 Christian Biesinger <cbiesinger@google.com> * symtab.c (struct demangled_name_entry): Add a constructor. (free_demangled_name_entry): New function to call the destructor for demangled_name_entry. (create_demangled_names_hash): Pass free_demangled_name_entry to htab_create_alloc. (symbol_set_names): Call placement new for demangled_name_entry. * utils.c: No longer include xxhash.h here, now that fast_hash is inlined in the header. * utils.h: Instead, include it here. Change-Id: If776099d39a65a12733d42efcb859feca1b07a39
Diffstat (limited to 'gdb/utils.h')
-rw-r--r--gdb/utils.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/utils.h b/gdb/utils.h
index a8ad9d9..e837621 100644
--- a/gdb/utils.h
+++ b/gdb/utils.h
@@ -25,6 +25,10 @@
#include "gdbsupport/scoped_restore.h"
#include <chrono>
+#ifdef HAVE_LIBXXHASH
+#include <xxhash.h>
+#endif
+
struct completion_match_for_lcd;
class compiled_regex;