[Lldb-commits] [lldb] [LLDB][Minidump] Have Minidumps save off and properly read TLS data (PR #109477)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Thu Oct 3 03:51:43 PDT 2024


================
@@ -1,6 +1,7 @@
 #include <cassert>
 #include <iostream>
 #include <thread>
+thread_local size_t lf = 42;
----------------
labath wrote:

To be sure thread-locals work properly, I'd suggest also creating a shared library (which is dlopened at runtime) and creating a non-main thread, which will be used to access the value of the variable.

https://github.com/llvm/llvm-project/pull/109477


More information about the lldb-commits mailing list