From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15410 invoked by alias); 9 Apr 2003 16:15:55 -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 15373 invoked from network); 9 Apr 2003 16:15:53 -0000 Received: from unknown (HELO localhost.redhat.com) (207.219.125.105) by sources.redhat.com with SMTP; 9 Apr 2003 16:15:53 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 06EEA2B23; Wed, 9 Apr 2003 12:15:37 -0400 (EDT) Message-ID: <3E944728.2070005@redhat.com> Date: Wed, 09 Apr 2003 16:15:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030223 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kevin Buettner Cc: gdb-patches@sources.redhat.com Subject: Re: [RFC] gdb.base/args.exp: Invoke gdb_load for simulator targets References: <1030408222709.ZM13182@localhost.localdomain> <3E942C6E.50003@redhat.com> <1030409160731.ZM16357@localhost.localdomain> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-04/txt/msg00161.txt.bz2 > On Apr 9, 10:21am, Andrew Cagney wrote: > > >> > * gdb.base/args.exp: Invoke gdb_load for simulator targets. >> > Modify regexps to match extra output after program exit in a >> > simulator. > >> >> What's the extra output? That part may be a bug. > > > When running on a simulator, I see: > > (gdb) target sim > Connected to the simulator. > (gdb) load gdb.base/args > (gdb) run > Starting program: .../gdb.base/args 1 3 > 3 > .../gdb.base/args > 1 > 3 > > Program exited normally. > [Switching to process 0] > Current language: auto; currently asm > (gdb) > > When running with a native gdb, I see: > > (gdb) run > Starting program: .../gdb.base/args 1 3 > 3 > .../gdb.base/args > 1 > 3 > > Program exited normally. > (gdb) > > The extra output is the bit about switching to process 0 and reporting > the current language. I figured it was a feature, but it may well be > a bug. (It seems pretty harmless...) I recall that mysteriously appearing at some stage. I don't think it is a feature since `Switching to process 0' doesn't make any sense - if the program exited normally then there are no processes. I suspect that it is related to the SIM trying to simultaneously be an embedded board (which can't exit) and a normal UNIX process (which does exit). I'd KFAIL it for now. I'm expecting to work on SIM's shortly so will actually look at it. Andrew