diff options
| author | Greg Clayton <gclayton@apple.com> | 2012-06-27 22:22:28 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2012-06-27 22:22:28 +0000 |
| commit | fed39aa653441238382bedfb1ad2bfcd09a1962f (patch) | |
| tree | f257d43c7e526e9214f40ebd8e45355474db915e /lldb/source/API | |
| parent | 0b9d158a7c8966ecac59c79a6d506ad7c28299ca (diff) | |
Added the ability to read the dSYM plist file with source remappings even when DebugSymbols isn't used to find the dSYM. We now parse the plist as XML in the MacOSX symbol vendor.
Added the ability to get a section load address given a target which is needed for a previous checking which saves crashlogs.
llvm-svn: 159298
Diffstat (limited to 'lldb/source/API')
| -rw-r--r-- | lldb/source/API/SBSection.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lldb/source/API/SBSection.cpp b/lldb/source/API/SBSection.cpp index 24b94a7a53a7..06a08d865f44 100644 --- a/lldb/source/API/SBSection.cpp +++ b/lldb/source/API/SBSection.cpp @@ -9,6 +9,7 @@ #include "lldb/API/SBSection.h" #include "lldb/API/SBStream.h" +#include "lldb/API/SBTarget.h" #include "lldb/Core/DataBuffer.h" #include "lldb/Core/DataExtractor.h" #include "lldb/Core/Log.h" @@ -126,6 +127,22 @@ SBSection::GetFileAddress () } lldb::addr_t +SBSection::GetLoadAddress (lldb::SBTarget &sb_target) +{ + TargetSP target_sp(sb_target.GetSP()); + if (target_sp) + { + SectionSP section_sp (GetSP()); + if (section_sp) + return section_sp->GetLoadBaseAddress(target_sp.get()); + } + return LLDB_INVALID_ADDRESS; + +} + + + +lldb::addr_t SBSection::GetByteSize () { SectionSP section_sp (GetSP()); |
