public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] [PATCH] [gdb] adds `<iterator>` to list of includes
@ 2022-06-28  1:04 Christopher Di Bella
  2022-07-01 13:45 ` Enze Li
  2022-07-09  9:10 ` Andrew Burgess
  0 siblings, 2 replies; 9+ messages in thread
From: Christopher Di Bella @ 2022-06-28  1:04 UTC (permalink / raw)
  To: gdb-patches; +Cc: manojgupta, Christopher Di Bella

`std::back_inserter` is defined in `<iterator>`, which is currently
being transitively included by one of the other headers. This is causing
gdb to fail to build on certain platforms, which is fixed by explicitly
including it.
---
 gdb/value.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gdb/value.c b/gdb/value.c
index 022fca91a42..ba7ae1a0e18 100644
--- a/gdb/value.c
+++ b/gdb/value.c
@@ -40,6 +40,7 @@
 #include "cp-abi.h"
 #include "user-regs.h"
 #include <algorithm>
+#include <iterator>
 #include "completer.h"
 #include "gdbsupport/selftest.h"
 #include "gdbsupport/array-view.h"
-- 
2.37.0.rc0.161.g10f37bed90-goog


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

end of thread, other threads:[~2022-07-16 12:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-28  1:04 [PATCH] [PATCH] [gdb] adds `<iterator>` to list of includes Christopher Di Bella
2022-07-01 13:45 ` Enze Li
2022-07-01 21:50   ` Christopher Di Bella
2022-07-09  4:30     ` Enze Li
2022-07-09  5:57       ` Manoj Gupta
2022-07-09  8:54         ` Enze Li
2022-07-10 18:52           ` Simon Marchi
2022-07-16 12:38             ` Enze Li
2022-07-09  9:10 ` Andrew Burgess

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