From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11313 invoked by alias); 22 Apr 2008 15:56:12 -0000 Received: (qmail 11300 invoked by uid 22791); 22 Apr 2008 15:56:11 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 22 Apr 2008 15:55:51 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id D17C7983DB; Tue, 22 Apr 2008 15:55:49 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id BD60598060; Tue, 22 Apr 2008 15:55:49 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1JoKqS-0003Pj-IG; Tue, 22 Apr 2008 11:55:48 -0400 Date: Tue, 22 Apr 2008 17:40:00 -0000 From: Daniel Jacobowitz To: Paul Pluzhnikov Cc: gdb-patches@sourceware.org Subject: Re: [RFC] gdb could leave inferior running as a background process Message-ID: <20080422155548.GA13076@caradoc.them.org> Mail-Followup-To: Paul Pluzhnikov , gdb-patches@sourceware.org References: <8ac60eac0804220741g6b830620h6f83c627fb00474b@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8ac60eac0804220741g6b830620h6f83c627fb00474b@mail.gmail.com> User-Agent: Mutt/1.5.17 (2007-12-11) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-04/txt/msg00473.txt.bz2 On Tue, Apr 22, 2008 at 07:41:20AM -0700, Paul Pluzhnikov wrote: > 2008-04-21 Paul Pluzhnikov > > * 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