[Lldb-commits] [PATCH] D42908: Fix Bug 36237 - TestTargetSymbolsSepDebugSymlink fails when run remotely
Jan Kratochvil via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon Feb 5 07:35:10 PST 2018
jankratochvil created this revision.
jankratochvil added a reviewer: labath.
(In reply to labath from Bug 36237 comment #0)
> The root problem is in Platform::Install. When given a symlink, it will try to create the same symlink on the target. However, Platform::CreateSymlink function is not implemented, but even if it was, the target is unlikely to contain anything at the place where the symlink points to. And even if it contain something, it would most likely be a different object than the debugger will obtain when it resolves the symlink locally.
`lldb-server platform` did create a symlink for me:
lrwxrwxrwx 1 jkratoch jkratoch 23 Feb 5 15:59 stripped.symlink -> ../dirreal/stripped.out
But I haven't found how to transfer the binaries there, I tried a bit some `AddModule`+`SetRemoteInstallFileSpec` but it did not work and I did not try harder.
> I think that a more reasonable behavior here would be to copy the file contents instead.
The symlink is essential for this testcase otherwise it does not test the bugfix. OK to just disable it for remote testing?
@@ -15,6 +15,7 @@
@no_debug_info_test # Prevent the genaration of the dwarf version of this test
exe = self.getBuildArtifact("dirsymlink/stripped.symlink")
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 703 bytes
Desc: not available
More information about the lldb-commits