[Lldb-commits] [lldb] Check for null oso SymbolFile in SymbolFileDwarfDebugMap::ResolveSymbolContext (PR #89324)
Alex Langford via lldb-commits
lldb-commits at lists.llvm.org
Thu Apr 18 15:13:53 PDT 2024
================
@@ -848,9 +848,18 @@ SymbolFileDWARFDebugMap::ResolveSymbolContext(const Address &exe_so_addr,
debug_map_entry->data.GetOSOFileAddress();
Address oso_so_addr;
if (oso_module->ResolveFileAddress(oso_file_addr, oso_so_addr)) {
- resolved_flags |=
- oso_module->GetSymbolFile()->ResolveSymbolContext(
- oso_so_addr, resolve_scope, sc);
+ SymbolFile *sym_file = oso_module->GetSymbolFile();
+ if (sym_file) {
----------------
bulbazord wrote:
suggestion: `if (SymbolFile *sym_file = oso_module->GetSymbolFile()) {`
https://github.com/llvm/llvm-project/pull/89324
More information about the lldb-commits
mailing list