This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] gdb could leave inferior running as a background process


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]