diff options
author | Greg Clayton <gclayton@apple.com> | 2013-02-23 04:12:47 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2013-02-23 04:12:47 +0000 |
commit | 72310355ff64de112fcdd9e39297ddf377c9257e (patch) | |
tree | ee4661bcac945175ee8db7e5ec2114b2b5321b13 /lldb/source/Commands/CommandObjectSource.cpp | |
parent | 6fcb39e0f06b0ee9e4632c38f78fe34af8af59ee (diff) | |
download | llvm-72310355ff64de112fcdd9e39297ddf377c9257e.zip llvm-72310355ff64de112fcdd9e39297ddf377c9257e.tar.gz llvm-72310355ff64de112fcdd9e39297ddf377c9257e.tar.bz2 |
<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
Diffstat (limited to 'lldb/source/Commands/CommandObjectSource.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectSource.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Commands/CommandObjectSource.cpp b/lldb/source/Commands/CommandObjectSource.cpp index 0beaadf..d7daa49 100644 --- a/lldb/source/Commands/CommandObjectSource.cpp +++ b/lldb/source/Commands/CommandObjectSource.cpp @@ -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); |