summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
authorTamas Berghammer <tberghammer@google.com>2015-12-08 13:43:59 +0000
committerTamas Berghammer <tberghammer@google.com>2015-12-08 13:43:59 +0000
commit4fbd67ac11c224059724be0b8e0fbba8662c06de (patch)
treea010fa077ab097e9114327d12c47e26f47e65e17 /lldb/packages/Python/lldbsuite/test
parent9cbf7dde882f32618021db5d745ec09b98661cbc (diff)
downloadbcm5719-llvm-4fbd67ac11c224059724be0b8e0fbba8662c06de.tar.gz
bcm5719-llvm-4fbd67ac11c224059724be0b8e0fbba8662c06de.zip
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
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/load_unload/TestLoadUnload.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/load_unload/TestLoadUnload.py b/lldb/packages/Python/lldbsuite/test/functionalities/load_unload/TestLoadUnload.py
index 2afb8edf82c..10e7e50c2b8 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/load_unload/TestLoadUnload.py
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/load_unload/TestLoadUnload.py
@@ -210,19 +210,13 @@ class LoadUnloadTestCase(TestBase):
else:
dylibName = 'libloadunload_a.so'
- if lldb.remote_platform:
- # Don't use os.path.join as we have to use the path separator for the target
- dylibPath = shlib_dir + '/' + dylibName
- else:
- dylibPath = dylibName
-
# Make sure that a_function does not exist at this point.
self.expect("image lookup -n a_function", "a_function should not exist yet",
error=True, matching=False, patterns = ["1 match found"])
# Use lldb 'process load' to load the dylib.
- self.expect("process load %s" % dylibPath, "%s loaded correctly" % dylibPath,
- patterns = ['Loading "%s".*ok' % dylibPath,
+ self.expect("process load %s --install" % dylibName, "%s loaded correctly" % dylibName,
+ patterns = ['Loading "%s".*ok' % dylibName,
'Image [0-9]+ loaded'])
# Search for and match the "Image ([0-9]+) loaded" pattern.
OpenPOWER on IntegriCloud