From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#66738: 30.0.50; Gud LLDB regressions Date: Wed, 25 Oct 2023 11:40:40 +0200 Message-ID: References: <1985D138-4723-4744-A1C5-1DC1057AEB4B@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\)) 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="10837"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 66738@debbugs.gnu.org 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 Wed Oct 25 11:41:57 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 1qvaOh-0002fu-Rh for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 25 Oct 2023 11:41:55 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qvaON-0007eQ-1P; Wed, 25 Oct 2023 05:41: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 1qvaOK-0007ds-UM for bug-gnu-emacs@gnu.org; Wed, 25 Oct 2023 05:41:32 -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 1qvaOK-0004h8-ME for bug-gnu-emacs@gnu.org; Wed, 25 Oct 2023 05:41:32 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qvaOo-0004nZ-Eg for bug-gnu-emacs@gnu.org; Wed, 25 Oct 2023 05:42:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Oct 2023 09:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66738 X-GNU-PR-Package: emacs Original-Received: via spool by 66738-submit@debbugs.gnu.org id=B66738.169822688218397 (code B ref 66738); Wed, 25 Oct 2023 09:42:02 +0000 Original-Received: (at 66738) by debbugs.gnu.org; 25 Oct 2023 09:41:22 +0000 Original-Received: from localhost ([127.0.0.1]:57325 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvaOA-0004me-HE for submit@debbugs.gnu.org; Wed, 25 Oct 2023 05:41:22 -0400 Original-Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]:54659) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvaO6-0004mN-Uv for 66738@debbugs.gnu.org; Wed, 25 Oct 2023 05:41:20 -0400 Original-Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-507a29c7eefso8135234e87.1 for <66738@debbugs.gnu.org>; Wed, 25 Oct 2023 02:40:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698226842; x=1698831642; darn=debbugs.gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:sender:from:to:cc:subject :date:message-id:reply-to; bh=22k2nkFT5XOljvs5ri/aSnUildSGuB0pP53x+isJYV4=; b=HpmK/TC8rkYOd+vc80fv2F9CYk64TwxUSNSJuK+Bl70FBXwKq7VkiR6JPX3pKIv4r+ 5WOb793cEHIycogtgQvRvQZ+qmzgP1HQF10cQyxQOj8LMUBPHZRw0l3EfC/KHYTV1PH9 wuQNJkaiL+IrXZySYCvvkiETesJcQc25K9zJLrIk1QnF7YDKVrfeyLU5NW8UmO6DLfct zWKw6l4fWZWrnphy0v54TGMooF8VfJ8ps/wXDlu67AI9Jw6183wXnDm/1c07ihsz3nPM E9iIwFD9gv65STO8n2zc/HcxDbyIuhX4zZ+zB+4f7DvSpIKx8pFBxNEbqnINNxJO21PM KoXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698226842; x=1698831642; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:sender:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=22k2nkFT5XOljvs5ri/aSnUildSGuB0pP53x+isJYV4=; b=UK47k7GcDxMwb9rF2Wp2BHCPzfOpNeBio9PqntYCguExXvuHz5wFmBDzPTEw8bnnpm awcO5LnAUhiWpOXrqVQ1llz/7+C8tUVJj6EeY0uZf22fDehXVgC+ainiKs10XgZO+pNJ Ed0hEk+wuJSk/C4cKo4N2fWfx+hBQ3yYruQ1CoBdb7f/g9tg61D/wa35YR6xC7PGw49f vhH6vz+tSgf+5yjYAV7SPFkv74hEs+zIb2hk4VX9SRj2+rFRaXqKB3WvG6T0DoLy9LIC PkmkJDA8bOwiZm4iH2cIDe2IQqczieCe3+4DJn46PPtB2iFN20svshf+Z+PP+V4SmrWY eG+A== X-Gm-Message-State: AOJu0Yzl66OAEs2BuPP+kvcW9xFXygkEvHT3uwkzqKdPmntzE/jU7P87 duyv/Cf56X29dPFDdF8guXs= X-Google-Smtp-Source: AGHT+IHv6yYrlm/qQxKt50UkDAMHl2TBPKOH7x+SeRipSQ8dr5fjgm9cB1WDNiZMdLH+CS0beLX2qQ== X-Received: by 2002:a19:4f16:0:b0:507:aaa4:e3b3 with SMTP id d22-20020a194f16000000b00507aaa4e3b3mr9451986lfb.50.1698226842222; Wed, 25 Oct 2023 02:40:42 -0700 (PDT) Original-Received: from smtpclient.apple (c188-150-165-235.bredband.tele2.se. [188.150.165.235]) by smtp.gmail.com with ESMTPSA id o13-20020ac24bcd000000b00507d0a0366esm2476175lfq.100.2023.10.25.02.40.41 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Oct 2023 02:40:41 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3654.120.0.1.15) 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:273153 Archived-At: 25 okt. 2023 kl. 11.06 skrev Gerd M=C3=B6llmann = : > ...I'll fix this myself, thank you. >=20 > Yeah, I did that. But it seems I have misinterpreted what the = intention > of the delete-region is. The gist of it is that lldb uses CHA and ED as follows: "previous line\nsome text" (CHA N) (ED) "something else" where (CHA N) repositions the cursor to column N, which is usually = somewhere inside "some text", and (ED) clears the rest of the text on = the line. This means that if the current line, "some text", is M characters long, = then we can simply delete the last M-N characters and remove the CHA and = ED sequences which now have done their job, and continue processing. The snag is that part of "some text" may have already been inserted into = the buffer earlier and is thus not part of the current string being = filtered. For that reason, we start by removing that part from the = buffer and gluing it onto the front of our string so that the CHA and ED = operations can act on it. That text deleted from the buffer may have been write-protected but = that's fine; it will be protected again next time it's inserted. > Then let me ask differently: why did you change this in the first = place? You mean why I didn't use a series of forward slashes as end-delimiter = for the full path name? It seemed no less arbitrary than a newline and = no more robust. The current solution is straightforward and handles any = Unix or Windows file name users will come across. I did try out NUL as a delimiter but predictably this didn't work (lldb = threw an exception, actually).