[Lldb-commits] [lldb] [lldb] Support changes to TLS on macOS (PR #77988)

via lldb-commits lldb-commits at lists.llvm.org
Wed Jan 17 11:12:10 PST 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 9f8c818141720c1bb69f9e023396a9aa0733ccf6 cef8673c1d20203d5072571b898f1ef738b14fb4 -- lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderDarwin.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderDarwin.cpp b/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderDarwin.cpp
index 6f0eff5472..33bb7f0768 100644
--- a/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderDarwin.cpp
+++ b/lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderDarwin.cpp
@@ -1141,8 +1141,8 @@ DynamicLoaderDarwin::GetThreadLocalData(const lldb::ModuleSP module_sp,
     }
     Address pthread_getspecific_addr = GetPthreadSetSpecificAddress();
     if (pthread_getspecific_addr.IsValid()) {
-      const addr_t tls_data = evaluate_tls_address(
-          pthread_getspecific_addr, llvm::ArrayRef<addr_t>(key));
+      const addr_t tls_data = evaluate_tls_address(pthread_getspecific_addr,
+                                                   llvm::ArrayRef<addr_t>(key));
       if (tls_data != LLDB_INVALID_ADDRESS)
         return tls_data + tls_offset;
     }

``````````

</details>


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


More information about the lldb-commits mailing list