sequence in the args. Pass ARGS to massage-file even if no file name.
(gud-gdb-massage-args, gud-sdb-massage-args, gud-dbx-massage-args)
(gud-mipsdbx-massage-args, gud-xdb-massage-args)
(gud-perldb-massage-args): Don't add FILE onto the args.
(gud-new-keymap): New function.
(gud-xdb-find-file, gud-dbx-find-file, gud-sdb-find-file, gud-gdb-find-file):
Use it for keymap inheritance.
(gud-mode): Use gud-new-keymap, so inherit keymaps..
(gud-dbx-find-file, gud-xdb-find-file, gud-sdb-find-file, gud-perldb-find-file):
Likewise.
(gud-menu-map): New variable.
(gud-mode): Use gud-menu-map and move the menu-setting outside.
(gud-massage-args, gud-marker-filter, gud-find-file): New vars.
Mark them as permanent locals.
(gud-massage-args, gud-marker-filter, gud-find-file):
In these functions, use those variables.
(gud-common-init): 3 new args give values for those variables.
(gdb, sdb, dbx, xdb, perldb): Pass new args to gud-common-init.
(gud-gdb-complete-command): Bind gud-marker-filter.
(gud-find-file): Condense multiple slashes to single slashes.
(gud-mipsdbx-marker-filter): Reimplemented based on
gud-gdb-marker-filter, with regexps appropriately altered.
(gud-marker-acc): New variable, replacing the
debugger-specific accumulation variables.
(dbx): Arrange to fire up the source window with irixdbx.
(dbx): Fix gud-break under SunOS, at least. (I suspect
this is a general problem, because of the \n for some reason.)
(gud-dbx-mips-p, gud-dbx-irix-p): Use system-type to
choose system-dependent dbx incantations.
(gud-dbx-mips-p): Use "-emacs" for OSF/1 dbx as for MIPS.
(gud-irix-dbx-p): Determines whether to use (new) gud-irixdbx-marker-filter.
(gud-irixdbx-marker-filter): New function.
(dbx): Insert case for Irix.
GDB completion in the GUD buffer. Requires assistance from
GDB in the form of the `complete' command.
(gud-gdb-complete-in-progress, gud-gdb-complete-string,
gud-gdb-complete-break, gud-gdb-complete-list,
gud-gdb-complete-filter): New.
(gdb): Bind TAB to gud-gdb-complete-command.
(gud-format-command): Use gud-last-last-frame if
gud-last-frame is nil.
(gud-mipsdbx-massage-args, gud-mipsdbx-marker-filter):
New functions for dbx support on Mips under Ultrix.
(gud-dbx-mips-p, gud-mipsdbx-marker-acc): New variables.
(dbx) If gud-dbx-mips-p is non-nil, overload above two functions
and initialize appropriate command strings for dbx.
(gud-common-init): Call substitute-in-file-name.
(dbx): Let `comint-prompt-regexp' not match more than one line.
the filter's execution.
* gud.el (gud-gdb-marker-filter): If we received some text after
the position marker, append it to any text before the marker,
instead of throwing away the text before the marker.
markers from GDB will always be received in one chunk of input;
gud-gdb-marker-filter may be called several times, each time
providing a little more of the position marker.
(gud-gdb-marker-acc): New variable.
(gud-gdb-marker-filter): If we have received what could be the
beginning of a position marker, hold that text in
gud-gdb-marker-acc for the next time we get called, until we have
enough information to decide for sure.
* gud.el (gud-gdb-marker-filter): Only recognize GDB position
markers if they occur at the beginning of the line. They always
do, and this reduces the likelihood that the above change will
hold back output that isn't really a position marker.
(gud-{gdb,sdb,xdb}-debugger-startup): Replaced with gud-*-massage-args.
(gdb, sdb, xdb): Argument is command line, not args for it. Remove
debugger name from prompt and put it in the default input instead.
Overload gud-massage-args instead of gud-debugger-startup.
(gud-chop-words): New function; subr for gud-common-init.
(gud-common-init): Argument is command line, not args for it.
Rewritten to use gud-chop-words instead of temp buffer and kludge involving
read. Find the program name as the first word of the command line.
Use make-comint and gud-massage-args in place of gud-debugger-startup.
Expand the file name before passing it to gud-massage-args.
have to retype the filename every invocation.
(gud-gdb-history, gud-sdb-history, gud-dbx-history,
gud-xdb-history): New variables.
(gdb, sdb, dbx, xdb): Use them when reading the argument string.