Summary: Needed to transfer stdout.txt to host before reading.
Reviewers: ovyalov, clayborg
Subscribers: tberghammer, lldb-commits
Differential Revision: http://reviews.llvm.org/D8023
llvm-svn: 231101
self.runCmd("process launch -o stdout.txt -- " + args_in)
+ if lldb.remote_platform:
+ src_file_spec = lldb.SBFileSpec('stdout.txt', False)
+ dst_file_spec = lldb.SBFileSpec('stdout.txt', True)
+ lldb.remote_platform.Get(src_file_spec, dst_file_spec);
+
with open('stdout.txt', 'r') as f:
output = f.read()