diff options
| author | Nick Roberts | 2006-04-13 01:38:24 +0000 |
|---|---|---|
| committer | Nick Roberts | 2006-04-13 01:38:24 +0000 |
| commit | 12c83f528cc92d786663ae702c20a549dc45e83b (patch) | |
| tree | 8543b439651801823b48c19abd96bdfc7bcc3a58 | |
| parent | 25acaa6c71298f950b72ea32f1ec6dc768500627 (diff) | |
| download | emacs-12c83f528cc92d786663ae702c20a549dc45e83b.tar.gz emacs-12c83f528cc92d786663ae702c20a549dc45e83b.zip | |
(gdb-set-gud-minor-mode-existing-buffers):
GDB 6.1+ gives full filename for "info sources" so use
file-name-nondirectory.
| -rw-r--r-- | lisp/progmodes/gdb-ui.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/gdb-ui.el b/lisp/progmodes/gdb-ui.el index 244570170fa..d6854d091fe 100644 --- a/lisp/progmodes/gdb-ui.el +++ b/lisp/progmodes/gdb-ui.el | |||
| @@ -417,7 +417,8 @@ With arg, use separate IO iff arg is positive." | |||
| 417 | (goto-char (point-min)) | 417 | (goto-char (point-min)) |
| 418 | (when (search-forward "read in on demand:" nil t) | 418 | (when (search-forward "read in on demand:" nil t) |
| 419 | (while (re-search-forward gdb-source-file-regexp nil t) | 419 | (while (re-search-forward gdb-source-file-regexp nil t) |
| 420 | (push (or (match-string 1) (match-string 2)) gdb-source-file-list)) | 420 | (push (file-name-nondirectory (or (match-string 1) (match-string 2))) |
| 421 | gdb-source-file-list)) | ||
| 421 | (dolist (buffer (buffer-list)) | 422 | (dolist (buffer (buffer-list)) |
| 422 | (with-current-buffer buffer | 423 | (with-current-buffer buffer |
| 423 | (when (and buffer-file-name | 424 | (when (and buffer-file-name |