<div dir="ltr"><div>Thanks for the replies.</div><div><br></div>On Linux, I was testing this with lldb-server. But actually, this does not work on Mac either. That is why I was unsure and wanted to double check the expected behavior. You can reproduce it like this:<div><br></div><div>







<p class=""><span class="">labath-macbookair </span>~/ll/lldb/DerivedData <span class="">$ cat a.cc </span></p>
<p class="">#include <iostream></p>
<p class="">int main() {</p>
<p class="">std::string s;</p>
<p class="">std::cin >> s;</p>
<p class="">std::cout << "Read: " << s << std::endl;</p>
<p class="">}</p>
<p class=""><span class="">labath-macbookair </span>~/ll/lldb/DerivedData <span class="">$ clang++ a.cc</span></p>
<p class=""><span class="">labath-macbookair </span>~/ll/lldb/DerivedData <span class="">$ ./a.out</span></p>
<p class="">asdf</p>
<p class="">Read: asdf</p>
<p class=""><span class="">labath-macbookair </span><span class="">~/ll/lldb/DerivedData </span>$ lldb/Build/Products/Debug/lldb ./a.out -o "process launch"<br></p>
<p class="">(lldb) target create "./a.out"</p>
<p class="">Current executable set to './a.out' (x86_64).</p>
<p class="">(lldb) process launch</p>
<p class="">sadgljhsdlkg </p>
<p class="">sadlgkjlskd</p>
<p class="">^CProcess 22694 stopped</p>
<p class="">* thread #1: tid = 0x434ef4, 0x00007fff8df928ea libsystem_kernel.dylib`__read_nocancel + 10, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP</p>
<p class=""><br></p><p class=""><br></p><p class="">Since we seem to agree that this is a bug, I will try to find a solution to fix it.</p><p class=""><br></p><p class="">cheers,</p><p class="">pl</p><p class=""><br></p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 9 March 2015 at 20:18, Greg Clayton <span dir="ltr"><<a href="mailto:gclayton@apple.com" target="_blank">gclayton@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This is a bug. It works on MacOSX, so this will be something we need to fix for Linux. The question is: is this with lldb-server or with the ProcessLinux?<br>
<span class="HOEnZb"><font color="#888888"><br>
Greg<br>
</font></span><span class="im HOEnZb"><br>
> On Mar 9, 2015, at 6:03 AM, Pavel Labath <<a href="mailto:labath@google.com">labath@google.com</a>> wrote:<br>
><br>
</span><div class="HOEnZb"><div class="h5">> Hi all,<br>
><br>
> I have noticed that after starting a debug session with -o "process launch", the standard input does not get forwarded to the debugged process. Is this the indented behavior (not forwarding stdio when debugging with a script), or a bug? I would consider it a bug, because it means I can't just start the debug session from the command line and wait for the bug to occur if I need to give input to the application for the bug to manifest.<br>
><br>
> cheers,<br>
> pavel<br>
</div></div><div class="HOEnZb"><div class="h5">> _______________________________________________<br>
> lldb-dev mailing list<br>
> <a href="mailto:lldb-dev@cs.uiuc.edu">lldb-dev@cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a><br>
<br>
</div></div></blockquote></div><br></div>