From 3a49427939764f53e196ae10013c72fcffb8c085 Mon Sep 17 00:00:00 2001 From: Christian Biesinger Date: Tue, 22 Oct 2019 13:37:37 -0500 Subject: 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 * 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 --- gdb/utils.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gdb/utils.h') 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 +#ifdef HAVE_LIBXXHASH +#include +#endif + struct completion_match_for_lcd; class compiled_regex; -- cgit v1.1