From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs Subject: bug#66604: [PATCH] Gud LLDB completions Date: Thu, 19 Oct 2023 08:56:06 +0200 Message-ID: References: <13AC7AD2-230A-4FAC-81D9-75FBE53456F8@gmail.com> <87il735djt.fsf@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="928"; 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: Visuwesh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 19 08:57:18 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 1qtMy6-00009g-Mo for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 19 Oct 2023 08:57:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qtMxY-0007LR-Fg; Thu, 19 Oct 2023 02:56:44 -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 1qtMxV-0007GL-9C for bug-gnu-emacs@gnu.org; Thu, 19 Oct 2023 02:56:41 -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 1qtMxQ-0002f6-17 for bug-gnu-emacs@gnu.org; Thu, 19 Oct 2023 02:56:37 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qtMxq-0003Ao-3R for bug-gnu-emacs@gnu.org; Thu, 19 Oct 2023 02:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Oct 2023 06:57:02 +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.169769860312159 (code B ref 66604); Thu, 19 Oct 2023 06:57:02 +0000 Original-Received: (at 66604) by debbugs.gnu.org; 19 Oct 2023 06:56:43 +0000 Original-Received: from localhost ([127.0.0.1]:35709 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtMxW-0003A3-UD for submit@debbugs.gnu.org; Thu, 19 Oct 2023 02:56:43 -0400 Original-Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631]:45532) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtMxU-00039p-Md for 66604@debbugs.gnu.org; Thu, 19 Oct 2023 02:56:41 -0400 Original-Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-9ba1eb73c27so1251110766b.3 for <66604@debbugs.gnu.org>; Wed, 18 Oct 2023 23:56:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697698568; x=1698303368; 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=0FlBuxRKy5bSXsCk8DxDUQKPv1vG0PeyYjLk7oHchEo=; b=jyQa0JOVqkC+/+jpAredyjscevVKIofGhRPmhm0HBHbc2ZQsXvXY1P8p9WEIbtuObn dXi9JoBgzbwJ/KWR5nwuFeM2acB1P0k8xtsMvIVElSsRc6IuHSK459LI5SBESnzTeVuF 0gfEzZtOf81MdC67eoW9ew6Dv0RkG0KtBYOiIjYc/V1vmZfDQFe+j/1gS01g0G7FUqHU M5c/WkSNNhmGf7PqKGIA8ud1OIkfdRpnmICN4y7DGw8nz5rrL2LcqEKMg9Ai+CBZ+Wwn eaHBgrBPybOWvueIcBcp+JKL7Wea1pza3Fl0h3BkzHXNWwp6pyCBiwLY9nVXid9XQm4q SquA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697698568; x=1698303368; 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=0FlBuxRKy5bSXsCk8DxDUQKPv1vG0PeyYjLk7oHchEo=; b=BtpwysKthCJqLR7tgFvxI1wDkOoeJg61Rd9CazcJz3mHws30f2/gC1E+AfSCwVa+mt pELxToVNDb1GIe6fZLtTTLi+WK1I0cUeFoABSygm3EBx/eqXszKTsjaMWrmMp0pr+R2j Pm0sENG1WbtqOkXRFktpNvQQAJgUcMNtoHDUGIPumPUIQw+B22Yl44FzI9QLt4OW3Jxl GTV4xwe6eTHPIN/dl9qam8NgKlC+3QYae1SEOdHpB0XEUyM8+dsYCXGxY798x3wE3N+r kot79L9why7rrGhkYK/l5Fezsr0Ar/h9aTuL/AEio0rMIEoTM+bjXsDWDlV13bWnirPQ hxdQ== X-Gm-Message-State: AOJu0YxTVkyZDZ3WJMkapD8MQyeX/bdEzgcha5IoJ+yNntIM6svAsP8i nWcjL764OYtgeMiKqb/rLYDMkotUjbo= X-Google-Smtp-Source: AGHT+IGUtofXWNdZWYfKGbXvGeDkhy8xGZ26vZUNfDoYI+o2kEm1V9Y1EMCHjvQ+onpPV56LH7ZJxQ== X-Received: by 2002:a17:906:99c5:b0:9be:39a4:b440 with SMTP id s5-20020a17090699c500b009be39a4b440mr1172599ejn.76.1697698567827; Wed, 18 Oct 2023 23:56:07 -0700 (PDT) Original-Received: from Pro.fritz.box (p4fe3abd8.dip0.t-ipconnect.de. [79.227.171.216]) by smtp.gmail.com with ESMTPSA id og46-20020a1709071dee00b0099bc08862b6sm3065728ejc.171.2023.10.18.23.56.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 23:56:07 -0700 (PDT) In-Reply-To: <87il735djt.fsf@gmail.com> (Visuwesh's message of "Thu, 19 Oct 2023 12:01:02 +0530") 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:272704 Archived-At: Visuwesh writes: > [=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=B6llma= nn wrote: > >>> Another thing that is a bit annoying with the new lldb support is that = every 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) Ok, patches welcome, so to say, since I have not idea how to make lldb not echo or not use its readline stuff, and so on. I'm more or less the opposite of an LLDB expert, I just need something that works on my M1 mac :-).