title: Remote debugging w/ Eclipse CDT gdbserver: stdin/stdout
body: <p>OK, this seems pretty basic, but no luck. I'm using Eclipse Helios w/ CDT. Both host &amp; target are linux boxes. I've been starting my application on the target machine with:</p>
  <blockquote>
  <p>gdbserver :port my_app</p>
  </blockquote>
  <p>and successfully attaching from eclipse using a &quot;C/C++ Attach to Application&quot; debug configuration. My application's stdout is displayed on the target system, but stdin doesn't go to my app. In eclipse, I have a console for gdb (commands) and gdb trace, but no application console like when debugging locally. The debug configuration &quot;Allocate Console&quot; check-box just controls whether or not I get a gdb command console.</p>
  <p>I tried starting the application separately and attaching (using gdbserver --multi). This was worse: eclipse/gdb didn't see all running threads and stdin on the target tty resulted in</p>
  <blockquote>
  <p>Child terminated with signal = 0x5 (SIGTRAP)</p>
  <p>Trace/breakpoint trap</p>
  </blockquote>
  <p>Any help would be appreciated.</p>