gdb/dwarf: Fix MinGW build
authorThiago Jung Bauermann <thiago.bauermann@linaro.org>
Sun, 9 Apr 2023 16:50:11 +0000 (16:50 +0000)
committerThiago Jung Bauermann <thiago.bauermann@linaro.org>
Mon, 10 Apr 2023 22:33:48 +0000 (22:33 +0000)
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>
gdb/dwarf2/cooked-index.h

index f2664929e521ffa66cdf16ee00dfeb020e1b5d31..0d6f3e5aa0ee31b77669367fc161f9659e994be3 100644 (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 */