unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alan Third <alan@idiocy.org>
To: Pankaj Jangid <p4j@j4d.net>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: How to run emacs under a debugger on macOS?
Date: Sat, 11 Jan 2020 19:11:00 +0000	[thread overview]
Message-ID: <20200111191100.GB40876@breton.holly.idiocy.org> (raw)
In-Reply-To: <0100016f95fa9872-32c0a414-e65c-487d-b827-ffa2f90407c0-000000@email.amazonses.com>

On Sat, Jan 11, 2020 at 07:00:26PM +0000, Pankaj Jangid wrote:
> Alan Third <alan@idiocy.org> 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="-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".

Yes, that works fine too.

> One followup query: Does lldb also create similar dump that the gdb
> creates when there is a crash?

Yes. Most of the basic commands in gdb work in lldb too, but not all,
so if you’re being given gdb commands and they don’t work I suggest
you check https://lldb.llvm.org/use/map.html.
-- 
Alan Third



  reply	other threads:[~2020-01-11 19:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-11 11:32 How to run emacs under a debugger on macOS? Pankaj Jangid
2020-01-11 13:48 ` Alan Third
2020-01-11 13:58   ` Yuan Fu
2020-01-11 19:00   ` Pankaj Jangid
2020-01-11 19:11     ` Alan Third [this message]
2020-01-12  4:24       ` Pankaj Jangid

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=20200111191100.GB40876@breton.holly.idiocy.org \
    --to=alan@idiocy.org \
    --cc=emacs-devel@gnu.org \
    --cc=p4j@j4d.net \
    /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).