diff options
author | 2024-06-24 12:34:59 +0100 | |
---|---|---|
committer | 2024-06-24 06:24:48 -0600 | |
commit | 72429c2a17a7c2f27006d5bee8404e8d73923878 (patch) | |
tree | 387aaa4ffc785bea791be637a2f9b413484d827c | |
parent | Automatic date update in version.in (diff) | |
download | binutils-gdb-72429c2a17a7c2f27006d5bee8404e8d73923878.tar.gz binutils-gdb-72429c2a17a7c2f27006d5bee8404e8d73923878.tar.bz2 binutils-gdb-72429c2a17a7c2f27006d5bee8404e8d73923878.zip |
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.y | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/ada-exp.y b/gdb/ada-exp.y index f3cef6d2a37..8cf4b8fdd7a 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" |