all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

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