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 8:55 AM, Daniel Jacobowitz <drow@false.org> wrote:

>  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.

I see.

My preferred way of fixing this was to have warning() restore
terminal to inferior if it wasn't ours when warning was called,
but that's not how the rest of the code is structured.

Would attached patch work better then?

Thanks,
-- 
Paul Pluzhnikov


2008-04-22  Paul Pluzhnikov  <ppluzhnikov@google.com>

     * gdb/target.h (target_resume): Call target_terminal_inferior before
     resuming inferior.

Attachment: patch.txt
Description: Text document


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