mirror of
https://github.com/intel/llvm.git
synced 2026-01-22 15:41:35 +08:00
<rdar://problem/13265297>
StackFrame assumes m_sc is additive, but m_sc can lose its target. So now the SymbolContext::Clear() method takes a bool that indicates if the target should be cleared. Modified all existing code to properly set the bool argument. llvm-svn: 175953
This commit is contained in:
@@ -482,7 +482,7 @@ protected:
|
||||
ModuleSP module_sp (module_list.GetModuleAtIndex(i));
|
||||
if (module_sp && module_sp->ResolveFileAddress(m_options.address, so_addr))
|
||||
{
|
||||
sc.Clear();
|
||||
sc.Clear(true);
|
||||
if (module_sp->ResolveSymbolContextForAddress (so_addr, eSymbolContextEverything, sc) & eSymbolContextLineEntry)
|
||||
sc_list.Append(sc);
|
||||
}
|
||||
@@ -505,7 +505,7 @@ protected:
|
||||
ModuleSP module_sp (so_addr.GetModule());
|
||||
if (module_sp)
|
||||
{
|
||||
sc.Clear();
|
||||
sc.Clear(true);
|
||||
if (module_sp->ResolveSymbolContextForAddress (so_addr, eSymbolContextEverything, sc) & eSymbolContextLineEntry)
|
||||
{
|
||||
sc_list.Append(sc);
|
||||
|
||||
Reference in New Issue
Block a user