all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nick Roberts <nickrob@snap.net.nz>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: Starting multiple GUD session; doc problem
Date: Sat, 25 Nov 2006 13:48:41 +1300	[thread overview]
Message-ID: <17767.37609.24236.660750@kahikatea.snap.net.nz> (raw)
In-Reply-To: <ur6vu6qp9.fsf@member.fsf.org>

Stephen Leake writes:
 > I just tried to start two gdb sessions in one CVS Emacs session for
 > the first time (I've done this many times in Emacs 21). I got the
 > error message:
 > 
 >  "gdb: Multiple debugging is only supported with "gdb --fullname"
 > 
 > So I dutifully added "--fullname" to the gdb command line:
 >
 >     gdb --annotate=3 --fullname gds-main_models_test.exe 

Well, I'm not sure that's dutiful, it means start with "gdb --fullname"
_instead of_ "gdb --annotate=3" but if other's find it ambiguous too
I'll change it.

 > and got the same error message. I read the GUD and GDB entries in the
 > Emacs manual, and the help message for `gdb'; no success.

Was this not clear:

    You can also run GDB in text command mode, like other debuggers.  To
 do this, set `gud-gdb-command-name' to `"gdb --fullname"' or edit the
 startup command in the minibuffer to say that.  You need to do use text
 command mode to run multiple debugging sessions within one Emacs
 session.

 >                                                            Finally I
 > read the Emacs lisp source code for gud, and found this comment in
 > gud.el (gud-gdb-marker-filter):
 > 
 >     ;; Check for annotations and change gud-minor-mode to 'gdba if
 >     ;; they are found.

This comment is not for users.

 > It seems the real issue is the presence or absence of "--annotate=3",
 > not the presence of "--fullname". In fact, "--fullname" is not
 > necessary if compilation-search-path is set to include the source
 > directories.

That's not true.  If "--annotate=3" is not used the option "--fullname" is
necessary for the Emacs to display the current line in the source buffer.

 > So I suggest the attached patch to the Emacs manual (building.texi)
 > and a couple gud doc strings.
 >...

 >   ;;;###autoload
 >   (defun gdba (command-line)
 > !   "Run gdb on program FILE in buffer *gud-FILE*.
 >   The directory containing FILE becomes the initial working directory
 >   and source-file directory for your debugger.
 >   
 > --- 214,220 ----
 >   
 >   ;;;###autoload
 >   (defun gdba (command-line)
 > !   "Run gdb in GUI mode on program FILE in buffer *gud-FILE*.
 >   The directory containing FILE becomes the initial working directory
 >   and source-file directory for your debugger.

The current doc string goes on to explain what how this function lays out the
buffers.  To the first time user what would GUI mode mean?

The other changes are wrong because "--fullname" is needed.  Perhaps some
confusion arises over the term "text command mode".  It refers to the way that
it works in Emacs 21: GUD buffer + source buffer.  Perhaps you think it means
just GUD buffer i.e like the command line in a terminal.  Perhaps it would help
to refer to "text command mode" in the section "Debugger Operation" (it
currently says "using the textual interface").


-- 
Nick                                           http://www.inet.net.nz/~nickrob

  reply	other threads:[~2006-11-25  0:48 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 [this message]
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
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=17767.37609.24236.660750@kahikatea.snap.net.nz \
    --to=nickrob@snap.net.nz \
    --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.