gdb-proc with gud-comint-buffer instead.
(gdb-proc): Remove.
(def-gdb-var): Simplify.
(gdb-get-create-instance-buffer): Avoid make-variable-buffer-local.
Set gud-comint-buffer as well as gud-minor-mode and tool-bar-map.
(gdb-goto-bp-this-line): Select the window while doing the goto-line.
(gdb-info-locals-handler): Avoid replace-regexp.
(gud-gdb-complete-list, gud-gdb-complete-in-progress): Remove.
(gdba): Call `gdb' and then make modifications.
Always call gdb-clear-inferior-io rather than just "the first time".
(gud-break, gud-remove): Definitions moved to inside gdba.
(gdb-target-name): Remove. Use gud-target-name instead.
(gdba-complete-filter, gdba-common-init): Remove.
The changes were integrated into the generic code.
(gud-menu-map): Re-fix gdb-running to gud-running.
Activate up/down and finish for pdb.
(gud-def): Use backquotes.
(gdb, sdb, dbx, xdb, pdb, jdb, bashdb): Remove redundant menu bindings.
(gud-gdb-complete-in-progress, gud-gdb-complete-string)
(gud-gdb-complete-break, gud-gdb-complete-list):
Rename to gud-gdb-fetch-lines-in-progress, gud-gdb-fetch-lines-string,
gud-gdb-fetch-lines-break and gud-gdb-fetched-lines.
(gud-gdb-fetch-lines-filter): Rename from gud-gdb-complete-filter.
Add a `filter' argument and run it on `string'.
(gud-gdb-run-command-fetch-lines): Use it instead of
gud-gdb-speedbar-stack-filter. Add a `skip' arg.
Return the fetched lines.
(gud-gdb-complete-command): Use it instead of cooking up
something by hand using gud-gdb-complete-filter.
(gud-gdb-get-stackframe): Use the new calling convention of
gud-gdb-run-command-fetch-lines.
(gud-gdb-fetched-stack-frame-list): Remove.
(gud-gdb-speedbar-stack-filter): Remove.
(gud-jdb-marker-filter): Change RE for easier extraction of submatches.
(gud-bashdb-command-name): Add "--debugger" argument here.
(bashdb): Use default gud-find-file and don't bother with
a massage-args function now that --debugger is make explicit.
(gud-bashdb-massage-args, gud-bashdb-find-file): Remove.
(bashdb): Don't provide.
(gud-target-name): New var.
(gud-common-init): Set it.
Also reset gud-running and gud-last-last-frame.
Remove duplicate entry for chinese-b5-quick.
(batch-miscdic-convert): Don't try to call miscdic-convert on
files in the directory just following the arg "-dir".
(gdb-inferior-io-mode-map): New var.
Add bindings to it rather than to comint-mode-map.
(gdb-display-number-end): Use dolist. Remove always-true test.
(gdb-delete-line): Move and simplify.
(gdb-display-end): Don't bother going to beg-of-line since we're there.
(gdb-array-format1): Use dolist.
(gdb-make-windows-menu, gdb-make-frames-menu):
Move to top-level code. Move the menus to within the GUD menu.
Make the menus only appear in gdba mode.
(gdb-inferior-io-mode): Use define-minor-mode.
(gdb-source-info): Don't burp if there's no source file.
(gdb-inferior-io-interrupt, gdb-inferior-io-quit)
(gdb-inferior-io-stop, gdb-inferior-io-eof)
(gdb-display-breakpoints-buffer, gdb-frame-breakpoints-buffer)
(gdb-display-stack-buffer, gdb-frame-stack-buffer)
(gdb-display-registers-buffer, gdb-frame-registers-buffer)
(gdb-display-locals-buffer, gdb-frame-locals-buffer)
(gdb-display-display-buffer, gdb-frame-display-buffer)
(gdb-display-gdb-buffer, gdb-frame-gdb-buffer)
(gdb-display-assembler-buffer, gdb-frame-assembler-buffer):
Remove the spurious left over arg from the "big reorg".
(libintl.h): Include this if _LIBC. Otherwise include gettext.h.
(wchar.h): Include, maybe.
(attribute_hidden): Define if not defind.
(__getopt_initialized): Use attribute_hidden.
(__libc_argc, __libc_argv): Renamed from original_argc, etc.
(__getopt_nonoption_flags, nonoption_flags_max_len, nonoption_flags_len):
Conditional on USE_NONOPTION_FLAGS.
(SWAP_FLAGS): New definitions.
(exchange): Test USE_NONOPTION_FLAGS.
(_getopt_initialize): Test USE_NONOPTION_FLAGS.
(_getopt_internal): Error if argc < 1. New local var print_errors.
Improve test for ambiguous long option.
Add LIBIO support for error message output.
(NONOPTION_P): Test USE_NONOPTION_FLAGS.
(gud-tool-bar-map): Use tool-bar-local-item-from-menu rather than
tool-bar-add-item-from-menu to avoid let binding tool-bar-map
which fails if tool-bar.el is loaded in the mean time.
(gud-file-name): New fun.
(gud-find-file): Use it as default value for gud-find-file.
(gud-speedbar-buttons): Discriminate on gud-minor-mode rather than
on gud-find-file.
(gud-gdb-find-file, gud-dbx-file-name, gud-dbx-find-file)
(gud-xdb-file-name, gud-xdb-find-file, gud-perldb-find-file)
(gud-pdb-find-file, gud-jdb-find-file): Remove.
(gud-query-cmdline): Don't stuff the whole cwd in the command.
(gdb, dbx, xdb, perldb, pdb, jdb): Use the default for gud-find-file.
(gud-mipsdbx-massage-args): Remove.
(gud-dbx-command-name): New var. Do what gud-mipsdbx-massage-args did.
(gud-irixdbx-marker-filter): Use match-string and gud-file-name.
(gud-jdb-command-name): New var.
(gud-common-init): Re-instate RMS code of 11/13.