From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19084 invoked by alias); 4 Mar 2011 07:37:12 -0000 Received: (qmail 18976 invoked by uid 22791); 4 Mar 2011 07:37:11 -0000 X-SWARE-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout21.012.net.il (HELO mtaout21.012.net.il) (80.179.55.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 04 Mar 2011 07:37:05 +0000 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0LHI00300VQ2UR00@a-mtaout21.012.net.il> for gdb-patches@sourceware.org; Fri, 04 Mar 2011 09:37:02 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.126.183.216]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LHI0037KVTOGB90@a-mtaout21.012.net.il>; Fri, 04 Mar 2011 09:37:02 +0200 (IST) Date: Fri, 04 Mar 2011 07:37:00 -0000 From: Eli Zaretskii Subject: Re: RFC: change "program exited" message In-reply-to: <201103032120.49764.pedro@codesourcery.com> To: Pedro Alves Cc: gdb-patches@sourceware.org, tromey@redhat.com Reply-to: Eli Zaretskii Message-id: <83vczzibiz.fsf@gnu.org> References: <201103032120.49764.pedro@codesourcery.com> 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: 2011-03/txt/msg00274.txt.bz2 > From: Pedro Alves > Date: Thu, 3 Mar 2011 21:20:49 +0000 > Cc: Tom Tromey > > Thanks for address this. It's an overdue change. > > On Thursday 03 March 2011 20:51:44, Tom Tromey wrote: > > This patch changes GDB to print: > > > > [Inferior 25036 exited normally] > > That number is the PID, but "Inferior" should go with > GDB's inferior id, otherwise, it's quite confusing. > > > [Inferior 25036 exited normally] > > I suggest, modelled on how we print threads: > > "[Inferior " + inferior->num + "(" target_pid_to_string (pid_to_ptid (inf->pid)) + ")" + $whathappened + "]" > > Should render on Linux as: > > [Inferior 1 (process 25036) exited normally] > > and against remote targets when gdb doesn't > know the target pid: > > [Inferior 1 (Remote target) exited normally] I agree with this. It is important that "New process 25036" and whatever we display when that process exits have some words in common.