public inbox for gdb-cvs@sourceware.org help / color / mirror / Atom feed
From: Simon Marchi <simark@sourceware.org> To: gdb-cvs@sourceware.org Subject: [binutils-gdb] gdb/value.c: add several headers to the include list Date: Wed, 20 Jul 2022 14:20:53 +0000 (GMT) [thread overview] Message-ID: <20220720142053.1F5CD3858D37@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b0cf0a5b9df3a5896524b066f234b5cf5a382b22 commit b0cf0a5b9df3a5896524b066f234b5cf5a382b22 Author: Christopher Di Bella <cjdb@google.com> Date: Wed Jul 20 06:01:20 2022 +0000 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 Diff: --- gdb/value.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gdb/value.c b/gdb/value.c index 022fca91a42..c9bec678d95 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"
reply other threads:[~2022-07-20 14:20 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220720142053.1F5CD3858D37@sourceware.org \ --to=simark@sourceware.org \ --cc=gdb-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).