From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Visuwesh Newsgroups: gmane.emacs.bugs Subject: bug#66604: [PATCH] Gud LLDB completions Date: Thu, 19 Oct 2023 12:01:02 +0530 Message-ID: <87il735djt.fsf@gmail.com> References: <13AC7AD2-230A-4FAC-81D9-75FBE53456F8@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32271"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 66604@debbugs.gnu.org, Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= To: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 19 08:31:56 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qtMZX-0008G1-1t for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 19 Oct 2023 08:31:55 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qtMZH-0002GF-QB; Thu, 19 Oct 2023 02:31:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qtMZE-0002G1-6Y for bug-gnu-emacs@gnu.org; Thu, 19 Oct 2023 02:31:37 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qtMZD-0000wJ-VN for bug-gnu-emacs@gnu.org; Thu, 19 Oct 2023 02:31:35 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qtMZe-00027K-0H for bug-gnu-emacs@gnu.org; Thu, 19 Oct 2023 02:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Visuwesh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Oct 2023 06:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66604 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 66604-submit@debbugs.gnu.org id=B66604.16976971028104 (code B ref 66604); Thu, 19 Oct 2023 06:32:01 +0000 Original-Received: (at 66604) by debbugs.gnu.org; 19 Oct 2023 06:31:42 +0000 Original-Received: from localhost ([127.0.0.1]:35578 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtMZK-00026d-5t for submit@debbugs.gnu.org; Thu, 19 Oct 2023 02:31:42 -0400 Original-Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]:48166) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtMZF-00026M-7Y for 66604@debbugs.gnu.org; Thu, 19 Oct 2023 02:31:41 -0400 Original-Received: by mail-pf1-x443.google.com with SMTP id d2e1a72fcca58-6b5e6301a19so5192703b3a.0 for <66604@debbugs.gnu.org>; Wed, 18 Oct 2023 23:31:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697697065; x=1698301865; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=cxmXjzDCnbSynVKmzemvIiglJslBhPJ1RZ+ZBjmDipI=; b=atRebSSkICu6ZinmUTENPuY+oBfMry2Jt5R2O8DxMNGpNZpCdUlxg3TlhTNwX3tZ2A 7TtWXtsUdAvCHsi4q+oL1kjvZ6VAirdQBXd9u9ZkexiN7y9U5cQMpnsyqy1HhGQDewcy iTRagsMjUtlw8Kxsv2M0yaTurUr20vHpEoaFwW249dGhNUO7nEHBJJHa9nx1KB2pl1cR Jj1fhru4LXvafBXL8bwqBYpiwEu6bczPVVkNcUxUXn4G65/Wqn+hI7K1WxzI1kJ1SNy7 am06Lr8qZ3CfG5Lb9ODz3Wi2NbR2ZP/gerBCUcjSgMbIMv93k7cLwVhRt7StIyUnEjov eUEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697697065; x=1698301865; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=cxmXjzDCnbSynVKmzemvIiglJslBhPJ1RZ+ZBjmDipI=; b=rWBtBRU1dakPelkgpv6UgoGiPWXalWtU2HExiAhirjWQWzCiuFEZKr443+58MhMKD8 oj8QE/GrrI4RMAowS43SynfJHqvaJLEM5i/o9lizkxlODMF+PtnRvtbBjoRSAxqNUCgl 6NvPyW1b5v0nQ749VDoGhbD+koedwobq1WmYX4NMFNmGtyT+f2Ija8HAoxSTDczXp+MH ExcNlF1pzW78tfIdovorE2z0qSAw7Ht3E46mb4YA3cz4h77Xg1itYoUheBaNDHOSg81C GAVZRUWg2wrG3p09+dwiiXhSZzPiQVWuFemS310kN8ygW+yEHyvoWBYU+z0ggrinaWAE aH6Q== X-Gm-Message-State: AOJu0YxDzMTMLRf9pPYqgABBB/7FmdsH8cgo1l2UyGvsMEkiQjfpzZnZ imgVHLVzOX46KH5Lf4HUfS8821MAJoryog== X-Google-Smtp-Source: AGHT+IE1W427GY9m/A8IzvAQ17kCQwDFnZa4yjTqx3pYfxOOleexGJ4M/nRRaeyt7wvCaID73tmivw== X-Received: by 2002:a05:6a00:24c6:b0:693:3cbc:3d8e with SMTP id d6-20020a056a0024c600b006933cbc3d8emr1373001pfv.0.1697697064810; Wed, 18 Oct 2023 23:31:04 -0700 (PDT) Original-Received: from localhost ([115.240.90.130]) by smtp.gmail.com with ESMTPSA id a129-20020a624d87000000b006906aaf1e4dsm4500704pfb.150.2023.10.18.23.31.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 23:31:04 -0700 (PDT) In-Reply-To: ("Gerd =?UTF-8?Q?M=C3=B6llmann?="'s message of "Wed, 18 Oct 2023 16:42:46 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:272700 Archived-At: [=E0=AE=AA=E0=AF=81=E0=AE=A4=E0=AE=A9=E0=AF=8D =E0=AE=85=E0=AE=95=E0=AF=8D= =E0=AE=9F=E0=AF=8B=E0=AE=AA=E0=AE=B0=E0=AF=8D 18, 2023] Gerd M=C3=B6llmann = wrote: >> Another thing that is a bit annoying with the new lldb support is that e= very command sent to lldb is echoed: >> >> (lldb) b exec_byte_code >> b exec_byte_code <--- echo >> Breakpoint 1: where =3D emacs`exec_byte_code ... >> >> Surely that wasn't intended? > > Should be fixed in the attached patch. If I guess that right, it's > comint that echoes. I have that turned off globally here for M-x shell. IME, this issue is better solved by forcing the process to not use any line editing library such as readline. > (gud-set-repeat-map-property 'gud-gdb-repeat-map) > (setq comint-prompt-regexp (rx line-start "(lldb)" (0+ blank))) > + (setq comint-process-echoes t) As this can possibly lock Emacs in remote lldb sessions over TRAMP for the entire duration of no echo from process. A good way to check is to set that variable to t in a remote bash shell and say `sleep 10' and enjoy the locked up Emacs for 10 seconds. :-) This happens due to the use of accept-process-output to remove the echoed back input line IIRC. > (setq paragraph-start comint-prompt-regexp) > (setq gud-running nil) > (setq gud-filter-pending-text nil) > + (gud-lldb-initialize) > (run-hooks 'lldb-mode-hook)) >=20=20 > (provide 'gud)