aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorThiago Jung Bauermann <thiago.bauermann@linaro.org>2023-04-09 16:50:11 +0000
committerThiago Jung Bauermann <thiago.bauermann@linaro.org>2023-04-10 22:33:48 +0000
commitf4b9c5e1bc4e704374f94e00f8a2ae75aec4cf28 (patch)
treecafe27ee9947f57524bb39e62e6928d443a4226b /gdb
parenta0f6c61c9ab998cd77b0899a4bdea9576d6d775f (diff)
downloadgdb-f4b9c5e1bc4e704374f94e00f8a2ae75aec4cf28.zip
gdb-f4b9c5e1bc4e704374f94e00f8a2ae75aec4cf28.tar.gz
gdb-f4b9c5e1bc4e704374f94e00f8a2ae75aec4cf28.tar.bz2
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>
Diffstat (limited to 'gdb')
-rw-r--r--gdb/dwarf2/cooked-index.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dwarf2/cooked-index.h b/gdb/dwarf2/cooked-index.h
index f266492..0d6f3e5 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 */