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/API/SBBreakpoint.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/API/SBBreakpoint.cpp')
-rw-r--r-- | lldb/source/API/SBBreakpoint.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/source/API/SBBreakpoint.cpp b/lldb/source/API/SBBreakpoint.cpp index f8c52ef0893..91b159870ca 100644 --- a/lldb/source/API/SBBreakpoint.cpp +++ b/lldb/source/API/SBBreakpoint.cpp @@ -134,8 +134,8 @@ SBBreakpoint::FindLocationByAddress (addr_t vm_addr) if (vm_addr != LLDB_INVALID_ADDRESS) { Address address; - Process *sb_process = m_opaque_sp->GetTarget().GetProcessSP().get(); - if (sb_process == NULL || sb_process->ResolveLoadAddress (vm_addr, address) == false) + Target &target = m_opaque_sp->GetTarget(); + if (target.GetSectionLoadList().ResolveLoadAddress (vm_addr, address) == false) { address.SetSection (NULL); address.SetOffset (vm_addr); @@ -156,8 +156,8 @@ SBBreakpoint::FindLocationIDByAddress (addr_t vm_addr) if (vm_addr != LLDB_INVALID_ADDRESS) { Address address; - Process *sb_process = m_opaque_sp->GetTarget().GetProcessSP().get(); - if (sb_process == NULL || sb_process->ResolveLoadAddress (vm_addr, address) == false) + Target &target = m_opaque_sp->GetTarget(); + if (target.GetSectionLoadList().ResolveLoadAddress (vm_addr, address) == false) { address.SetSection (NULL); address.SetOffset (vm_addr); |