From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: Re: Debugging Emacs with lldb Date: Sat, 24 Jul 2021 00:59:26 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25993"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jul 24 02:00:28 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 1m755f-0006d1-E1 for ged-emacs-devel@m.gmane-mx.org; Sat, 24 Jul 2021 02:00:27 +0200 Original-Received: from localhost ([::1]:43720 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m755e-0003JW-G3 for ged-emacs-devel@m.gmane-mx.org; Fri, 23 Jul 2021 20:00:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44448) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m754x-0002cw-2i for emacs-devel@gnu.org; Fri, 23 Jul 2021 19:59:43 -0400 Original-Received: from outbound.soverin.net ([116.202.126.228]:39677) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m754u-0002Zo-EK for emacs-devel@gnu.org; Fri, 23 Jul 2021 19:59:42 -0400 Original-Received: from smtp.soverin.net (unknown [10.10.3.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id 759EA943; Fri, 23 Jul 2021 23:59:29 +0000 (UTC) Original-Received: from smtp.soverin.net (smtp.soverin.net [159.69.232.138]) by soverin.net DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1627084768; bh=HK0CgVlyD+gyqwUsf9P09hjLcGjXTA425uj/UiQ38sg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DaOGoOqS0o6I4RfGfdg10MalWPXKkJb/O04ssHR0MNp7rCKusqe2AGRMn+hIJ97I4 yeWs7d0WxbaMPlCoFroAEAhohGg5icJILSvD2LBAcomh3nVWKsQsoqQ922p/PxWoRE c+ZSQq39a6tp/9EIBBUkNB6DTxFyqBZDHncubQh3NkFzusvDFS5RIzTJRnt50f0SlX wzOjbkQ85EyVYkItily3po2EBXOQRBW5jEeMzqkiVWBt/TRutF2wh0WXuLPVvc3HTp PrdWMaYtiOMWP336WTLC8B1I383+XihITdCGVg8twCaPvSVK/2rarGO+wTKEOYfF++ ++pBwRbnS9z5w== Original-Received: from alan by faroe.holly.idiocy.org with local (Exim 4.94.2) (envelope-from ) id 1m754g-0039XV-Nv; Sat, 24 Jul 2021 00:59:26 +0100 Mail-Followup-To: Alan Third , Yuan Fu , emacs-devel Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=116.202.126.228; envelope-from=alan@idiocy.org; helo=outbound.soverin.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-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:271515 Archived-At: On Fri, Jul 23, 2021 at 07:50:21PM -0400, Yuan Fu wrote: > Hey Alan, > > IIRC you are using lldb to debug Emacs. I’m stuck on a Mac and now > need to debug Emacs, too. lldb doesn’t 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’m > staring at a wall of Ffuncall and don’t 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. -- Alan Third