diff options
author | Nick Roberts <nickrob@snap.net.nz> | 2008-01-27 20:53:02 +0000 |
---|---|---|
committer | Nick Roberts <nickrob@snap.net.nz> | 2008-01-27 20:53:02 +0000 |
commit | f43ad7374fe3caf1e89cd6ede0f83769ef30998b (patch) | |
tree | 780de8a10e80e599938ef270333347b285d70efd | |
parent | 3621231b47a11a501e3aa75c7562071d2f0199c5 (diff) | |
download | emacs-f43ad7374fe3caf1e89cd6ede0f83769ef30998b.tar.gz |
(gdb-create-define-alist): Don't call
gdb-cpp-define-alist-program if file is nil (currently only
" *partial-output-...").
-rw-r--r-- | lisp/progmodes/gdb-ui.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/progmodes/gdb-ui.el b/lisp/progmodes/gdb-ui.el index d85bf23c7c5..4e6727cdbad 100644 --- a/lisp/progmodes/gdb-ui.el +++ b/lisp/progmodes/gdb-ui.el @@ -435,11 +435,11 @@ otherwise do not." (output (with-output-to-string (with-current-buffer standard-output - (call-process shell-file-name - (if (file-exists-p file) file nil) + (and file (file-exists-p file) + (call-process shell-file-name file (list t nil) nil "-c" (concat gdb-cpp-define-alist-program " " - gdb-cpp-define-alist-flags))))) + gdb-cpp-define-alist-flags)))))) (define-list (split-string output "\n" t)) (name)) (setq gdb-define-alist nil) (dolist (define define-list) |