From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id A62D63858D33 for ; Wed, 16 Aug 2023 16:36:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A62D63858D33 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gnu.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gnu.org 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 1qWJVm-0007pg-B1; Wed, 16 Aug 2023 12:36:46 -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=+H4YgZ8eb+uhKPqp7hd3YFUA9ZLcLH104BdceUR5QXA=; b=ONxNsQkjBfet uE2IxCCxYxBir1r7AQ15huibCvvC7oV2oLBgnwgCdTR8FaUX4Qezc2pwtgwfh2wpYB0fJ82Guke4K FNXK9Cj9n/kHGUq70Uf6v+ARZGeq0f6vY/1XvLKm9RkAM4JB4vh1bPmSn6OptwuLHEHl+uIwwpUj9 OB62AUtKjqdX/ZBj6uicgzEbapkWeo/7+ExfnfumRLpWl4j1ferVpZdAoYH98Hhuo0AD4V/qA427N d2C6bMgJ5lmL9+hmsetSejPSl0VZm1iFRzxWZzXSvqEjrSK/FfVqofGuNP1fxNguvH8/rQrN8L6IT /MGgKO6JNWve0o4BTWJpSw==; Date: Wed, 16 Aug 2023 19:36:52 +0300 Message-Id: <83wmxv6j17.fsf@gnu.org> From: Eli Zaretskii To: Andrew Burgess Cc: gdb-patches@sourceware.org In-Reply-To: <80d8b37d757033976b1a8ddd370c294c7aae8f8c.1692200989.git.aburgess@redhat.com> (message from Andrew Burgess via Gdb-patches on Wed, 16 Aug 2023 16:55:00 +0100) Subject: Re: [PATCH 04/10] gdb/gdbserver: add new qDefaultExecAndArgs packet References: <80d8b37d757033976b1a8ddd370c294c7aae8f8c.1692200989.git.aburgess@redhat.com> X-Spam-Status: No, score=-5.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,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: > Cc: Andrew Burgess > Date: Wed, 16 Aug 2023 16:55:00 +0100 > From: Andrew Burgess via Gdb-patches > > diff --git a/gdb/NEWS b/gdb/NEWS > index ef2b3b3a4f5..9839330c46d 100644 > --- a/gdb/NEWS > +++ b/gdb/NEWS > @@ -98,6 +98,14 @@ > user that the end of file has been reached, refers the user to the > newly added '.' argument > > +* When connecting to a remote server, if the server supports the > + qDefaultExecAndArgs packet, then GDB will copy the argument string > + from the server and update the 'args' setting, as if 'set args ...' > + had been used. This means that the arguments are visible from GDB > + using 'show args', and that, if using the extended-remote protocol, > + subsequent runs of the inferior will use the same arguments as the > + first run. > + > * New commands > > set debug breakpoint on|off > @@ -257,6 +265,13 @@ info main > ** gdb.Progspace now has the new method "objfile_for_address". This > returns the gdb.Objfile, if any, that covers a given address. > > +* New remote packets > + > +qDefaultExecAndArgs > + This packet returns the executable filename and argument string with > + which the server was started. If no such information was given to > + the server then this is reflected in the reply. > + > *** Changes in GDB 13 This part is OK. > --- a/gdb/doc/gdb.texinfo > +++ b/gdb/doc/gdb.texinfo > @@ -44718,6 +44718,36 @@ > A badly formed request or an error was encountered. > @end table > > +@item qDefaultExecAndArgs > +@cindex query executable, remote request > +@cindex query program arguments, remote request > +@cindex @samp{qDefaultExecAndArgs} packet Once again, the @cindex entries should be before the @item line. Thanks. Reviewed-By: Eli Zaretskii