diff options
| author | Richard M. Stallman | 1999-05-17 01:38:59 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1999-05-17 01:38:59 +0000 |
| commit | 7373939990e4cf8ec7911c37a60cd65f0da50e1e (patch) | |
| tree | fa5c5e3238f12eb4341654fcedda6fdec788fc1c /lisp | |
| parent | dcf3ff7f919ac71eb2b7d4786e264b8af4d98c92 (diff) | |
| download | emacs-7373939990e4cf8ec7911c37a60cd65f0da50e1e.tar.gz emacs-7373939990e4cf8ec7911c37a60cd65f0da50e1e.zip | |
(gud-format-command): "%F" means file sans extension.
(jdb): use %F, not %f, for gud-break.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/gud.el | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/lisp/gud.el b/lisp/gud.el index 84e76a3f227..2de603bc079 100644 --- a/lisp/gud.el +++ b/lisp/gud.el | |||
| @@ -110,6 +110,7 @@ optional doc string DOC. Certain %-escapes in the string arguments | |||
| 110 | are interpreted specially if present. These are: | 110 | are interpreted specially if present. These are: |
| 111 | 111 | ||
| 112 | %f name (without directory) of current source file. | 112 | %f name (without directory) of current source file. |
| 113 | %F name (without directory or extension) of current source file. | ||
| 113 | %d directory of current source file. | 114 | %d directory of current source file. |
| 114 | %l number of current source line | 115 | %l number of current source line |
| 115 | %e text of the C lvalue or function-call expression surrounding point. | 116 | %e text of the C lvalue or function-call expression surrounding point. |
| @@ -1574,11 +1575,10 @@ The file names should be absolute, or relative to the current directory.") | |||
| 1574 | ;; Move point past a string literal. | 1575 | ;; Move point past a string literal. |
| 1575 | (defun gud-jdb-skip-string-literal () | 1576 | (defun gud-jdb-skip-string-literal () |
| 1576 | (forward-char) | 1577 | (forward-char) |
| 1577 | (while | 1578 | (while (not (cond |
| 1578 | (progn | 1579 | ((eq (following-char) ?\\) |
| 1579 | (if (eq (following-char) ?\\) | 1580 | (forward-char)) |
| 1580 | (forward-char 2)) | 1581 | ((eq (following-char) ?\042)))) |
| 1581 | (not (eq (following-char) ?\042))) | ||
| 1582 | (forward-char)) | 1582 | (forward-char)) |
| 1583 | (forward-char)) | 1583 | (forward-char)) |
| 1584 | 1584 | ||
| @@ -1881,7 +1881,7 @@ between it and it's value." | |||
| 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) |
| 1883 | 1883 | ||
| 1884 | (gud-def gud-break "stop at %l" "\C-b" "Set breakpoint at current line.") | 1884 | (gud-def gud-break "stop at %F:%l" "\C-b" "Set breakpoint at current line.") |
| 1885 | (gud-def gud-remove "clear %l" "\C-d" "Remove breakpoint at current line") | 1885 | (gud-def gud-remove "clear %l" "\C-d" "Remove breakpoint at current line") |
| 1886 | (gud-def gud-step "step" "\C-s" "Step one source line with display.") | 1886 | (gud-def gud-step "step" "\C-s" "Step one source line with display.") |
| 1887 | (gud-def gud-next "next" "\C-n" "Step one line (skip functions).") | 1887 | (gud-def gud-next "next" "\C-n" "Step one line (skip functions).") |
| @@ -2279,6 +2279,11 @@ Obeying it means displaying in another window the specified file and line." | |||
| 2279 | (setq subst (file-name-nondirectory (if insource | 2279 | (setq subst (file-name-nondirectory (if insource |
| 2280 | (buffer-file-name) | 2280 | (buffer-file-name) |
| 2281 | (car frame))))) | 2281 | (car frame))))) |
| 2282 | ((eq key ?F) | ||
| 2283 | (setq subst (file-name-sans-extension | ||
| 2284 | (file-name-nondirectory (if insource | ||
| 2285 | (buffer-file-name) | ||
| 2286 | (car frame)))))) | ||
| 2282 | ((eq key ?d) | 2287 | ((eq key ?d) |
| 2283 | (setq subst (file-name-directory (if insource | 2288 | (setq subst (file-name-directory (if insource |
| 2284 | (buffer-file-name) | 2289 | (buffer-file-name) |