]> git.eshelyaron.com Git - emacs.git/commitdiff
(gdb-create-define-alist): Don't call
authorNick Roberts <nickrob@snap.net.nz>
Sun, 27 Jan 2008 20:53:02 +0000 (20:53 +0000)
committerNick Roberts <nickrob@snap.net.nz>
Sun, 27 Jan 2008 20:53:02 +0000 (20:53 +0000)
gdb-cpp-define-alist-program if file is nil (currently only
" *partial-output-...").

lisp/progmodes/gdb-ui.el

index d85bf23c7c565072aa5b8d63558c016e5bd8836e..4e6727cdbad3b28634df958a250d719c5c9e9fc3 100644 (file)
@@ -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)