From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31057 invoked by alias); 8 Sep 2003 14:30:11 -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 31045 invoked from network); 8 Sep 2003 14:30:09 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 8 Sep 2003 14:30:09 -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 h88EU8l24278 for ; Mon, 8 Sep 2003 10:30:08 -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 h88EU6L22315 for ; Mon, 8 Sep 2003 10:30:07 -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 h88EU5w07156 for ; Mon, 8 Sep 2003 07:30:06 -0700 Received: by cygbert.vinschen.de (Postfix, from userid 500) id F03F25804E; Mon, 8 Sep 2003 16:29:59 +0200 (CEST) Date: Mon, 08 Sep 2003 14:30: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: <20030908142959.GH1859@cygbert.vinschen.de> Mail-Followup-To: gdb-patches@sources.redhat.com References: <20030908114200.GG1859@cygbert.vinschen.de> <20030908132716.GA17563@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030908132716.GA17563@nevyn.them.org> User-Agent: Mutt/1.4.1i X-SW-Source: 2003-09/txt/msg00115.txt.bz2 On Mon, Sep 08, 2003 at 09:27:17AM -0400, Daniel Jacobowitz wrote: > On Mon, Sep 08, 2003 at 01:42:01PM +0200, Corinna Vinschen wrote: > > Hi, > > > > while testing I found that a test for ending the program in > > gdb.base/bang.exp failed, even though the target had actually > > exited normally. The cause of the FAIL is that bang.exp doesn't > > expect anything after the string "Program exited normally.". > > On the sh target at least, the output after exiting contains a > > bit more text: > > > > Program exited normally. > > [Switching to process 0] > > > > Since that trailing output after a normal exit doesn't change > > anything with respect to the testresult, I propose to allow > > trailing characters: > > But isn't the [Switching to process 0] a bug? We aren't switching > processes, the inferior is dead. Actually I don't understand where's the bug. The above string is printed if previous_inferior_ptid != inferior_ptid in normal_stop(). previous_inferior_ptid is reproducible == {pid = 42, lwp = 0, tid = 0} while inferior_pid is set to all zero. The pid 42 is coming from remote-sim.c, function gdbsim_create_inferior, which always generates a pid 42. What's the exact problem with this? Corinna -- Corinna Vinschen Cygwin Developer Red Hat, Inc.