diff options
| author | Nick Roberts | 2008-07-16 23:02:52 +0000 |
|---|---|---|
| committer | Nick Roberts | 2008-07-16 23:02:52 +0000 |
| commit | cf7238adf9f3bcddb60d422c470b58605a1b8bad (patch) | |
| tree | d504eaee280b06a9ed275b78dcb26d2876cb13cb | |
| parent | 51390df783f4099a161009ecc4f7ab07d2f1fce7 (diff) | |
| download | emacs-cf7238adf9f3bcddb60d422c470b58605a1b8bad.tar.gz emacs-cf7238adf9f3bcddb60d422c470b58605a1b8bad.zip | |
(gdb-create-define-alist): Don't create a
list of #defines for remote files.
(gdb-source-info): Only show main if it has been found.
| -rw-r--r-- | lisp/progmodes/gdb-ui.el | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/lisp/progmodes/gdb-ui.el b/lisp/progmodes/gdb-ui.el index 1b9ed9ad7e0..d704e6a5b06 100644 --- a/lisp/progmodes/gdb-ui.el +++ b/lisp/progmodes/gdb-ui.el | |||
| @@ -470,11 +470,14 @@ otherwise do not." | |||
| 470 | (output | 470 | (output |
| 471 | (with-output-to-string | 471 | (with-output-to-string |
| 472 | (with-current-buffer standard-output | 472 | (with-current-buffer standard-output |
| 473 | (and file (file-exists-p file) | 473 | (and file |
| 474 | (call-process shell-file-name file | 474 | (file-exists-p file) |
| 475 | (list t nil) nil "-c" | 475 | ;; call-process doesn't work with remote file names. |
| 476 | (concat gdb-cpp-define-alist-program " " | 476 | (not (file-remote-p default-directory)) |
| 477 | gdb-cpp-define-alist-flags)))))) | 477 | (call-process shell-file-name file |
| 478 | (list t nil) nil "-c" | ||
| 479 | (concat gdb-cpp-define-alist-program " " | ||
| 480 | gdb-cpp-define-alist-flags)))))) | ||
| 478 | (define-list (split-string output "\n" t)) (name)) | 481 | (define-list (split-string output "\n" t)) (name)) |
| 479 | (setq gdb-define-alist nil) | 482 | (setq gdb-define-alist nil) |
| 480 | (dolist (define define-list) | 483 | (dolist (define define-list) |
| @@ -3273,7 +3276,7 @@ buffers." | |||
| 3273 | (if gdb-many-windows | 3276 | (if gdb-many-windows |
| 3274 | (gdb-setup-windows) | 3277 | (gdb-setup-windows) |
| 3275 | (gdb-get-buffer-create 'gdb-breakpoints-buffer) | 3278 | (gdb-get-buffer-create 'gdb-breakpoints-buffer) |
| 3276 | (if gdb-show-main | 3279 | (if (and gdb-show-main gdb-main-file) |
| 3277 | (let ((pop-up-windows t)) | 3280 | (let ((pop-up-windows t)) |
| 3278 | (display-buffer (gud-find-file gdb-main-file))))) | 3281 | (display-buffer (gud-find-file gdb-main-file))))) |
| 3279 | (setq gdb-ready t)) | 3282 | (setq gdb-ready t)) |