From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4924 invoked by alias); 22 Apr 2008 22:13:02 -0000 Received: (qmail 4916 invoked by uid 22791); 22 Apr 2008 22:13:01 -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 22:12:42 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id EA2BA983E5 for ; Tue, 22 Apr 2008 22:12:40 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id D527298060 for ; Tue, 22 Apr 2008 22:12:40 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1JoQjA-0001FR-6K for gdb-patches@sourceware.org; Tue, 22 Apr 2008 18:12:40 -0400 Date: Wed, 23 Apr 2008 03:54:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sourceware.org Subject: Re: [RFC] gdb could leave inferior running as a background process Message-ID: <20080422221240.GA4779@caradoc.them.org> Mail-Followup-To: gdb-patches@sourceware.org References: <8ac60eac0804220741g6b830620h6f83c627fb00474b@mail.gmail.com> <20080422155548.GA13076@caradoc.them.org> <8ac60eac0804220946r689605e1pd4803c2aea3a9e07@mail.gmail.com> <8ac60eac0804221051p6ad56743g202a6f920d1c6315@mail.gmail.com> <20080422180459.GB20664@caradoc.them.org> <8ac60eac0804221240k4a238445vfba927e22aff93f0@mail.gmail.com> <20080422195515.GA28506@caradoc.them.org> <20080422203926.GA31285@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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/msg00493.txt.bz2 On Tue, Apr 22, 2008 at 03:08:49PM -0700, Doug Evans wrote: > Ah. It's hard to reason about correctness in this part of gdb. I can > see that keep_going calls target_terminal_inferior, but the code paths > are embedded in a big hairy state machine. [I've seen what > wait_for_inferior used to be, things *have* improved though.] Sadly, it's hard to get a grip on how much of it is necessary somewhere. -- Daniel Jacobowitz CodeSourcery