diff options
author | Hafiz Abid Qadeer <hafiz_abid@mentor.com> | 2017-01-19 17:32:50 +0000 |
---|---|---|
committer | Hafiz Abid Qadeer <hafiz_abid@mentor.com> | 2017-01-19 17:32:50 +0000 |
commit | 4687db0e09322d5a24f89aaa221ba854199e4333 (patch) | |
tree | ee539395d7d78a94dd17c4c81824d1e3f5b6ef81 /lldb/source/Core/Module.cpp | |
parent | bece0cd51294b96c5562d5f769363dc468e5f9bf (diff) | |
download | bcm5719-llvm-4687db0e09322d5a24f89aaa221ba854199e4333.tar.gz bcm5719-llvm-4687db0e09322d5a24f89aaa221ba854199e4333.zip |
Provide a substitute to load command of gdb.
For bare-metal targets, lldb was missing a command like 'load' in gdb
which can be used to create executable image on the target. This was
discussed in
http://lists.llvm.org/pipermail/lldb-dev/2016-December/011752.html
This commits adds an option to "target module load" command to provide
that functionality. It does not set the PC to entry address which will
be done separately.
Reviewed in https://reviews.llvm.org/D28804
llvm-svn: 292499
Diffstat (limited to 'lldb/source/Core/Module.cpp')
-rw-r--r-- | lldb/source/Core/Module.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/source/Core/Module.cpp b/lldb/source/Core/Module.cpp index 28f140b41e1..8cd06f11507 100644 --- a/lldb/source/Core/Module.cpp +++ b/lldb/source/Core/Module.cpp @@ -1664,3 +1664,7 @@ bool Module::GetIsDynamicLinkEditor() { return false; } + +Error Module::LoadInMemory(Target &target) { + return m_objfile_sp->LoadInMemory(target); +} |