Add a new option to Platform::LoadImage to install the image
authorTamas Berghammer <tberghammer@google.com>
Tue, 8 Dec 2015 13:43:59 +0000 (13:43 +0000)
committerTamas Berghammer <tberghammer@google.com>
Tue, 8 Dec 2015 13:43:59 +0000 (13:43 +0000)
commit4fbd67ac11c224059724be0b8e0fbba8662c06de
treea010fa077ab097e9114327d12c47e26f47e65e17
parent9cbf7dde882f32618021db5d745ec09b98661cbc
Add a new option to Platform::LoadImage to install the image

This change introduce 3 different working mode for Platform::LoadImage
depending on the file specs specified.
* If only a remote file is specified then the remote file is loaded on
  the target (same behavior as before)
* If only a local file is specified then the local file is installed to
  the current working directory and then loaded from there.
* If both local and remote file is specified then the local file is
  installed to the specified location and then loaded from there.

The same options are exposed on the SB API with a new method LoadImage
method while the old signature presers its meaning.

On the command line the installation of the shared library can be specified
with the "--install" option of "process load".

Differential revision: http://reviews.llvm.org/D15152

llvm-svn: 255014
lldb/include/lldb/API/SBProcess.h
lldb/include/lldb/Target/Platform.h
lldb/packages/Python/lldbsuite/test/functionalities/load_unload/TestLoadUnload.py
lldb/source/API/SBProcess.cpp
lldb/source/Commands/CommandObjectProcess.cpp
lldb/source/Plugins/Platform/POSIX/PlatformPOSIX.cpp
lldb/source/Plugins/Platform/POSIX/PlatformPOSIX.h
lldb/source/Target/Platform.cpp