From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Re: Debugging Emacs with lldb Date: Fri, 23 Jul 2021 20:34:47 -0400 Message-ID: <64C17491-439E-4538-9398-DA9DB0BB850E@gmail.com> References: Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_A8539411-E1F8-49FF-AC70-37FFE1C44FD4" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25675"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel To: Alan Third Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jul 24 02:35:41 2021 Return-path: Envelope-to: ged-emacs-devel@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 1m75dk-0006TR-2E for ged-emacs-devel@m.gmane-mx.org; Sat, 24 Jul 2021 02:35:40 +0200 Original-Received: from localhost ([::1]:48316 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m75di-0008Fo-Vt for ged-emacs-devel@m.gmane-mx.org; Fri, 23 Jul 2021 20:35:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47126) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m75cy-0007XB-47 for emacs-devel@gnu.org; Fri, 23 Jul 2021 20:34:52 -0400 Original-Received: from mail-qk1-x735.google.com ([2607:f8b0:4864:20::735]:42568) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m75cw-0000oP-4O for emacs-devel@gnu.org; Fri, 23 Jul 2021 20:34:51 -0400 Original-Received: by mail-qk1-x735.google.com with SMTP id o13so3085604qkk.9 for ; Fri, 23 Jul 2021 17:34:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=R4yNj+drlrvyoEBh9F2oZG6+gzWlVU6oY++wZH1e5Xc=; b=Gn3oWweuchdJIc/yM87OQzuPCTXEr3AYEfQBB34/RmxuEeL+osY++fmV25qFlYzqMt 4iA5MB8HvZsgTM6Ew7n+f5ec1XAOdbwqCZn/EJ3XFmVPJKCNJGzAlBzgeGc2ATUszlI3 OZ1HWtByv9euMwPdFR+TtqOoiOOKr76Pjpdvf1i6W4EQYJngoYmtQpnZhgEY87ofFiRX MCpzb8Pv3PfolG7x+4UDVX1VATNIXo2IMLMoP6vmgZhugR7t7xqR4EmcPb0ofWctHM9g ofWCZw6973aooxus3fojNooJ4PnhYiTA4BDEvyiQuqxtjngi20/cXF5M5aqoyEGpkHiW nIlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=R4yNj+drlrvyoEBh9F2oZG6+gzWlVU6oY++wZH1e5Xc=; b=NJPD60E7oLLOH+ib1UBUoX9PFh+JjLYfv5f98NNNvFoAcuG2RBfTceGXQbZzxXlYYm l0KktReLA2ELnj2sb4SSI3mYbQgInnnRIzeYlidyVK4AKiFee1WWKpsZzJ09s6q5SImA 3RdXsYSEOjjaYpzHjPpCkq1IvOlKzMcfCsbg/HE2RxLj+5/Lplhr72/Ato/vmZ8kcD7+ aWFoN31pAHBmtODLzbysqRCDkWEyfrJ+vlwcsRVZGI8M2jtALvcwIzifgiy7GLjMfK9T bFbN/S9JcH2Or+pdWPzN6azkqHirjA7mcRJynyrem5BfImTjux9yuJkPCRIFw7wsOKlO i2wA== X-Gm-Message-State: AOAM531190OTmWI4CkAvLVM9Rxp8vxizNH3g3xxsKPkRpkQjN5GF+o6Q MUv9lFk1XXLJAwD74V6h1cJJ/VftSijcnQ== X-Google-Smtp-Source: ABdhPJzOWDwHUX+uaLQX8q4oDkNlOKDPy6oVqYqNN8oMV10n5bEoSclvgQG2Vr7AP2ffB3gLRuuSAA== X-Received: by 2002:a37:9cc8:: with SMTP id f191mr7309163qke.355.1627086889075; Fri, 23 Jul 2021 17:34:49 -0700 (PDT) Original-Received: from 2603-7080-0302-635e-f5dc-3bfa-7db1-d292.res6.spectrum.com (2603-7080-0302-635e-f5dc-3bfa-7db1-d292.res6.spectrum.com. [2603:7080:302:635e:f5dc:3bfa:7db1:d292]) by smtp.gmail.com with ESMTPSA id y124sm1954570qke.70.2021.07.23.17.34.48 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Jul 2021 17:34:48 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3654.60.0.2.21) Received-SPF: pass client-ip=2607:f8b0:4864:20::735; envelope-from=casouri@gmail.com; helo=mail-qk1-x735.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:271516 Archived-At: --Apple-Mail=_A8539411-E1F8-49FF-AC70-37FFE1C44FD4 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Jul 23, 2021, at 7:59 PM, Alan Third wrote: >=20 > On Fri, Jul 23, 2021 at 07:50:21PM -0400, Yuan Fu wrote: >> Hey Alan, >>=20 >> IIRC you are using lldb to debug Emacs. I=E2=80=99m stuck on a Mac = and now >> need to debug Emacs, too. lldb doesn=E2=80=99t get any of the = commands >> defined in gdbinit. How did you work around that? For example, how >> do you check the lisp backtrace without xbacktrace? Right now I=E2=80=99= m >> staring at a wall of Ffuncall and don=E2=80=99t know what to do with = it. >> TIA. >=20 > I don't do much lisp work, so I've never really run up against these > problems. >=20 > If you can get GDB installed it should be possible to sign it so it > works. At least it used to be possible to do so. There are > instructions on the internet, but I won't recommend any particular > ones as I haven't done it for years. I=E2=80=99ve tried countless times since 2019, and I can install and = code sign GDB, but every time I =E2=80=9Crun=E2=80=9D, gdb hangs. That = seems to be a bug that was yet to be fixed[1].=20 Anyway, thanks! [1]: https://sourceware.org/bugzilla/show_bug.cgi?id=3D24069 = Yuan= --Apple-Mail=_A8539411-E1F8-49FF-AC70-37FFE1C44FD4 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

On Jul 23, 2021, at 7:59 PM, Alan Third <alan@idiocy.org> = wrote:

On Fri, Jul 23, 2021 at 07:50:21PM -0400, Yuan Fu wrote:
Hey Alan,

IIRC you are using lldb to debug Emacs. I=E2=80=99= m stuck on a Mac and now
need to debug Emacs, too. lldb = doesn=E2=80=99t get any of the commands
defined in = gdbinit. How did you work around that? For example, how
do = you check the lisp backtrace without xbacktrace? Right now I=E2=80=99m
staring at a wall of Ffuncall and don=E2=80=99t know what to = do with it.
TIA.

I= don't do much lisp work, so I've never really run up against these
problems.

If you can get GDB = installed it should be possible to sign it so it
works. At = least it used to be possible to do so. There are
instructions on the internet, but I won't recommend any = particular
ones as I haven't done it for years.

I=E2=80=99ve tried countless times since 2019, and I can = install and code sign GDB, but every time I =E2=80=9Crun=E2=80=9D, gdb = hangs. That seems to be a bug that was yet to be = fixed[1]. 

Anyway, thanks!

[1]: https://sourceware.org/bugzilla/show_bug.cgi?id=3D24069

Yuan
= --Apple-Mail=_A8539411-E1F8-49FF-AC70-37FFE1C44FD4--