[Lldb-commits] [lldb] Check for null oso SymbolFile in SymbolFileDwarfDebugMap::ResolveSymbolContext (PR #89324)

via lldb-commits lldb-commits at lists.llvm.org
Thu Apr 18 15:12:49 PDT 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 6f1e23b47d428d792866993ed26f4173d479d43d b6021cf31e4c607dc4d541b4dd3b028e93050767 -- lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp
``````````

</details>

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

``````````diff
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp
index d6560e399e..448e640e9b 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp
+++ b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARFDebugMap.cpp
@@ -850,15 +850,15 @@ SymbolFileDWARFDebugMap::ResolveSymbolContext(const Address &exe_so_addr,
             if (oso_module->ResolveFileAddress(oso_file_addr, oso_so_addr)) {
               SymbolFile *sym_file = oso_module->GetSymbolFile();
               if (sym_file) {
-                resolved_flags |= sym_file->ResolveSymbolContext(oso_so_addr, 
-                    resolve_scope, sc);
+                resolved_flags |= sym_file->ResolveSymbolContext(
+                    oso_so_addr, resolve_scope, sc);
               } else {
                 ObjectFile *obj_file = GetObjectFile();
                 LLDB_LOG(GetLog(DWARFLog::DebugMap),
-                         "Failed to get symfile for OSO: {0} in module: {1}", 
-                         oso_module->GetFileSpec(), 
-                         obj_file ? obj_file->GetFileSpec() : 
-                             FileSpec("unknown"));
+                         "Failed to get symfile for OSO: {0} in module: {1}",
+                         oso_module->GetFileSpec(),
+                         obj_file ? obj_file->GetFileSpec()
+                                  : FileSpec("unknown"));
               }
             }
           }

``````````

</details>


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


More information about the lldb-commits mailing list