Provide a substitute to load command of gdb.
authorHafiz Abid Qadeer <hafiz_abid@mentor.com>
Thu, 19 Jan 2017 17:32:50 +0000 (17:32 +0000)
committerHafiz Abid Qadeer <hafiz_abid@mentor.com>
Thu, 19 Jan 2017 17:32:50 +0000 (17:32 +0000)
commit4687db0e09322d5a24f89aaa221ba854199e4333
treeee539395d7d78a94dd17c4c81824d1e3f5b6ef81
parentbece0cd51294b96c5562d5f769363dc468e5f9bf
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/include/lldb/Core/Module.h
lldb/include/lldb/Symbol/ObjectFile.h
lldb/source/Commands/CommandObjectTarget.cpp
lldb/source/Core/Module.cpp
lldb/source/Symbol/ObjectFile.cpp