[lldb-dev] process launch -o /tmp/foo.out

Vince Harron vharron at google.com
Fri Jan 23 12:10:14 PST 2015


Hi all,

I'm trying to get the test suite running against a Linux x86_64->Linux
x86_64 remote target.  I'm getting a failure when process launch is called
with stdout redirected to a file.

The host is sending QSetSTDOUT to the remote host with a path that is only
valid on the host.

For stdout/stderr there are a couple of ways to approach this problem.

1) Let the inferior write to a temporary file on the remote host and then
retrieve after the process exits?  I don't like this because I think it's
really useful to see the debug output from the file during debugging.

2) Hand the inferior a pipe for each redirected stdout/stderr, transfer the
bytes written to the host and then write them on the host to the specified
file.  What messages do I use for this?  It should be independent of $O.  I
don't want to use the $F messages because they're slightly different (and a
lot of work).

3) ???

For stdin, I think I will just copy to file over to the target and open it
on the inferior.

Thoughts?

Vince






-- 

Vince Harron | Technical Lead Manager | vharron at google.com | 858-442-0868
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20150123/1570a627/attachment.html>


More information about the lldb-dev mailing list