emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs 23.0.0.1 fails parsing gdb output


From: Johan Walles
Subject: Re: Emacs 23.0.0.1 fails parsing gdb output
Date: Fri, 13 Jul 2007 09:57:43 +0200

2007/7/13, Nick Roberts <address@hidden>:
> > I think that M-x gdb doesn't work in you start execution from within a
> > script.  In this case you must use M-x gdba.  Does this work?

> Yes!  What's the difference betweeen gdb and gdba?  I wasn't able to
> find anything documenting the difference, according to the docs they
> seem to do roughly the same thing.

M-x gdba assumes that GDB is being run with the "--annotate=3" option.  M-x gdb
filters the output to determine whether GDB is being run with "--fullname" or
"--annotate=3".  The former gives the old Emacs 21 functionality (or lack of
it!) and is worth using if all else fails.

As someone read somewhere that --annotate=3 should be used with
Emacs22, that's what we're using with Emacs22.  So if all "gdb" (sans
"a") does it trying to figure that out, "gdba" is what we should and
will use.

So they do indeed do the same thing, in most cases, when "--annotate=3" is
used (the default).  There is a problem when GDB commands like "run" are
included in GDB scripts because these get run _before_ GDB commands that Emacs
uses to set up the mode.  Perhaps I'll add a note in the manual.

Something in there about how "gdba" and "gdb" differs would be great!

Thanks a lot for your quick and insightful comments!

 Regards //Johan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]