(gud-dbx-massage-args): Use gud-dbx-directories.
(gud-dbx-file-name): New function.
(gud-irixdbx-marker-filter): Use gud-dbx-file-name.
(gud-dbx-file-file): Use gud-dbx-file-name.
(gud-filter): Fix previous change.
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.