unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: nickrob@snap.net.nz (Nick Roberts)
To: Chad Brown <yandros@MIT.EDU>
Cc: emacs-devel@gnu.org
Subject: Re: GDB on Mac is (NOT) Broken
Date: Tue, 16 Mar 2010 09:17:11 +1300	[thread overview]
Message-ID: <19358.38343.541183.28046@totara.tehura.co.nz> (raw)
In-Reply-To: <BC94C2B3-FE35-414F-98CA-591DF2F6CBDA@mit.edu>

 > Any idea why/how M-x gdb got into such a state that core emacs developers
 > are saying things like ``it's such a complete mess that reporting all the
 > bugs is a depressingly huge job''?  I have easy access to a macosx machine
 > with gdb; maybe I can help.

It's just Miles, I think, and I've no idea why he would choose to make such
remarks.  Perhaps you should ask him.  I don't think they are directed at the
Mac platform but, sure, any help will be gratefully received.

There are many people who like the "gdb-ui thingy" but perhaps they are not as
vocal as those who become unstuck.  However, I can make some suggestions that
could make the use of GDB in Emacs easier:

1) Read the documentation in the Emacs manual (M-x gud-gdb is described on the
eighth line of "Starting GUD".)

2) If you want to use GDB in Emacs in earnest, use a *released* version of
Emacs.

3) If you want to help with the development of GDB in Emacs, use the CVS
version of Emacs.

4) For a while the CVS version of Emacs used an interface called GDB/MI.  This
gave less reliable behaviour but is still a long term goal.  That may have
caused some frustration.

5) If you try, I'm sure you can get the GDB Graphical Interface to do the
wrong thing, like display the source in the wrong buffer, or worse.  Emacs is
so customisable/flexible that it's hard to do the right things in all cases.
It works fine for me when I'm careful about window configuration.  I use
'gdb-restore-windows' quite often.

6) Many poeple appear to use gdb-many-windows but I prefer not to and start
just with the GUD buffer.  The source appears when I hit a breakpoint and
I then just display the associated buffers, e.g., stack buffer, that I need in
a separate frame (from the menu-bar).

7) M-x gud-gdb is more reliable because it's more basic.  You get to see the
source but not much more.  You even have to remember where the breakpoints are.

I hope these comments are more helpful than some of the recent ones.  Please
do make bug reports but they need to be concise and provide a recipe to
reproduce the problem (see "Reporting Bugs" in the Emacs manual).

-- 
Nick                                           http://users.snap.net.nz/~nickrob




  reply	other threads:[~2010-03-15 20:17 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-15  6:23 GDB on Mac is (NOT) Broken Nick Roberts
2010-03-15 16:39 ` Chad Brown
2010-03-15 20:17   ` Nick Roberts [this message]
2010-03-16  0:18 ` YAMAMOTO Mitsuharu
2010-03-16  2:59   ` Steve Revilak
2010-03-16  5:27   ` Nick Roberts
2010-03-16  8:55     ` Chad Brown
2010-03-16 21:00       ` Nick Roberts
2010-03-20  4:10     ` YAMAMOTO Mitsuharu
2010-03-21  6:50       ` Nick Roberts
2010-03-22  1:29         ` YAMAMOTO Mitsuharu
2010-03-22  2:32           ` Nick Roberts
2010-03-22  2:46         ` Stefan Monnier
2010-03-22  3:04           ` Nick Roberts
2010-03-22 13:43             ` Stefan Monnier
2010-03-22 20:55               ` Nick Roberts
2010-03-23  1:13                 ` Stefan Monnier
2010-03-23  1:55                   ` YAMAMOTO Mitsuharu
2010-03-23  2:38                     ` Nick Roberts
2010-03-23  3:12                       ` Stefan Monnier
2010-03-26  9:02                     ` Nick Roberts
2010-03-26 20:20                       ` Stefan Monnier
2010-03-27  1:00                       ` YAMAMOTO Mitsuharu
2010-03-17 13:30   ` Leo
2010-03-20 19:45   ` Stefan Monnier
2010-03-21  4:43     ` YAMAMOTO Mitsuharu
     [not found] <20100314185409.00EDD9B718@mxperim5.sea5.speakeasy.net>
2010-03-15  2:43 ` Steve Revilak
  -- strict thread matches above, loose matches on Subject: below --
2010-03-14  0:32 Nick Roberts
2010-03-14 19:45 ` Harald Hanche-Olsen

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=19358.38343.541183.28046@totara.tehura.co.nz \
    --to=nickrob@snap.net.nz \
    --cc=emacs-devel@gnu.org \
    --cc=yandros@MIT.EDU \
    /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).