[Lldb-commits] Process::GetSTDOUT and PutSTDIN

Zachary Turner zturner at google.com
Fri Nov 21 17:46:50 PST 2014


I only see these functions being called from a couple of tests so I wasn't
able to figure out from the documentation all the preconditions and
assumptions that these functions make.    So I have a few questions:

1) Does the use of these functions require or assume that the process is
stopped at a breakpoint, or should they work even if the process is running?

2) When you call GetSTDOUT or GetSTDERR and they return successfully, does
it matter whether this eats the output from the actual STDOUT / STDERR?

For example, let's say we are using the public API and we launch a process
with STDOUT re-directed to a file.  Later, we call Process.GetSTDOUT using
the public API, and the value is returned to our script.  Does the output
that we read still need to go to the file?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20141122/1081a325/attachment.html>


More information about the lldb-commits mailing list