[Lldb-commits] [lldb] [lldb] Add SymbolContext::GetAddress (PR #123340)
via lldb-commits
lldb-commits at lists.llvm.org
Fri Jan 17 05:34:59 PST 2025
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 ee4282259d5993dfa0b7b8937541dd6ccaadf3d5 2d6210ad9527df5147987f856e941e61d9851a97 --extensions h,cpp -- lldb/include/lldb/Symbol/SymbolContext.h lldb/source/Commands/CommandObjectTarget.cpp lldb/source/Plugins/DynamicLoader/Hexagon-DYLD/DynamicLoaderHexagonDYLD.cpp lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderDarwin.cpp lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp lldb/source/Plugins/LanguageRuntime/CPlusPlus/CPPLanguageRuntime.cpp lldb/source/Plugins/Process/Utility/InferiorCallPOSIX.cpp lldb/source/Plugins/SystemRuntime/MacOSX/SystemRuntimeMacOSX.cpp lldb/source/Symbol/SymbolContext.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lldb/source/Commands/CommandObjectTarget.cpp b/lldb/source/Commands/CommandObjectTarget.cpp
index 705c69167b..aef1758806 100644
--- a/lldb/source/Commands/CommandObjectTarget.cpp
+++ b/lldb/source/Commands/CommandObjectTarget.cpp
@@ -3566,7 +3566,8 @@ protected:
continue;
if (!sc.module_sp || sc.module_sp->GetObjectFile() == nullptr)
continue;
- Address addr = sc.GetAddress(eSymbolContextFunction | eSymbolContextSymbol, false);
+ Address addr =
+ sc.GetAddress(eSymbolContextFunction | eSymbolContextSymbol, false);
if (!addr.IsValid())
continue;
ConstString funcname(sc.GetFunctionName());
``````````
</details>
https://github.com/llvm/llvm-project/pull/123340
More information about the lldb-commits
mailing list