[Lldb-commits] [lldb] [LLDB] Enable TLS Variable Debugging Without Location Info on AArch64 (PR #110822)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Tue Oct 15 05:56:28 PDT 2024


================
@@ -254,7 +254,38 @@ bool ValueObjectVariable::UpdateValue() {
       m_resolved_value.SetContext(Value::ContextType::Invalid, nullptr);
     }
   }
-
+  if (m_error.Fail() && variable->IsThreadLocal()) {
+    ExecutionContext exe_ctx(GetExecutionContextRef());
+    Thread *thread = exe_ctx.GetThreadPtr();
+    lldb::ModuleSP module_sp = GetModule();
+    if (!thread) {
----------------
DavidSpickett wrote:

Get thread first and exit if it's nullptr, then get the others.

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


More information about the lldb-commits mailing list