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/Target/ThreadPlanStepRange.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'lldb/source/Target/ThreadPlanStepRange.cpp') diff --git a/lldb/source/Target/ThreadPlanStepRange.cpp b/lldb/source/Target/ThreadPlanStepRange.cpp index dd215666082..35384827989 100644 --- a/lldb/source/Target/ThreadPlanStepRange.cpp +++ b/lldb/source/Target/ThreadPlanStepRange.cpp @@ -100,7 +100,7 @@ ThreadPlanStepRange::InRange () lldb::addr_t pc_load_addr = m_thread.GetRegisterContext()->GetPC(); - ret_value = m_address_range.ContainsLoadAddress(pc_load_addr, &m_thread.GetProcess()); + ret_value = m_address_range.ContainsLoadAddress(pc_load_addr, &m_thread.GetProcess().GetTarget()); if (!ret_value) { @@ -119,7 +119,7 @@ ThreadPlanStepRange::InRange () if (log) { StreamString s; - m_address_range.Dump (&s, &m_thread.GetProcess(), Address::DumpStyleLoadAddress); + m_address_range.Dump (&s, &m_thread.GetProcess().GetTarget(), Address::DumpStyleLoadAddress); log->Printf ("Step range plan stepped to another range of same line: %s", s.GetData()); } @@ -138,15 +138,13 @@ bool ThreadPlanStepRange::InSymbol() { lldb::addr_t cur_pc = m_thread.GetRegisterContext()->GetPC(); - Process *process = m_thread.CalculateProcess(); - if (m_addr_context.function != NULL) { - return m_addr_context.function->GetAddressRange().ContainsLoadAddress (cur_pc, process); + return m_addr_context.function->GetAddressRange().ContainsLoadAddress (cur_pc, &m_thread.GetProcess().GetTarget()); } else if (m_addr_context.symbol != NULL) { - return m_addr_context.symbol->GetAddressRangeRef().ContainsLoadAddress (cur_pc, process); + return m_addr_context.symbol->GetAddressRangeRef().ContainsLoadAddress (cur_pc, &m_thread.GetProcess().GetTarget()); } return false; } -- cgit v1.2.3