public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] [PATCH] [gdb] adds several headers to the include list
@ 2022-07-20  6:01 Christopher Di Bella
  2022-07-20  6:04 ` Christopher Di Bella
  2022-07-20 14:21 ` Simon Marchi
  0 siblings, 2 replies; 8+ messages in thread
From: Christopher Di Bella @ 2022-07-20  6:01 UTC (permalink / raw)
  To: gdb-patches; +Cc: manojgupta, Christopher Di Bella

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_insert_iterator`
* `<utility>`, to support `std::move` and `std::swap`
* `<vector>`, to support `std::vector`
---
 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"
-- 
2.37.0.170.g444d1eabd0-goog


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-07-26 23:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-20  6:01 [PATCH] [PATCH] [gdb] adds several headers to the include list Christopher Di Bella
2022-07-20  6:04 ` Christopher Di Bella
2022-07-20 14:21 ` Simon Marchi
2022-07-20 15:42   ` Christopher Di Bella
2022-07-21 17:41     ` Pedro Alves
2022-07-22 18:46       ` Manoj Gupta
2022-07-22 19:26         ` Simon Marchi
2022-07-26 23:45           ` Manoj Gupta

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).