all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Pankaj Jangid <p4j@j4d.net>
To: Alan Third <alan@idiocy.org>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: How to run emacs under a debugger on macOS?
Date: Sat, 11 Jan 2020 19:00:26 +0000	[thread overview]
Message-ID: <0100016f95fa9872-32c0a414-e65c-487d-b827-ffa2f90407c0-000000@email.amazonses.com> (raw)
In-Reply-To: <20200111134835.GA40597@breton.holly.idiocy.org> (Alan Third's message of "Sat, 11 Jan 2020 13:48:35 +0000")

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".

> It’s possible to use gdb on macOS, but you need to at a minimum sign
> it, and upgrades will undo that so you have to do it again. I don’t
> 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



  parent reply	other threads:[~2020-01-11 19:00 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 [this message]
2020-01-11 19:11     ` Alan Third
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0100016f95fa9872-32c0a414-e65c-487d-b827-ffa2f90407c0-000000@email.amazonses.com \
    --to=p4j@j4d.net \
    --cc=alan@idiocy.org \
    --cc=emacs-devel@gnu.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.