From: "Gerd Möllmann" <gerd.moellmann@gmail.com>
To: Robert Pluim <rpluim@gmail.com>
Cc: 56495@debbugs.gnu.org
Subject: bug#56495: 29.0.50; Support for debugging Emacs with LLDB
Date: Mon, 11 Jul 2022 12:42:04 +0200 [thread overview]
Message-ID: <7D5B966F-2080-4508-8CB2-E13C5147FE8F@gmail.com> (raw)
In-Reply-To: <877d4kgg80.fsf@gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 1850 bytes --]
> On 2022-07-11,, at 11:18 , Robert Pluim <rpluim@gmail.com> wrote:
>
>>>>>> On Mon, 11 Jul 2022 10:13:35 +0200, Gerd Möllmann <gerd.moellmann@gmail.com> said:
> Iʼve got:
> lldb -v
> lldb-1300.0.42.3
> Swift version 5.5.2-dev
Thanks.
Looks like Apple's LLDB from the Xcode command-line tools.
Mine says "lldb version 14.0.6", and comes from "brew install llvm". (Which I need for 'llvm-vscode', which I need for 'dap-mode', which I need for debugging with LLDB inside of Emacs, which is because of <known long story here>, and <another, shorter story here>).
I need '--overwrite' because it allows me to reload the code in a running LLDB. Apple's LLDB seems to '--overwrite' by default, while mine gives an error:
cannot add command: user command exists and force replace not set
\o/
Maybe I can somehow pythonese if '--overwrite' is supported or not.
> (this is an Intel macbook, not an M1)
>
> Iʼm getting this:
>
> lldb emacs
> error: unknown or ambiguous option
> error: unknown or ambiguous option
> Emacs debugging support has been installed.
> (lldb) target create "emacs"
> Current executable set to ʼ/Users/rpluim/repos/emacs/src/emacsʼ
> (x86_64).
>
> which I can fix by doing this:
>
> diff --git a/etc/emacs_lldb.py b/etc/emacs_lldb.py
> index 3a9f17e020..ebf14d44c2 100644
> --- a/etc/emacs_lldb.py
> +++ b/etc/emacs_lldb.py
> @@ -144,7 +144,6 @@ def define_command (debugger, function):
> lldb_command = function.__name__
> python_function = __name__ + "." + function.__name__
> debugger.HandleCommand(f"command script add "
> - f"--overwrite "
> f"--function {python_function} "
> f"{lldb_command}")
>
> Robert
> --
[-- Attachment #1.2: Type: text/html, Size: 5004 bytes --]
[-- Attachment #2: Message signed with OpenPGP --]
[-- Type: application/pgp-signature, Size: 874 bytes --]
next prev parent reply other threads:[~2022-07-11 10:42 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-11 8:13 bug#56495: 29.0.50; Support for debugging Emacs with LLDB Gerd Möllmann
2022-07-11 9:18 ` Robert Pluim
2022-07-11 10:42 ` Gerd Möllmann [this message]
2022-07-11 10:56 ` Robert Pluim
2022-07-11 11:27 ` Gerd Möllmann
2022-07-11 12:28 ` Robert Pluim
2022-09-05 19:16 ` Lars Ingebrigtsen
2022-07-11 11:19 ` Eli Zaretskii
2022-07-11 11:31 ` Gerd Möllmann
2022-07-12 3:04 ` Richard Stallman
2022-07-12 3:15 ` Stefan Kangas
2022-07-14 3:10 ` Richard Stallman
2022-07-12 8:04 ` Gerd Möllmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7D5B966F-2080-4508-8CB2-E13C5147FE8F@gmail.com \
--to=gerd.moellmann@gmail.com \
--cc=56495@debbugs.gnu.org \
--cc=rpluim@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).