From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id B82F13931897 for ; Thu, 8 Dec 2022 21:30:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B82F13931897 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=simark.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=simark.ca Received: from [132.207.214.75] (Sansfil-Eduroam-Externe-214-75.polymtl.ca [132.207.214.75]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id 1D5ED1E0CB; Thu, 8 Dec 2022 16:30:09 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1670535010; bh=NVe1QCzykwkaSw4yYQjI3+xSAC0YVFtHcne2T7EpsD4=; h=Date:Subject:To:References:From:In-Reply-To:From; b=XXSm5IF7RZyFODmVeo1xdoL/pvm9zym1zSDXm1n3OBSdmv+857GW40EV/9jUQkZFi 7ljoVApWHHtTVMZeNKMALalhemg6cjMcp358wpPVBPKLqWEvxg1GacJ6HcJ5ierUZ0 eGw2qwY04AnrXnKeCDM+riikp5asMt05NXi6u22Y= Message-ID: Date: Thu, 8 Dec 2022 16:30:09 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: [PATCH 1/6] Tweak "Using the running image of ..." output Content-Language: fr To: Pedro Alves , gdb-patches@sourceware.org References: <20221203211338.2264994-1-pedro@palves.net> <20221203211338.2264994-2-pedro@palves.net> From: Simon Marchi In-Reply-To: <20221203211338.2264994-2-pedro@palves.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 12/3/22 16:13, Pedro Alves wrote: > Currently, "info files" and "info program" on a few native targets > show: > > (gdb) info files > Symbols from "/home/pedro/gdb/tests/threads". > Native process: > Using the running image of child Thread 0x7ffff7d89740 (LWP 1097968). > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > ... > > (gdb) info program > Using the running image of child Thread 0x7ffff7d89740 (LWP 1097968). > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > Program stopped at 0x555555555278. > ... > > > This patch changes them to: > > (gdb) info files > Symbols from "/home/pedro/gdb/tests/threads". > Native process: > Using the running image of child process 1097968. > ^^^^^^^^^^^^^^^ > ... > > (gdb) info program > Using the running image of child process 1097968. > ^^^^^^^^^^^^^^^ > Program stopped at 0x555555555278. > ... > > > ... which I think makes a lot more sense in this context. The "info > program" manual entry even says: > > "Display information about the status of your program: whether it is > running or not, what process it is, and why it stopped." > ^^^^^^^^^^^^^ > > This change affects ptrace targets, procfs targets, and Windows. > > Change-Id: I6aab061ff494a84ba3398cf98fd49efd7a6ec1ca > --- > gdb/inf-ptrace.c | 2 +- > gdb/nto-procfs.c | 2 +- > gdb/procfs.c | 2 +- > gdb/windows-nat.c | 2 +- > 4 files changed, 4 insertions(+), 4 deletions(-) Approved-By: Simon Marchi Simon