From 72310355ff64de112fcdd9e39297ddf377c9257e Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Sat, 23 Feb 2013 04:12:47 +0000 Subject: 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 --- lldb/source/Core/Module.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lldb/source/Core/Module.cpp') diff --git a/lldb/source/Core/Module.cpp b/lldb/source/Core/Module.cpp index 9490d2e2ece..953a81bfdbe 100644 --- a/lldb/source/Core/Module.cpp +++ b/lldb/source/Core/Module.cpp @@ -442,8 +442,8 @@ Module::ResolveSymbolContextForAddress (const Address& so_addr, uint32_t resolve Mutex::Locker locker (m_mutex); uint32_t resolved_flags = 0; - // Clear the result symbol context in case we don't find anything - sc.Clear(); + // Clear the result symbol context in case we don't find anything, but don't clear the target + sc.Clear(false); // Get the section from the section/offset address. SectionSP section_sp (so_addr.GetSection()); -- cgit v1.2.3