[RFC] gdb could leave inferior running as a background process
Daniel Jacobowitz
drow@false.org
Tue Apr 22 17:40:00 GMT 2008
On Tue, Apr 22, 2008 at 07:41:20AM -0700, Paul Pluzhnikov wrote:
> 2008-04-21 Paul Pluzhnikov <ppluzhnikov@google.com>
>
> * gdb/infrun.c (wait_for_inferior): Call
> target_terminal_inferior before blocking.
Sorry, don't think this will work reliably. If the target tried to
read after it was resumed but before the call to target_wait, and GDB
had the terminal, then it will have a pending SIGTTIN already at this
point.
We can't call terminal_ours* after resuming.
--
Daniel Jacobowitz
CodeSourcery
More information about the Gdb-patches
mailing list