diff options
| author | Richard M. Stallman | 1999-09-08 05:17:05 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1999-09-08 05:17:05 +0000 |
| commit | 8261aae6ec2ad97e33734c8cfc3dda882e6a2946 (patch) | |
| tree | 966585a3d1eabcb33fdc1a64e9d7782f6e784ca3 | |
| parent | 61684f41fc15f3f68d3f9858e5b57217dca6d530 (diff) | |
| download | emacs-8261aae6ec2ad97e33734c8cfc3dda882e6a2946.tar.gz emacs-8261aae6ec2ad97e33734c8cfc3dda882e6a2946.zip | |
(gud-make-debug-menu): Make a child for the
local menu, for its menu bar, and the debug menu.
(gdb, sdb, dbx, xdb, perldb, pdb, jdb):
Use the history for arg-reading in the simple way.
| -rw-r--r-- | lisp/gud.el | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/lisp/gud.el b/lisp/gud.el index 2de603bc079..edf4d028f05 100644 --- a/lisp/gud.el +++ b/lisp/gud.el | |||
| @@ -360,7 +360,7 @@ and source-file directory for your debugger." | |||
| 360 | (car gud-gdb-history) | 360 | (car gud-gdb-history) |
| 361 | "gdb ") | 361 | "gdb ") |
| 362 | gdb-minibuffer-local-map nil | 362 | gdb-minibuffer-local-map nil |
| 363 | '(gud-gdb-history . 1)))) | 363 | 'gud-gdb-history))) |
| 364 | 364 | ||
| 365 | (gud-common-init command-line 'gud-gdb-massage-args | 365 | (gud-common-init command-line 'gud-gdb-massage-args |
| 366 | 'gud-gdb-marker-filter 'gud-gdb-find-file) | 366 | 'gud-gdb-marker-filter 'gud-gdb-find-file) |
| @@ -670,7 +670,7 @@ and source-file directory for your debugger." | |||
| 670 | (car gud-sdb-history) | 670 | (car gud-sdb-history) |
| 671 | "sdb ") | 671 | "sdb ") |
| 672 | nil nil | 672 | nil nil |
| 673 | '(gud-sdb-history . 1)))) | 673 | 'gud-sdb-history))) |
| 674 | (if (and gud-sdb-needs-tags | 674 | (if (and gud-sdb-needs-tags |
| 675 | (not (and (boundp 'tags-file-name) | 675 | (not (and (boundp 'tags-file-name) |
| 676 | (stringp tags-file-name) | 676 | (stringp tags-file-name) |
| @@ -1004,7 +1004,7 @@ and source-file directory for your debugger." | |||
| 1004 | (car gud-dbx-history) | 1004 | (car gud-dbx-history) |
| 1005 | "dbx ") | 1005 | "dbx ") |
| 1006 | nil nil | 1006 | nil nil |
| 1007 | '(gud-dbx-history . 1)))) | 1007 | 'gud-dbx-history))) |
| 1008 | 1008 | ||
| 1009 | (cond | 1009 | (cond |
| 1010 | (gud-mips-p | 1010 | (gud-mips-p |
| @@ -1153,7 +1153,7 @@ directories if your program contains sources from more than one directory." | |||
| 1153 | (car gud-xdb-history) | 1153 | (car gud-xdb-history) |
| 1154 | "xdb ") | 1154 | "xdb ") |
| 1155 | nil nil | 1155 | nil nil |
| 1156 | '(gud-xdb-history . 1)))) | 1156 | 'gud-xdb-history))) |
| 1157 | 1157 | ||
| 1158 | (gud-common-init command-line 'gud-xdb-massage-args | 1158 | (gud-common-init command-line 'gud-xdb-massage-args |
| 1159 | 'gud-xdb-marker-filter 'gud-xdb-find-file) | 1159 | 'gud-xdb-marker-filter 'gud-xdb-find-file) |
| @@ -1270,7 +1270,7 @@ and source-file directory for your debugger." | |||
| 1270 | "-e 0") | 1270 | "-e 0") |
| 1271 | " ")) | 1271 | " ")) |
| 1272 | nil nil | 1272 | nil nil |
| 1273 | '(gud-perldb-history . 1)))) | 1273 | 'gud-perldb-history))) |
| 1274 | 1274 | ||
| 1275 | (gud-common-init command-line 'gud-perldb-massage-args | 1275 | (gud-common-init command-line 'gud-perldb-massage-args |
| 1276 | 'gud-perldb-marker-filter 'gud-perldb-find-file) | 1276 | 'gud-perldb-marker-filter 'gud-perldb-find-file) |
| @@ -1399,7 +1399,7 @@ and source-file directory for your debugger." | |||
| 1399 | (car gud-pdb-history) | 1399 | (car gud-pdb-history) |
| 1400 | (concat gud-pdb-command-name " ")) | 1400 | (concat gud-pdb-command-name " ")) |
| 1401 | pdb-minibuffer-local-map nil | 1401 | pdb-minibuffer-local-map nil |
| 1402 | '(gud-pdb-history . 1)))) | 1402 | 'gud-pdb-history))) |
| 1403 | 1403 | ||
| 1404 | (gud-common-init command-line 'gud-pdb-massage-args | 1404 | (gud-common-init command-line 'gud-pdb-massage-args |
| 1405 | 'gud-pdb-marker-filter 'gud-pdb-find-file) | 1405 | 'gud-pdb-marker-filter 'gud-pdb-find-file) |
| @@ -1876,7 +1876,7 @@ between it and it's value." | |||
| 1876 | (car gud-jdb-history) | 1876 | (car gud-jdb-history) |
| 1877 | (concat gud-jdb-command-name " ")) | 1877 | (concat gud-jdb-command-name " ")) |
| 1878 | nil nil | 1878 | nil nil |
| 1879 | '(gud-jdb-history . 1)))) | 1879 | 'gud-jdb-history))) |
| 1880 | 1880 | ||
| 1881 | (gud-common-init command-line 'gud-jdb-massage-args | 1881 | (gud-common-init command-line 'gud-jdb-massage-args |
| 1882 | 'gud-jdb-marker-filter 'gud-jdb-find-file) | 1882 | 'gud-jdb-marker-filter 'gud-jdb-find-file) |
| @@ -2365,12 +2365,11 @@ Obeying it means displaying in another window the specified file and line." | |||
| 2365 | "Make sure the current local map has a [menu-bar debug] submap. | 2365 | "Make sure the current local map has a [menu-bar debug] submap. |
| 2366 | If it doesn't, replace it with a new map that inherits it, | 2366 | If it doesn't, replace it with a new map that inherits it, |
| 2367 | and create such a submap in that new map." | 2367 | and create such a submap in that new map." |
| 2368 | (if (and (current-local-map) | 2368 | (use-local-map (gud-new-keymap (current-local-map))) |
| 2369 | (lookup-key (current-local-map) [menu-bar debug])) | 2369 | (define-key (current-local-map) [menu-bar] |
| 2370 | nil | 2370 | (gud-new-keymap (lookup-key (current-local-map) [menu-bar]))) |
| 2371 | (use-local-map (gud-new-keymap (current-local-map))) | 2371 | (define-key (current-local-map) [menu-bar debug] |
| 2372 | (define-key (current-local-map) [menu-bar debug] | 2372 | (cons "Gud" (gud-new-keymap gud-menu-map)))) |
| 2373 | (cons "Gud" (gud-new-keymap gud-menu-map))))) | ||
| 2374 | 2373 | ||
| 2375 | ;;; Code for parsing expressions out of C code. The single entry point is | 2374 | ;;; Code for parsing expressions out of C code. The single entry point is |
| 2376 | ;;; find-c-expr, which tries to return an lvalue expression from around point. | 2375 | ;;; find-c-expr, which tries to return an lvalue expression from around point. |