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



_______________________________________________
lldb-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits

Reply via email to