From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id cN9/FZ4SHmmKbhQAWB0awg (envelope-from ) for ; Wed, 19 Nov 2025 13:55:26 -0500 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (768-bit key; unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=ZxicWll1; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 48CAD1E0B6; Wed, 19 Nov 2025 13:55:26 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=no 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 E64F01E048 for ; Wed, 19 Nov 2025 13:55:25 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 83168384D168 for ; Wed, 19 Nov 2025 18:55:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 83168384D168 Authentication-Results: sourceware.org; dkim=fail reason="signature verification failed" (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=ZxicWll1 Received: from omta038.useast.a.cloudfilter.net (omta038.useast.a.cloudfilter.net [44.202.169.37]) by sourceware.org (Postfix) with ESMTPS id E18D1384D16D for ; Wed, 19 Nov 2025 18:54:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E18D1384D16D Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E18D1384D16D Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=44.202.169.37 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1763578467; cv=none; b=NcYOnTkVH/tA7LPK5v51WQ0/q8yx8EHolycWbx7+4EDsQPAJQ29SD3P+4Zgez9TikViYWAOUik1HXKYxTJcHDmXL5X+1cnWVRds+v6OjJbW1x5NOfxYQ1D8h1A0300P8XlMV1y7Yjj+aTnOKKLfFeA0vOrWNBff25c4v0juIP1U= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1763578467; c=relaxed/simple; bh=DQPljDIshgDP1AbMof+Bbd25Qt0iAWxd+vESiVFhV3E=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=XPIvmRlezDnWOBBV79zIk1Yx5mio7k5KUQQ/mYt0lfN8f4iUaB92TeBliG1MUnY7bxZUEvnDIMa5BpemNr9mPO/baJGSiOzV4GD+JpWc0dUZJE/HyttsPZ1rOO10vAl1Hxwiyfm5JumcxQeX0HYnnTkkQxcYcRaUa/IZ6CXovsY= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E18D1384D16D Received: from eig-obgw-5007b.ext.cloudfilter.net ([10.0.29.167]) by cmsmtp with ESMTPS id LmYavDMRzSkcfLnJyvoJxA; Wed, 19 Nov 2025 18:54:26 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id LnJxv1I9ZAPklLnJxvtsmO; Wed, 19 Nov 2025 18:54:26 +0000 X-Authority-Analysis: v=2.4 cv=W404VQWk c=1 sm=1 tr=0 ts=691e1262 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=6UeiqGixMTsA:10 a=ItBw4LHWJt0A:10 a=pGLkceISAAAA:8 a=EhMSfcC2bxG1gtO0uoAA:9 a=VS4QxaUSPT0UtbFnIvSC:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To :Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=IdlmIqz2ID75NeO7VuegjZPiBTNl6duwQDBeGOxBVq8=; b=ZxicWll1VeY5l/RfooHCLNNQ4o xGC96B32bQQ2mJS82GRQPdvLy7rr5boErHI/Ubgv+LggogxpOoBLCNIAvLdiIL3U/PjGsxRm24EcX 9WcIMjFeeXdFd2tVSCceD1JEb; Received: from 97-122-120-205.hlrn.qwest.net ([97.122.120.205]:32966 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vLnJw-00000004CYN-3xHu; Wed, 19 Nov 2025 11:54:25 -0700 From: Tom Tromey To: oltolm Cc: gdb-patches@sourceware.org Subject: Re: [PATCH v4] gdb/dap: add option commandEscapePrefix In-Reply-To: <20251116142613.1736-2-oleg.tolmatcev@gmail.com> (oltolm's message of "Sun, 16 Nov 2025 15:26:14 +0100") References: <20251116142613.1736-2-oleg.tolmatcev@gmail.com> X-Attribution: Tom Date: Wed, 19 Nov 2025 11:54:24 -0700 Message-ID: <87y0o1q2e7.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 97.122.120.205 X-Source-L: No X-Exim-ID: 1vLnJw-00000004CYN-3xHu X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-120-205.hlrn.qwest.net (bapiya) [97.122.120.205]:32966 X-Source-Auth: tom+tromey.com X-Email-Count: 5 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfBvwNrhLi5BpfL7iWx1+dbVpe9e6LQN33AvkCktpVKVE0J/SbI4Vg3q5Vt1W3wjLhhhpuD53lALbkkGuRklfELDmHHViEnQy880OD77OCZJI7eNvKA9u yqMys7r3nU+2maV02aXEq6ag8CnlyptEBjf5Yu/pY+yzhDSColMjn/KAEvvbOdU0PjHIm0x/vB/mNDdu9OYa9l1DLKmpA5WDCgA= 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 >>>>> oltolm writes: > The escape prefix to use for executing regular GDB commands in the Debug > Console, instead of printing variables. Defaults to an empty string. If it's > an empty string, then all expressions in the Debug Console are treated as > regular GDB commands. Thanks. > - result.append({"label": completion, "length": len(completion)}) > + result.append({"label": get_command_escape_prefix() + completion, "length": len(completion)}) ... > for match in mi_result["matches"]: > - result.append({"label": match, "length": len(match)}) > + result.append({"label": get_command_escape_prefix() + match, "length": len(match)}) Does the length of the prefix need to be added to the "length" value? Tom