From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id m5AjD+Lj42g1wiEAWB0awg (envelope-from ) for ; Mon, 06 Oct 2025 11:44:34 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=gnu.org header.i=@gnu.org header.a=rsa-sha256 header.s=fencepost-gnu-org header.b=ScNhgzXD; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 2B4101E047; Mon, 06 Oct 2025 11:44:34 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id C474F1E047 for ; Mon, 06 Oct 2025 11:44:32 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D04BB3858C52 for ; Mon, 6 Oct 2025 15:44:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D04BB3858C52 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=gnu.org header.i=@gnu.org header.a=rsa-sha256 header.s=fencepost-gnu-org header.b=ScNhgzXD Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 68E1D3858D29 for ; Mon, 6 Oct 2025 15:43:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 68E1D3858D29 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gnu.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gnu.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 68E1D3858D29 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:470:142:3::10 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1759765438; cv=none; b=eqGScrDLud9gakgVGvks0tb5sXtXmeqCDTYP/yXVWIwT3giKrusu4B83oc8iJ5aYa+tmtB/8Wbcb1+z8MDwknMSCPCLpwNYd+t0a27V41PlcFScPB0OuZxPGFX+W7b/yZfSMCCTbb+atard99sMYOSQcZbL8LRctKQphcQiHkys= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1759765438; c=relaxed/simple; bh=rcvQwjTMu2L3EBODE4WixtNEE36XKnACkDXfW4HHBMU=; h=DKIM-Signature:Date:Message-Id:From:To:Subject; b=sm7DPzp0kOXRV5wF5BJpV8TZ+uCuDvUtYy71K3Zqcg5Zz8t9qv/L35x3q7mlUrjnMrc9i6gWEoZO4PFLyF8edXBiHRoZaXoklZcxUdo5EjDuLbOus70PHrmUh9SBecaFmH1IRLC9t4x7eL3mvPacfZxJ1vmFMeAtVFCXJfJRPA4= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 68E1D3858D29 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1v5nNV-0007ws-PM; Mon, 06 Oct 2025 11:43:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=iBzta9Qb9ooqvLXtjAUsudYlex+HfSttjzGY0W0t1gc=; b=ScNhgzXDhb5h TRaIkPtkvn+Lo8OqyLvm/b79p+BW1s2woDcgVDgFaUX0bIz84VHC+uCPoawamKHaxPNsbdZjwdN2s 2BHw9Sqy+7AZm4HfFD8YZrkcDGH91Bk8pkS+ADNG4FvaFuTzqxdvbz66fh+ZVABZaAfFEG8QXNBOH PChAiX76NBbjiJnD0vAATJ1nCX/3sgqMW+VlVvuSvBYDArkX8V117byMQ4ZvT5V7wQViPDHY3sj/Q 97dU25RsoFg/J3e2vLTsRvxW5r+pb1+4oPEbky/ArKU2bVUFLyIKjSemjigR+AcjoGoygHTWExOAB lgRlCEXKuHpbdXUzXPXUbg==; Date: Mon, 06 Oct 2025 18:43:55 +0300 Message-Id: <86plb0c9xg.fsf@gnu.org> From: Eli Zaretskii To: Andrew Burgess Cc: gdb-patches@sourceware.org In-Reply-To: <40cbbd9f0082b07e9767656fe044bbe9280983a3.1759763251.git.aburgess@redhat.com> (message from Andrew Burgess on Mon, 6 Oct 2025 16:07:50 +0100) Subject: Re: [PATCH] gdb: use current executable for 'remote exec-file' in some cases References: <40cbbd9f0082b07e9767656fe044bbe9280983a3.1759763251.git.aburgess@redhat.com> X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org > From: Andrew Burgess > Cc: Andrew Burgess > Date: Mon, 6 Oct 2025 16:07:50 +0100 > > diff --git a/gdb/NEWS b/gdb/NEWS > index 2c73776944f..cfea3cf95c9 100644 > --- a/gdb/NEWS > +++ b/gdb/NEWS > @@ -31,6 +31,13 @@ > subsequent runs of the inferior will use the same arguments as the > first run. > > +* When connected to an extended-remote target which does not have an > + executable specified, if the current executable is specified using a > + 'target:' prefix; or if the sysroot does not have a 'target:' > + prefix, and the current executable is within the sysroot; then GDB > + can use the current executable name in order to start inferiors on > + the remote without having to 'set remote exec-file'. This single sentence is quite a mouth-full. Could you perhaps split it into two or more simpler sentences, e.g., the first one describing the capability and the rest describing the limitations/restrictions? > --- a/gdb/doc/gdb.texinfo > +++ b/gdb/doc/gdb.texinfo > @@ -24668,7 +24668,9 @@ Remote Configuration > Select the file used for @code{run} with @code{target > extended-remote}. This should be set to a filename valid on the > target system. If it is not set, the target will use a default > -filename (e.g.@: the last program run). > +filename (e.g.@: the last program run, or a filename derived from the > +current executable if @value{GDBN} and the remote can see the same > +file system). This part is okay. Thanks. Reviewed-By: Eli Zaretskii