unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: gdb
Date: Wed, 07 Apr 2010 06:17:22 +0300	[thread overview]
Message-ID: <83zl1gvtml.fsf@gnu.org> (raw)
In-Reply-To: <84bpdwcjyg.fsf@gmail.com>

> From: Sean Sieger <sean.sieger@gmail.com>
> Date: Tue, 06 Apr 2010 18:08:55 -0400
> 
> In etc/DEBUG, it says, ``It is a good idea to run Emacs under GDB
> ... *all the time*.''

It is.

> It appears that I ought to reconfigure, this time with --no-opt and
> -fnocrossjumping

Yes, that's unfortunate, because latest versions of GCC (3.x and
later) produce binaries that are very hard to debug in the optimized
build.

> that I'll then start starting Emacs in src/ (which
> means I don't really need to make install?)

Not true.  You need to start GDB in the src/ directory.  Then you can
say "run /path/to/emacs/emacs.exe".

> and, finally, um, I won't be
> using the shortcut to start GDB & Emacs (or can the command be entered
> there to do so?).

You can have the shortcut run a batch file that would invoke GDB and
run Emacs inside it.  You can have a .gdbinit file that does some of
that.  And there are many other options.




  reply	other threads:[~2010-04-07  3:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-06 22:08 gdb Sean Sieger
2010-04-07  3:17 ` Eli Zaretskii [this message]
2010-04-07  3:24   ` gdb belnac
2010-04-07  5:27     ` gdb Eli Zaretskii
2010-04-07  9:32   ` gdb Sean Sieger

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=83zl1gvtml.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@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.
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).