From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Pankaj Jangid Newsgroups: gmane.emacs.devel Subject: Re: How to run emacs under a debugger on macOS? Date: Sat, 11 Jan 2020 19:00:26 +0000 Organization: J4D Network Message-ID: <0100016f95fa9872-32c0a414-e65c-487d-b827-ffa2f90407c0-000000@email.amazonses.com> References: <0100016f94604822-8343ce50-8fdf-4b92-9e0b-70d45cda9dc2-000000@email.amazonses.com> <20200111134835.GA40597@breton.holly.idiocy.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="227495"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.60 (darwin) Cc: emacs-devel To: Alan Third Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jan 11 20:02:08 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iqM0b-000jxj-Bw for ged-emacs-devel@m.gmane-mx.org; Sat, 11 Jan 2020 20:01:17 +0100 Original-Received: from localhost ([::1]:60114 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iqM0Z-0005xC-S9 for ged-emacs-devel@m.gmane-mx.org; Sat, 11 Jan 2020 14:01:15 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59342) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <0100016f95fa9872-32c0a414-e65c-487d-b827-ffa2f90407c0-000000@amazonses.com>) id 1iqLzo-0005CQ-Do for emacs-devel@gnu.org; Sat, 11 Jan 2020 14:00:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <0100016f95fa9872-32c0a414-e65c-487d-b827-ffa2f90407c0-000000@amazonses.com>) id 1iqLzn-0001oM-Dg for emacs-devel@gnu.org; Sat, 11 Jan 2020 14:00:28 -0500 Original-Received: from a8-71.smtp-out.amazonses.com ([54.240.8.71]:45786) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <0100016f95fa9872-32c0a414-e65c-487d-b827-ffa2f90407c0-000000@amazonses.com>) id 1iqLzn-0001mJ-7Z for emacs-devel@gnu.org; Sat, 11 Jan 2020 14:00:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=2i3gzvbgh3d3bo7yfqpvb5eru2hqctky; d=j4d.net; t=1578769226; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=ollXpauQdpmdfTpo8QJmRwDs8Gbi+WWSgxG2Jcj9LSk=; b=Bk5aar5ydCIA9u8I4o1O8f3F69lNt+MIaXWF54+nvbicRscrpOIH0SQ+iG647nT2 93cTsD7BSbWYyZ4K382Gv2BlJRGtjaY7AL+W0Xab0ddKbLRZdjgyDAzuwUuPAblG2/M /vbP/kJ27vDvaRF99tR32tzfkvnu8gbLw6gDfTLs= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw; d=amazonses.com; t=1578769226; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Feedback-ID; bh=ollXpauQdpmdfTpo8QJmRwDs8Gbi+WWSgxG2Jcj9LSk=; b=jhj6zGT1HjSrH4zj7ioqxTQOZoh5h/SIJZKAtF7wIYcqse6gU0MSGDmE02O/cOMg tfEIDnIW9qd+TUL8gPOsdO6T64WjEiiCRzCgNCUAQJN75owj7bRs02XDxA7paDhqmgN ivWaBJiwBUsvjFHs/HLkwVlIqAVtBn2wSwnmWXDA= In-Reply-To: <20200111134835.GA40597@breton.holly.idiocy.org> (Alan Third's message of "Sat, 11 Jan 2020 13:48:35 +0000") X-SES-Outgoing: 2020.01.11-54.240.8.71 Feedback-ID: 1.us-east-1.txOs6RzEvQ8hCXYeLqJ8lVjB3e7LuQl8h6pdq90PbRQ=:AmazonSES X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 54.240.8.71 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.org gmane.emacs.devel:244205 Archived-At: Alan Third writes: > On Sat, Jan 11, 2020 at 11:32:15AM +0000, Pankaj Jangid wrote: >> 1. How to make debug build? 2. How to launch emacs under a debugger >> on macos? 3. Any other instructions relevant for debugging. > > I usually do something like: > > ./configure CFLAGS=3D"-g -O0" make make install lldb > nextstep/Emacs.app/Contents/MacOS/Emacs Thanks. BTW I launched directory from the ./src/emacs after building with "-g -O0". > It=E2=80=99s possible to use gdb on macOS, but you need to at a minimum s= ign > it, and upgrades will undo that so you have to do it again. I don=E2=80= =99t > usually bother with gdb. Okay. I'll look into it sometime. :-) One followup query: Does lldb also create similar dump that the gdb creates when there is a crash? Regards Pankaj