aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Roberts2008-01-27 20:53:02 +0000
committerNick Roberts2008-01-27 20:53:02 +0000
commitf43ad7374fe3caf1e89cd6ede0f83769ef30998b (patch)
tree780de8a10e80e599938ef270333347b285d70efd
parent3621231b47a11a501e3aa75c7562071d2f0199c5 (diff)
downloademacs-f43ad7374fe3caf1e89cd6ede0f83769ef30998b.tar.gz
emacs-f43ad7374fe3caf1e89cd6ede0f83769ef30998b.zip
(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.el6
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."
435 (output 435 (output
436 (with-output-to-string 436 (with-output-to-string
437 (with-current-buffer standard-output 437 (with-current-buffer standard-output
438 (call-process shell-file-name 438 (and file (file-exists-p file)
439 (if (file-exists-p file) file nil) 439 (call-process shell-file-name file
440 (list t nil) nil "-c" 440 (list t nil) nil "-c"
441 (concat gdb-cpp-define-alist-program " " 441 (concat gdb-cpp-define-alist-program " "
442 gdb-cpp-define-alist-flags))))) 442 gdb-cpp-define-alist-flags))))))
443 (define-list (split-string output "\n" t)) (name)) 443 (define-list (split-string output "\n" t)) (name))
444 (setq gdb-define-alist nil) 444 (setq gdb-define-alist nil)
445 (dolist (define define-list) 445 (dolist (define define-list)