Modified ObjectFile::SetLoadAddress() to now be:
ObjectFile::SetLoadAddress (Target &target,
lldb::addr_t value,
bool value_is_offset);
Now "value" is a slide if "value_is_offset" is true, and "value" is an image base address otherwise. All previous usage of this API was using slides.
Updated the ObjectFileELF and ObjectFileMachO SetLoadAddress methods to do the right thing.
Also updated the ObjectFileMachO::SetLoadAddress() function to not load __LINKEDIT when it isn't needed and to only load sections that belong to the executable object file.
llvm-svn: 201003
This commit is contained in:
1 parent
c7fb225cdc
commit
751caf65c2
12 files changed
+139
-50
No files matched your search
@@ -69,7 +69,7 @@ SBModule::SBModule (lldb::SBProcess &process, lldb::addr_t header_addr) :
|
||||
{
|
||||
Target &target = process_sp->GetTarget();
|
||||
bool changed = false;
|
||||
m_opaque_sp->SetLoadAddress(target, 0, changed);
|
||||
m_opaque_sp->SetLoadAddress(target, 0, true, changed);
|
||||
target.GetImages().Append(m_opaque_sp);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user