From f5e56de0809eec71d97f4cc5905f8bd0a4415a50 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Tue, 14 Sep 2010 23:36:40 +0000 Subject: Moved the section load list up into the target so we can use the target to symbolicate things without the need for a valid process subclass. llvm-svn: 113895 --- lldb/source/API/SBTarget.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lldb/source/API/SBTarget.cpp') diff --git a/lldb/source/API/SBTarget.cpp b/lldb/source/API/SBTarget.cpp index 6c55c684bada..9e5c1ab27d5a 100644 --- a/lldb/source/API/SBTarget.cpp +++ b/lldb/source/API/SBTarget.cpp @@ -399,6 +399,7 @@ SBTarget::Disassemble (lldb::addr_t start_addr, lldb::addr_t end_addr, const cha // Make sure the process object is alive if we have one (it might be // created but we might not be launched yet). + Process *process = m_opaque_sp->GetProcessSP().get(); if (process && !process->IsAlive()) process = NULL; @@ -410,11 +411,11 @@ SBTarget::Disassemble (lldb::addr_t start_addr, lldb::addr_t end_addr, const cha if (!module_sp->ResolveFileAddress (start_addr, range.GetBaseAddress())) range.GetBaseAddress().SetOffset(start_addr); } - else if (process) + else if (m_opaque_sp->GetSectionLoadList().IsEmpty() == false) { // We don't have a module, se we need to figure out if "start_addr" // resolves to anything in a running process. - if (!process->ResolveLoadAddress(start_addr, range.GetBaseAddress())) + if (!m_opaque_sp->GetSectionLoadList().ResolveLoadAddress (start_addr, range.GetBaseAddress())) range.GetBaseAddress().SetOffset(start_addr); } else -- cgit v1.2.3