aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Simmons <martin@lispworks.com>2024-06-24 12:34:59 +0100
committerTom Tromey <tom@tromey.com>2024-06-24 06:24:48 -0600
commit72429c2a17a7c2f27006d5bee8404e8d73923878 (patch)
tree387aaa4ffc785bea791be637a2f9b413484d827c
parentdd6d09fd2bd3eca7e4fa160f13040be00a25b3c6 (diff)
downloadfsf-binutils-gdb-72429c2a17a7c2f27006d5bee8404e8d73923878.zip
fsf-binutils-gdb-72429c2a17a7c2f27006d5bee8404e8d73923878.tar.gz
fsf-binutils-gdb-72429c2a17a7c2f27006d5bee8404e8d73923878.tar.bz2
Include needed unordered_map header
Compiling on FreeBSD 13.2 with the default clang version 14.0.5 and top level configure options --with-python=/usr/local/bin/python3.9 gives this error: CXX ada-exp.o ./../binutils-gdb/gdb/ada-exp.y:100:8: error: no template named 'unordered_map' in namespace 'std' std::unordered_map<std::string, std::vector<ada_index_var_operation *>> ~~~~~^ 1 error generated. This change fixes it. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31918 Approved-By: Tom Tromey <tom@tromey.com> (cherry picked from commit c702f1ad8a6a51b9c74445c77e1f6e822ba9293b)
-rw-r--r--gdb/ada-exp.y1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/ada-exp.y b/gdb/ada-exp.y
index f3cef6d..8cf4b8f 100644
--- a/gdb/ada-exp.y
+++ b/gdb/ada-exp.y
@@ -36,6 +36,7 @@
%{
#include <ctype.h>
+#include <unordered_map>
#include "expression.h"
#include "value.h"
#include "parser-defs.h"