all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Itai Berli <itai.berli@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: Help getting started debugging Emacs on macOS Sierra
Date: Fri, 11 Aug 2017 11:27:25 +0300	[thread overview]
Message-ID: <CABsNJ=PmVrjCha8CLAc10hkk9oBpGspQ9VBBo9KAy3AoEOZLvQ@mail.gmail.com> (raw)
In-Reply-To: <837eyasjn3.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 2287 bytes --]

Eli wrote:

> I suggest to rebuild Emacs without optimizations and with better
debugging info:
>
>  CFLAGS='-O0 -g3' ./configure
> make
> make install

Thank you, Eli. Do I also need to run './autogen.sh' and './autogen.sh git'
again?

On Fri, Aug 11, 2017 at 9:28 AM, Eli Zaretskii <eliz@gnu.org> wrote:

> > From: Itai Berli <itai.berli@gmail.com>
> > Date: Fri, 11 Aug 2017 02:25:17 +0300
> >
> > I'm interesting in exploring the Emacs bidi feature, which is coded in
> the files bidi.c and xdisp.c.
> >
> > To get my feet wet, I'd like to set a breakpoint in the beginning of one
> of the functions in one of these files, I
> > don't care which one, and step through the function in a debugger.
> >
> > Not only am I new to Emacs development, I'm also new to developing C
> programs. Ideally, I'd like to do this in
> > the Eclipse IDE for C/C++ Developers (Oxygen Release 4.7.0). However,
> I'm also willing to try another
> > debugger, such as a command-line one, if it's easier to get started.
> >
> > My operating system is macOS Sierra Version 10.12.6 (the latest
> version). My LLVM version is 8.1.0
> > (clang-802.0.42).
> >
> > I'll appreciate it if someone can walk me through the steps needed to
> get up and running.
>
> I don't use macOS, and so cannot tell you how to use lldb to debug
> Emacs.  Some advice is in etc/DEBUG, but its most useful parts are
> heavily skewed towards GDB.  So if possible, I suggest to install GDB
> for macOS, I'm sure some version of it is available.  That would allow
> more people here to help you with specific commands and features of
> the debugger.  Debugging support in src/.gdbinit is also GDB-specific,
> and I don't know how well does lldb emulate GDB for the commands
> defined on .gdbinit to work in lldb.
>
> > I have downloaded Emacs from git by running
> >
> > > git clone git://git.savannah.gnu.org/emacs.git
> >
> > I then compiled and installed it by running the following sequence of
> scripts.
> >
> > > ./autogen.sh
> > > ./autogen.sh git
> > > ./configure
> > > make
> > > make install
>
> The default build uses optimization switches, which make debugging
> harder.  So I suggest to rebuild Emacs without optimizations and with
> better debugging info:
>
>   CFLAGS='-O0 -g3' ./configure
>   make
>   make install
>

[-- Attachment #2: Type: text/html, Size: 3432 bytes --]

  reply	other threads:[~2017-08-11  8:27 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-10 23:25 Help getting started debugging Emacs on macOS Sierra Itai Berli
2017-08-11  3:04 ` Paul Eggert
2017-08-11  5:06   ` Itai Berli
2017-08-11  8:47     ` Paul Eggert
2017-08-11  8:57       ` Itai Berli
2017-08-11  9:27         ` Itai Berli
2017-08-11  9:52           ` Eli Zaretskii
2017-08-11  9:55             ` Itai Berli
2017-08-11  9:59               ` Itai Berli
2017-08-11 10:09                 ` Itai Berli
2017-08-11 11:46                   ` Tino Calancha
2017-08-11 12:14                     ` Itai Berli
2017-08-11 12:33                       ` Tino Calancha
2017-08-11 12:40                         ` Itai Berli
2017-08-11 12:48                           ` Tino Calancha
2017-08-11 13:17                             ` Itai Berli
2017-08-11 13:20                               ` Tino Calancha
2017-08-11 13:25                                 ` Itai Berli
2017-08-11 14:18                               ` Eli Zaretskii
2017-08-11 14:42                                 ` Itai Berli
2017-08-11 15:08                                   ` Eli Zaretskii
2017-08-11 15:34                                     ` Itai Berli
2017-08-11 16:07                                       ` Itai Berli
2017-08-11 16:08                                       ` Eli Zaretskii
2017-08-11 17:32                                         ` Itai Berli
2017-08-12  9:53                                           ` Itai Berli
2017-08-12 10:20                                             ` Eli Zaretskii
2017-08-12 10:43                                               ` Itai Berli
2017-08-12 11:43                                                 ` Tino Calancha
2017-08-12 11:59                                                   ` Stephen Berman
2017-08-12 12:08                                                     ` Itai Berli
2017-08-12 12:14                                                       ` Stephen Berman
2017-08-12 12:15                                                       ` Eli Zaretskii
2017-08-12 13:28                                                         ` Itai Berli
2017-08-12 13:47                                                           ` Tino Calancha
2017-08-12 14:20                                                             ` Anders Lindgren
2017-08-12 11:57                                                 ` Eli Zaretskii
2017-08-11 12:43               ` Eli Zaretskii
2017-08-11  9:35         ` Eli Zaretskii
2017-08-11  6:28 ` Eli Zaretskii
2017-08-11  8:27   ` Itai Berli [this message]
2017-08-11  9:30     ` Eli Zaretskii

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='CABsNJ=PmVrjCha8CLAc10hkk9oBpGspQ9VBBo9KAy3AoEOZLvQ@mail.gmail.com' \
    --to=itai.berli@gmail.com \
    --cc=eliz@gnu.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.