Modified ObjectFile::SetLoadAddress() to now be:
authorGreg Clayton <gclayton@apple.com>
Fri, 7 Feb 2014 22:54:47 +0000 (22:54 +0000)
committerGreg Clayton <gclayton@apple.com>
Fri, 7 Feb 2014 22:54:47 +0000 (22:54 +0000)
commit751caf65c26cf20b805e73ef650d688cfe7f7bc6
treecfe358359bb94866b91dd339f4549370621215d6
parentc7fb225cdc4662535340acb5ee0749a5c6d3c7d3
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
12 files changed:
lldb/include/lldb/Core/Module.h
lldb/include/lldb/Symbol/ObjectFile.h
lldb/source/API/SBModule.cpp
lldb/source/API/SBTarget.cpp
lldb/source/Commands/CommandObjectTarget.cpp
lldb/source/Core/DynamicLoader.cpp
lldb/source/Core/Module.cpp
lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.h
lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.h