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: Sat, 21 Oct 2023 12:50:38 +0200 Message-ID: References: <13AC7AD2-230A-4FAC-81D9-75FBE53456F8@gmail.com> <586BC992-4776-4C8B-9700-821FF04A1046@gmail.com> <27BF071E-2E0D-49F9-B595-E8A560436C50@gmail.com> <2577C531-285B-49CC-BFAA-3D3A3A0B986D@gmail.com> <22B5EBE2-945E-413F-BCC6-8693AB90988C@gmail.com> <45D77CAF-8694-434D-90BC-448886FBB68E@gmail.com> <68E433F5-C7A5-4DCB-BF2B-FE1054F71E69@gmail.com> <012EA2B6-279A-4A83-8C63-00EDB44A14CF@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="34562"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 66604@debbugs.gnu.org To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 21 12:51:51 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 1qu9aA-0008lu-8n for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 21 Oct 2023 12:51:50 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qu9Zv-0000VH-UL; Sat, 21 Oct 2023 06:51:35 -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 1qu9Zv-0000V1-Ei for bug-gnu-emacs@gnu.org; Sat, 21 Oct 2023 06:51:35 -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 1qu9Zu-0008Ax-Eo for bug-gnu-emacs@gnu.org; Sat, 21 Oct 2023 06:51:35 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qu9aL-0004F4-U5 for bug-gnu-emacs@gnu.org; Sat, 21 Oct 2023 06:52:01 -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: Sat, 21 Oct 2023 10:52: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.169788548116239 (code B ref 66604); Sat, 21 Oct 2023 10:52:01 +0000 Original-Received: (at 66604) by debbugs.gnu.org; 21 Oct 2023 10:51:21 +0000 Original-Received: from localhost ([127.0.0.1]:42332 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qu9Zg-0004Dp-MP for submit@debbugs.gnu.org; Sat, 21 Oct 2023 06:51:21 -0400 Original-Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]:45492) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qu9Zd-0004DZ-1s for 66604@debbugs.gnu.org; Sat, 21 Oct 2023 06:51:19 -0400 Original-Received: by mail-ed1-x52b.google.com with SMTP id 4fb4d7f45d1cf-538e8eca9c1so2310102a12.3 for <66604@debbugs.gnu.org>; Sat, 21 Oct 2023 03:50:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697885442; x=1698490242; 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=Ncr5lP9XRU3W0ziOVUn10bKB2uozKHj8tG09unot3qY=; b=i1wHifEjkvxYr9D0zIEFAEjZE4ssdCmykhg7vFGY7MmwfCqjS4f71g29+PztyXFXVx 1XoNAuA3pgxdQfLtgPlRZ3MjvTKTQYsl9Rgv38z5l2eUD6Bkl5Azi1Uw00F5OVzjVUDC EWuu3y6EpqtuqHQX9C8wxIwFbL0o4cod/oPz0aFeeEK6InI+A8a1K9HKOao/TqJ91ryU r2fGQhZ9PbM/giyP1c4QIwUWbqFsIEnk7N8GPtgUq+ZeXOEdBGUoTd9Ekn+AjWVgiT06 +/cR5glaTKbOgNSvDsctn9xHE4HZig5KrjoPJkpFYjx4H70JlY4kRSx7TdQbp5wMYX38 a0aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697885442; x=1698490242; 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=Ncr5lP9XRU3W0ziOVUn10bKB2uozKHj8tG09unot3qY=; b=qE405d/i7A/p26d9zmasWArY9X/l+hvq09lC7jE22dIZ7OpX8XPBiuwoLlKhnWx4vf uuYRg8d2VFduyyPNBKgqxwbQNBf0p+uN4nq4XmSTX5JxVlmJUkjtvOXlfT9FFjAPHWGW hChcJVG2q5Saaf/7+eDA+bHN2t09mAeB9PpV9sDdtxI2IW/7uV3OIMurHsrxXT+X5lMM e3tOoKKEfEWhF8WqVDMs/9nFtoEaJRQ/21MVuvFFgG+q76EhZBktZ4FmTyjwX3Lg1CtP KdbCt3etEADUuYWlyPAAI8PNOHcsRi+mqSjTCITO568bmpj9asnigFXDPFLkM69U/xzU yX9Q== X-Gm-Message-State: AOJu0YyEHK5jF/0d8FWT9GSwa/oSdrqdrXeEOX2Pej59P2eLigqO7zsb 63ZuW+eFUkG5bct8u+DigQq0RW+VwfI= X-Google-Smtp-Source: AGHT+IEdiFJk3OqOMCLICRhBVmBOQvYrLPZxo2ZOjSBUlkJU7+sMk74CB8IuPjnD0rdiYTppN77c4w== X-Received: by 2002:a17:907:3d9f:b0:9b2:b152:b0f2 with SMTP id he31-20020a1709073d9f00b009b2b152b0f2mr3083808ejc.10.1697885441621; Sat, 21 Oct 2023 03:50:41 -0700 (PDT) Original-Received: from Pro.fritz.box (pd9e366af.dip0.t-ipconnect.de. [217.227.102.175]) by smtp.gmail.com with ESMTPSA id v21-20020a170906489500b009b928eb8dd3sm3368094ejq.163.2023.10.21.03.50.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Oct 2023 03:50:41 -0700 (PDT) In-Reply-To: <012EA2B6-279A-4A83-8C63-00EDB44A14CF@gmail.com> ("Mattias =?UTF-8?Q?Engdeg=C3=A5rd?="'s message of "Sat, 21 Oct 2023 12:37:12 +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:272859 Archived-At: Mattias Engdeg=C3=A5rd writes: > 20 okt. 2023 kl. 19.28 skrev Gerd M=C3=B6llmann : > >> Look at these escape sequences that suddenly appear when attaching to a >> process! I don't even know what "[1G" and "[8G" do. > > Fascinating! We should probably look into the source code producing it > (libedit probably) but I wrote the attached monstrosity and > it... seems to work. (Proof of concept only.) Yeah, I've actually looked at the sources :-). There is an EditLine.cpp which has functions for this sort of stuff, but I couldn't find out where in LLDB it is actually called in the offending case. > It attempts to edit out the part of strings jumped over by CHA (CSI > G), and it also edits out ED (CSI J) which is in this case just used > to do exactly that immediately after CHA. H, don't know. SHould we really do that? I mean, I don't oppose it, es. if someone else does it :-). It just feels weird...