diff options
author | Greg Clayton <gclayton@apple.com> | 2010-09-14 23:36:40 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2010-09-14 23:36:40 +0000 |
commit | f5e56de0809eec71d97f4cc5905f8bd0a4415a50 (patch) | |
tree | 5c006894db84ba365b2371957a092dd51dd0ee9f /lldb/source/Target/ThreadPlanCallFunction.cpp | |
parent | 5f2311dc29c5182b3b5dc07fc5d01ac25eeec877 (diff) | |
download | bcm5719-llvm-f5e56de0809eec71d97f4cc5905f8bd0a4415a50.tar.gz bcm5719-llvm-f5e56de0809eec71d97f4cc5905f8bd0a4415a50.zip |
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
Diffstat (limited to 'lldb/source/Target/ThreadPlanCallFunction.cpp')
-rw-r--r-- | lldb/source/Target/ThreadPlanCallFunction.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lldb/source/Target/ThreadPlanCallFunction.cpp b/lldb/source/Target/ThreadPlanCallFunction.cpp index 7dc304756a1..f8d7f6a6bf6 100644 --- a/lldb/source/Target/ThreadPlanCallFunction.cpp +++ b/lldb/source/Target/ThreadPlanCallFunction.cpp @@ -66,13 +66,13 @@ ThreadPlanCallFunction::ThreadPlanCallFunction (Thread &thread, contexts.GetContextAtIndex(0, context); m_start_addr = context.symbol->GetValue(); - lldb::addr_t StartLoadAddr = m_start_addr.GetLoadAddress(&process); + lldb::addr_t StartLoadAddr = m_start_addr.GetLoadAddress(&target); if (!thread.SaveFrameZeroState(m_register_backup)) return; m_function_addr = function; - lldb::addr_t FunctionLoadAddr = m_function_addr.GetLoadAddress(&process); + lldb::addr_t FunctionLoadAddr = m_function_addr.GetLoadAddress(&target); if (!abi->PrepareTrivialCall(thread, spBelowRedZone, @@ -120,13 +120,13 @@ ThreadPlanCallFunction::ThreadPlanCallFunction (Thread &thread, contexts.GetContextAtIndex(0, context); m_start_addr = context.symbol->GetValue(); - lldb::addr_t StartLoadAddr = m_start_addr.GetLoadAddress(&process); + lldb::addr_t StartLoadAddr = m_start_addr.GetLoadAddress(&target); if(!thread.SaveFrameZeroState(m_register_backup)) return; m_function_addr = function; - lldb::addr_t FunctionLoadAddr = m_function_addr.GetLoadAddress(&process); + lldb::addr_t FunctionLoadAddr = m_function_addr.GetLoadAddress(&target); if (!abi->PrepareNormalCall(thread, spBelowRedZone, @@ -152,9 +152,9 @@ ThreadPlanCallFunction::GetDescription (Stream *s, lldb::DescriptionLevel level) else { if (m_args) - s->Printf("Thread plan to call 0x%llx with parsed arguments", m_function_addr.GetLoadAddress(&m_process), m_arg_addr); + s->Printf("Thread plan to call 0x%llx with parsed arguments", m_function_addr.GetLoadAddress(&m_process.GetTarget()), m_arg_addr); else - s->Printf("Thread plan to call 0x%llx void * argument at: 0x%llx", m_function_addr.GetLoadAddress(&m_process), m_arg_addr); + s->Printf("Thread plan to call 0x%llx void * argument at: 0x%llx", m_function_addr.GetLoadAddress(&m_process.GetTarget()), m_arg_addr); } } |