all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stephen Leake <stephen_leake@member.fsf.org>
Cc: Stephen Leake <stephen_leake@member.fsf.org>,
	emacs-devel <emacs-devel@gnu.org>
Subject: Re: Starting multiple GUD session; doc problem
Date: Sun, 26 Nov 2006 05:08:17 -0500	[thread overview]
Message-ID: <uejrqv7u6.fsf@member.fsf.org> (raw)
In-Reply-To: <17769.7604.137412.491382@kahikatea.snap.net.nz> (Nick Roberts's message of "Sun, 26 Nov 2006 17:53:08 +1300")

Nick Roberts <nickrob@snap.net.nz> writes:

>  > Since the info manual never mentions "--annotate=3", I thought it was
>  > always necessary. So yes, I found it ambiguous.
>
> I guess it presupposes a knowledge of "--fullname" and
> "--annotate=3". 

Yes.

> Ideally it would mention neither but give the user the option of
> switching between the two in terms of their functionality.

Yes. Maybe after the release.

>  >                         and that is the behavior I was expecting. In
>  > particular, I don't have to do anything special to get two debugging
>  > sessions.
>  >
>  > At the same time, if you don't customize 'gdb-many-windows', "gdb
>  > --annotate=3" in Emacs 22 also works the same as "gdb" in Emacs 21,
>  > except that it doesn't allow multiple debugging sessions. So that's
>  > why I was surprised by this.
>
> I've arranged so that it starts up the same way. However it has much
> more functionality. If you create a breakpoint a red bullet is
> placed in the fringe/margin so you don't have to remember where your
> breakpoints are. 

That is nice.

> You can view the stack, examine watch expressions, manipulate
> breakpoints...

You can do all that with text command mode as well. But with GUI mode,
you can do it with only the mouse, and all of the results are always
visible. It's a trade of screen usage between showing program state
and program source, and of mouse vs keyboard. It is nice to have the
choice.

>  > (aside; I don't understand why the tooltips are not available in "text
>  > command mode". Is "--annotate" required to get tooltip variable values?)
>
> The section Debugger Operation says
>
>       GUD tooltips are disabled when you use GDB in text command mode
>    (*note GDB Graphical Interface::), because displaying an expression's
>    value in GDB can sometimes expand a macro and result in a side effect
>    that interferes with the program's operation.  The GDB graphical
>    interface supports GUD tooltips and assures they will not cause side
>    effects.

Ok. I'm mostly using Ada, which doesn't have macros. So perhaps after
the release we could explore relaxing that restriction for Ada (and
other languages where it would be safe).

I _often_ run two debugging sessions, to find the difference between
two programs (one that works and one that doesn't). Running them in
separate Emacs sessions is dangerous, because they usually share lots
of code, and I don't want to risk editing the same file in two
different Emacs sessions. (This is one area where Emacs is better than
other IDEs.) So I'd like to have as many debugger features as possible
while running two debugging sessions.

I'll go read the manual more thoroughly now :).

-- 
-- Stephe

  reply	other threads:[~2006-11-26 10:08 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-23 17:03 Starting multiple GUD session; doc problem Stephen Leake
2006-11-25  0:48 ` Nick Roberts
2006-11-25 13:24   ` Stephen Leake
2006-11-25 14:43     ` Andreas Schwab
2006-11-26  4:53     ` Nick Roberts
2006-11-26 10:08       ` Stephen Leake [this message]
2006-11-26  2:01 ` Richard Stallman
2006-11-26  8:39   ` Nick Roberts
2006-11-26  9:38     ` Stephen Leake

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=uejrqv7u6.fsf@member.fsf.org \
    --to=stephen_leake@member.fsf.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.