Mercurial > emacs
changeset 79945:d1a91cfdb94c
(gdb-create-define-alist): Don't call
gdb-cpp-define-alist-program if file is nil (currently only
" *partial-output-...").
author | Nick Roberts <nickrob@snap.net.nz> |
---|---|
date | Sun, 27 Jan 2008 20:53:02 +0000 |
parents | d4d72629ba03 |
children | fe9dab182829 7dc2524306eb |
files | lisp/progmodes/gdb-ui.el |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/progmodes/gdb-ui.el Sun Jan 27 20:51:19 2008 +0000 +++ b/lisp/progmodes/gdb-ui.el Sun Jan 27 20:53:02 2008 +0000 @@ -435,11 +435,11 @@ (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)