diff options
author | Martin Simmons <martin@lispworks.com> | 2024-06-24 12:34:59 +0100 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2024-06-24 06:19:58 -0600 |
commit | c702f1ad8a6a51b9c74445c77e1f6e822ba9293b (patch) | |
tree | 4bba0e5156e55b0d57e3bfe3b34607c9106268c4 /gdb | |
parent | 0700386f142f0b0d3d0021995970a1b41c36cc92 (diff) | |
download | gdb-c702f1ad8a6a51b9c74445c77e1f6e822ba9293b.zip gdb-c702f1ad8a6a51b9c74445c77e1f6e822ba9293b.tar.gz gdb-c702f1ad8a6a51b9c74445c77e1f6e822ba9293b.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>
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ada-exp.y | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/ada-exp.y b/gdb/ada-exp.y index c2ab1de..0126db5 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" |