diff options
author | Hafiz Abid Qadeer <hafiz_abid@mentor.com> | 2017-01-24 23:07:27 +0000 |
---|---|---|
committer | Hafiz Abid Qadeer <hafiz_abid@mentor.com> | 2017-01-24 23:07:27 +0000 |
commit | b10fb96541bc45aea71c8652bb1786899826f7ad (patch) | |
tree | e8e96808bc8afa6246afa5d880daf41ec14534bc /lldb/source/Core/Module.cpp | |
parent | 8c6ed0f3a081fee5f6e1372c39dbbcec07969ab9 (diff) | |
download | bcm5719-llvm-b10fb96541bc45aea71c8652bb1786899826f7ad.tar.gz bcm5719-llvm-b10fb96541bc45aea71c8652bb1786899826f7ad.zip |
Provide option to set pc of the file loaded in memory.
Summary: This commit adds an option to set PC to the entry point of the file loaded using "target module load" command. In D28804, Greg asked me to separate this part under a different option.
Reviewers: clayborg
Reviewed By: clayborg
Subscribers: lldb-commits
Differential Revision: https://reviews.llvm.org/D28944
llvm-svn: 292989
Diffstat (limited to 'lldb/source/Core/Module.cpp')
-rw-r--r-- | lldb/source/Core/Module.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Core/Module.cpp b/lldb/source/Core/Module.cpp index 8cd06f11507..d36f7cea359 100644 --- a/lldb/source/Core/Module.cpp +++ b/lldb/source/Core/Module.cpp @@ -1665,6 +1665,6 @@ bool Module::GetIsDynamicLinkEditor() { return false; } -Error Module::LoadInMemory(Target &target) { - return m_objfile_sp->LoadInMemory(target); +Error Module::LoadInMemory(Target &target, bool set_pc) { + return m_objfile_sp->LoadInMemory(target, set_pc); } |