From 4687db0e09322d5a24f89aaa221ba854199e4333 Mon Sep 17 00:00:00 2001 From: Hafiz Abid Qadeer Date: Thu, 19 Jan 2017 17:32:50 +0000 Subject: 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 --- lldb/source/Core/Module.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lldb/source/Core/Module.cpp') 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); +} -- cgit v1.2.3