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
This commit is contained in:
1 parent
0b9d158a7c
commit
fed39aa653
7 files changed
+135
No files matched your search
@@ -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"
|
||||
@@ -125,6 +126,22 @@ SBSection::GetFileAddress ()
|
||||
return file_addr;
|
||||
}
|
||||
|
||||
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 ()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user