[Lldb-commits] [PATCH] Fix several test failures on Linux/FreeBSD caused by compiler configuration and invalid environment
Greg Clayton
clayborg at gmail.com
Mon Dec 1 13:18:50 PST 2014
The remote install file spec only needs to be set for remote targets and you must use the "lldb.remote_platform.GetWorkingDirectory()" as the directory (since it represents the remote install location) instead of "working_dir" which is on the current host.
To fix this you need to change:
# We must set the remote install location if we want the shared library
# to get uploaded to the remote target
remote_shlib_path = os.path.join(working_dir, os.path.basename(local_shlib_path))
shlib_module.SetRemoteInstallFileSpec(lldb.SBFileSpec(remote_shlib_path, False))
to be:
if lldb.remote_platform:
# We must set the remote install location if we want the shared library
# to get uploaded to the remote target
remote_shlib_path = os.path.join(lldb.remote_platform.GetWorkingDirectory(), os.path.basename(local_shlib_path))
shlib_module.SetRemoteInstallFileSpec(lldb.SBFileSpec(remote_shlib_path, False))
http://reviews.llvm.org/D6392
More information about the lldb-commits
mailing list