aboutsummaryrefslogtreecommitdiff
path: root/gdb/value.c
diff options
context:
space:
mode:
authorChristopher Di Bella <cjdb@google.com>2022-07-20 06:01:20 +0000
committerSimon Marchi <simon.marchi@polymtl.ca>2022-07-20 10:20:07 -0400
commitb0cf0a5b9df3a5896524b066f234b5cf5a382b22 (patch)
tree2bdd257b76b1bd66685e5990a222dbc3bba87d54 /gdb/value.c
parente0c01ce66d0215d87d1173003eb6104d3f62bcdf (diff)
downloadgdb-b0cf0a5b9df3a5896524b066f234b5cf5a382b22.zip
gdb-b0cf0a5b9df3a5896524b066f234b5cf5a382b22.tar.gz
gdb-b0cf0a5b9df3a5896524b066f234b5cf5a382b22.tar.bz2
gdb/value.c: add several headers to the include list
Building GDB currently fails to build with libc++, because libc++ is stricter about which headers "leak" entities they're not guaranteed to support. The following headers have been added: * `<iterator>`, to support `std::back_inserter` * `<utility>`, to support `std::move` and `std::swap` * `<vector>`, to support `std::vector` Change-Id: Iaeb15057c5fbb43217df77ce34d4e54446dbcf3d
Diffstat (limited to 'gdb/value.c')
-rw-r--r--gdb/value.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/value.c b/gdb/value.c
index 022fca9..c9bec67 100644
--- a/gdb/value.c
+++ b/gdb/value.c
@@ -40,6 +40,9 @@
#include "cp-abi.h"
#include "user-regs.h"
#include <algorithm>
+#include <iterator>
+#include <utility>
+#include <vector>
#include "completer.h"
#include "gdbsupport/selftest.h"
#include "gdbsupport/array-view.h"