2007/7/13, Nick Roberts <[EMAIL PROTECTED]>:
> > 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


_______________________________________________
emacs-pretest-bug mailing list
emacs-pretest-bug@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

Reply via email to