From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7701 invoked by alias); 8 Sep 2003 15:39:26 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 7686 invoked from network); 8 Sep 2003 15:39:24 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 8 Sep 2003 15:39:24 -0000 Received: from int-mx2.corp.redhat.com (nat-pool-rdu-dmz.redhat.com [172.16.52.200]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h88FdMl22364 for ; Mon, 8 Sep 2003 11:39:23 -0400 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx2.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h88FdLL26109 for ; Mon, 8 Sep 2003 11:39:21 -0400 Received: from cygbert.vinschen.de (vpn50-12.rdu.redhat.com [172.16.50.12]) by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id h88FdKw10227 for ; Mon, 8 Sep 2003 08:39:20 -0700 Received: by cygbert.vinschen.de (Postfix, from userid 500) id 8191A5804E; Mon, 8 Sep 2003 17:39:11 +0200 (CEST) Date: Mon, 08 Sep 2003 15:39:00 -0000 From: Corinna Vinschen To: gdb-patches@sources.redhat.com Subject: Re: [RFA] testsuite/gdb.base/bang.exp: Allow trailing text after "Program exited normally" Message-ID: <20030908153911.GJ1859@cygbert.vinschen.de> Mail-Followup-To: gdb-patches@sources.redhat.com References: <20030908114200.GG1859@cygbert.vinschen.de> <20030908132716.GA17563@nevyn.them.org> <20030908142959.GH1859@cygbert.vinschen.de> <20030908145213.GA21898@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030908145213.GA21898@nevyn.them.org> User-Agent: Mutt/1.4.1i X-SW-Source: 2003-09/txt/msg00118.txt.bz2 On Mon, Sep 08, 2003 at 10:52:13AM -0400, Daniel Jacobowitz wrote: > I was thinking of this patch. Looks good. Do you check this in? Corinna > 2003-09-08 Daniel Jacobowitz > > * infrun.c (normal_stop): Don't print a message if the inferior > has exited. > > Index: infrun.c > =================================================================== > RCS file: /cvs/src/src/gdb/infrun.c,v > retrieving revision 1.111 > diff -u -p -r1.111 infrun.c > --- infrun.c 7 Sep 2003 15:15:01 -0000 1.111 > +++ infrun.c 8 Sep 2003 14:50:59 -0000 > @@ -3054,14 +3054,21 @@ print_stop_reason (enum inferior_stop_re > void > normal_stop (void) > { > + struct target_waitstatus last; > + ptid_t last_ptid; > + > + get_last_target_status (&last_ptid, &last); > + > /* As with the notification of thread events, we want to delay > notifying the user that we've switched thread context until > the inferior actually stops. > > (Note that there's no point in saying anything if the inferior > - has exited!) */ > + has exited!) */ > if (!ptid_equal (previous_inferior_ptid, inferior_ptid) > - && target_has_execution) > + && target_has_execution > + && last.kind != TARGET_WAITKIND_SIGNALLED > + && last.kind != TARGET_WAITKIND_EXITED) > { > target_terminal_ours_for_output (); > printf_filtered ("[Switching to %s]\n", -- Corinna Vinschen Cygwin Developer Red Hat, Inc.