# HG changeset patch # User Nick Roberts # Date 1216249372 0 # Node ID 5e647deae82437193808403b80c58265bf9cc2ef # Parent da03cfcc85a1d5e21ecb4eb881ec64cb02c1ce45 (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. diff -r da03cfcc85a1 -r 5e647deae824 lisp/progmodes/gdb-ui.el --- a/lisp/progmodes/gdb-ui.el Wed Jul 16 23:01:04 2008 +0000 +++ b/lisp/progmodes/gdb-ui.el Wed Jul 16 23:02:52 2008 +0000 @@ -470,11 +470,14 @@ (output (with-output-to-string (with-current-buffer standard-output - (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)))))) + (and file + (file-exists-p file) + ;; call-process doesn't work with remote file names. + (not (file-remote-p default-directory)) + (call-process shell-file-name file + (list t nil) nil "-c" + (concat gdb-cpp-define-alist-program " " + gdb-cpp-define-alist-flags)))))) (define-list (split-string output "\n" t)) (name)) (setq gdb-define-alist nil) (dolist (define define-list) @@ -3273,7 +3276,7 @@ (if gdb-many-windows (gdb-setup-windows) (gdb-get-buffer-create 'gdb-breakpoints-buffer) - (if gdb-show-main + (if (and gdb-show-main gdb-main-file) (let ((pop-up-windows t)) (display-buffer (gud-find-file gdb-main-file))))) (setq gdb-ready t))