aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2022-05-09 11:48:40 -0600
committerTom Tromey <tromey@adacore.com>2022-05-10 08:15:40 -0600
commit20c4eb4226997c0de0a47d5d4c6c2eed21ed9af4 (patch)
treedb0fd93a83d261b61d2a107d823212a4e8c6c271 /gdb/dwarf2
parentc7d029ea9cc566b8d3c50b08ef12d98394adf1b1 (diff)
downloadgdb-20c4eb4226997c0de0a47d5d4c6c2eed21ed9af4.zip
gdb-20c4eb4226997c0de0a47d5d4c6c2eed21ed9af4.tar.gz
gdb-20c4eb4226997c0de0a47d5d4c6c2eed21ed9af4.tar.bz2
Fix --disable-threading build
PR build/29110 points out that GDB fails to build on mingw when the "win32" thread model is in use. It turns out that the Fedora cross tools using the "posix" thread model, which somehow manages to support std::future, whereas the win32 model does not. While looking into this, I found that the configuring with --disable-threading will also cause a build failure. This patch fixes this build by introducing a compatibility wrapper for std::future. I am not able to test the win32 thread model build, but I'm going to ask the reporter to try this patch. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=29110
Diffstat (limited to 'gdb/dwarf2')
-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 a460351..1d22958 100644
--- a/gdb/dwarf2/cooked-index.h
+++ b/gdb/dwarf2/cooked-index.h
@@ -330,7 +330,7 @@ private:
/* A future that tracks when the 'finalize' method is done. Note
that the 'get' method is never called on this future, only
'wait'. */
- std::future<void> m_future;
+ gdb::future<void> m_future;
};
#endif /* GDB_DWARF2_COOKED_INDEX_H */