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 64D2D3858C62 for ; Thu, 18 May 2023 18:31:30 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 64D2D3858C62 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 1pziPQ-0004Yi-Dj; Thu, 18 May 2023 14:31:28 -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=D16V8Yqf+BKD32XiULOMKP1xenxseY4YzkS2pvo2A/Q=; b=SH8c8Y/pF5oO 5bhJMIiIaT0dv2DrcXiIA8lZXoRhLDLpTWqkbpK9CMrGL5llRdnnPkHBAChYXt67uMMCnLwBc3XLE QS6sph6EHo/BfdoyQ/pV9lp2Bq37KIkvB+GqeigLOJPyJ19rEMvOn0eQZqGx6eabbprN7hlzn13xI v6Y/T2cGaWFiePaj4PVrtc896/uBD98U6nkEesp539rz0nOFsF6pYBXT2t6vFMCPFdECns582Bear FdOMx9EpDrCREWyaDnu4grhWEcqXXeriJJvg6qg1QUATDW+BHK11Hg66Lo1QHz+eUHxZrov6yuwmt nC6XwO+ZcBpUszxyugSWTw==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pziPN-0007p4-QR; Thu, 18 May 2023 14:31:28 -0400 Date: Thu, 18 May 2023 21:31:38 +0300 Message-Id: <83a5y1v6d1.fsf@gnu.org> From: Eli Zaretskii To: Tom Tromey Cc: gdb-patches@sourceware.org In-Reply-To: <87h6s9zfnt.fsf@tromey.com> (message from Tom Tromey on Thu, 18 May 2023 11:57:10 -0600) Subject: Re: [PATCH 8/9] Implement gdb.execute_mi References: <20230404-dap-loaded-sources-v1-0-75c796bd644b@adacore.com> <20230404-dap-loaded-sources-v1-8-75c796bd644b@adacore.com> <83bkk3tqh3.fsf@gnu.org> <87h6s9zfnt.fsf@tromey.com> X-Spam-Status: No, score=1.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_BARRACUDACENTRAL,SPF_HELO_PASS,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: > From: Tom Tromey > Cc: Tom Tromey , gdb-patches@sourceware.org > Date: Thu, 18 May 2023 11:57:10 -0600 > > >> +Invoke a @sc{GDB/MI} command. @var{command} is the name of the > >> +command, a string. (Note that the leading @samp{-} should be omitted > >> +here.) > > Eli> Why is it a good idea to omit the leading dash? > > In MI, the leading '-' is not really part of the command name. It seems > to be some kind of syntactic marker, though I have no idea why, as there > aren't any other possible such markers as far as I can tell. I'm not going to object, but frankly, it sounds strange. Our documentation of MI commands includes the leading dash with each command, so for the reader the dash is part of the command. > I've appended the updated python.texi patch. Thanks, this is OK. Approved-By: Eli Zaretskii