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>
This commit is contained in:
Thiago Jung Bauermann
2023-04-09 16:50:11 +00:00
parent a0f6c61c9a
commit f4b9c5e1bc

View File

@@ -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 */