[binutils-gdb] gdb/dwarf: Fix MinGW build
Thiago Bauermann
bauermann@sourceware.org
Mon Apr 10 23:15:28 GMT 2023
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=f4b9c5e1bc4e704374f94e00f8a2ae75aec4cf28
commit f4b9c5e1bc4e704374f94e00f8a2ae75aec4cf28
Author: Thiago Jung Bauermann <thiago.bauermann@linaro.org>
Date: Sun Apr 9 16:50:11 2023 +0000
gdb/dwarf: Fix MinGW build
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.
Approved-By: Tom Tromey <tromey@adacore.com>
Diff:
---
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 f2664929e52..0d6f3e5aa0e 100644
--- a/gdb/dwarf2/cooked-index.h
+++ b/gdb/dwarf2/cooked-index.h
@@ -442,7 +442,7 @@ private:
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 */
More information about the Gdb-cvs
mailing list