public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] gdb/dwarf: Fix MinGW build
@ 2023-04-10  4:21 Thiago Jung Bauermann
  2023-04-10 14:37 ` Tom Tromey
  0 siblings, 1 reply; 3+ messages in thread
From: Thiago Jung Bauermann @ 2023-04-10  4:21 UTC (permalink / raw)
  To: gdb-patches; +Cc: Thiago Jung Bauermann

Unfortunately MinGW doesn't support std::future yet, so this causes the
build to fail.  Use GDB's version which provides a fallback for this case.

Tested for regressions on native aarch64-linux.
---
 gdb/dwarf2/cooked-index.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb/dwarf2/cooked-index.h b/gdb/dwarf2/cooked-index.h
index f2664929e521..0d6f3e5aa0ee 100644
--- a/gdb/dwarf2/cooked-index.h
+++ b/gdb/dwarf2/cooked-index.h
@@ -442,7 +442,7 @@ class cooked_index : public dwarf_scanner_base
   vec_type m_vector;
 
   /* A future that tracks when the 'index_write' method is done.  */
-  std::future<void> m_write_future;
+  gdb::future<void> m_write_future;
 };
 
 #endif /* GDB_DWARF2_COOKED_INDEX_H */

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

end of thread, other threads:[~2023-04-10 23:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-10  4:21 [PATCH] gdb/dwarf: Fix MinGW build Thiago Jung Bauermann
2023-04-10 14:37 ` Tom Tromey
2023-04-10 23:22   ` Thiago Jung Bauermann

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