diff options
author | Greg Clayton <gclayton@apple.com> | 2012-04-23 22:00:21 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2012-04-23 22:00:21 +0000 |
commit | 2dafd8ed4bc3a55e14c32794143f76c5f63218a0 (patch) | |
tree | 0aacc9bb2f56f4c99eab2ba25f18571d280a418a /lldb/source/Breakpoint/BreakpointResolverFileLine.cpp | |
parent | 3f8acfc3c40e8dad68a3deb13a9fbb31f1b82b99 (diff) | |
download | bcm5719-llvm-2dafd8ed4bc3a55e14c32794143f76c5f63218a0.tar.gz bcm5719-llvm-2dafd8ed4bc3a55e14c32794143f76c5f63218a0.zip |
<rdar://problem/11282938>
Fixed an issue where we get NULL compile units back from the symbol vendor. We need symbol vendors to be able to quickly give an estimate of the compile units that they have without having to fully vette them first, so anyone getting compile units from a module should be able to deal with a NULL compile unit being returned for a given index.
llvm-svn: 155398
Diffstat (limited to 'lldb/source/Breakpoint/BreakpointResolverFileLine.cpp')
-rw-r--r-- | lldb/source/Breakpoint/BreakpointResolverFileLine.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lldb/source/Breakpoint/BreakpointResolverFileLine.cpp b/lldb/source/Breakpoint/BreakpointResolverFileLine.cpp index 69f2cca3877..ca24377077d 100644 --- a/lldb/source/Breakpoint/BreakpointResolverFileLine.cpp +++ b/lldb/source/Breakpoint/BreakpointResolverFileLine.cpp @@ -72,8 +72,11 @@ BreakpointResolverFileLine::SearchCallback for (uint32_t i = 0; i < num_comp_units; i++) { CompUnitSP cu_sp (context.module_sp->GetCompileUnitAtIndex (i)); - if (filter.CompUnitPasses(*(cu_sp.get()))) - cu_sp->ResolveSymbolContext (m_file_spec, m_line_number, m_inlines, false, eSymbolContextEverything, sc_list); + if (cu_sp) + { + if (filter.CompUnitPasses(*cu_sp)) + cu_sp->ResolveSymbolContext (m_file_spec, m_line_number, m_inlines, false, eSymbolContextEverything, sc_list); + } } while (sc_list.GetSize() > 0) |