From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 914 invoked by alias); 3 Mar 2011 21:20:46 -0000 Received: (qmail 906 invoked by uid 22791); 3 Mar 2011 21:20:45 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 03 Mar 2011 21:20:40 +0000 Received: (qmail 1659 invoked from network); 3 Mar 2011 21:20:38 -0000 Received: from unknown (HELO scottsdale.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 3 Mar 2011 21:20:38 -0000 From: Pedro Alves To: gdb-patches@sourceware.org Subject: Re: RFC: change "program exited" message Date: Thu, 03 Mar 2011 21:20:00 -0000 User-Agent: KMail/1.13.5 (Linux/2.6.35-27-generic; KDE/4.6.0; x86_64; ; ) Cc: Tom Tromey References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <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/msg00213.txt.bz2 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] -- Pedro Alves