From: Nick Roberts Date: Sun, 27 Nov 2011 08:33:25 +0000 (+1300) Subject: progmodes/gdb-mi.el (gdb-init-1): Condition execution of gdb-get-source-file-list... X-Git-Tag: emacs-pretest-24.0.92~32 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c3f1c606c9818ca0b5eaa7929ef3b7a60dbf6088;p=emacs.git progmodes/gdb-mi.el (gdb-init-1): Condition execution of gdb-get-source-file-list on gdb-create-source-file-list. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 32de942b038..7ca29e33023 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2011-11-27 Nick Roberts + + * progmodes/gdb-mi.el (gdb-init-1): Condition execution of + gdb-get-source-file-list on gdb-create-source-file-list. + 2011-11-26 Eli Zaretskii * whitespace.el (whitespace-newline): Use a different foreground diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el index a1a41bd0b1b..ba3f938d718 100644 --- a/lisp/progmodes/gdb-mi.el +++ b/lisp/progmodes/gdb-mi.el @@ -873,13 +873,13 @@ detailed description of this mode. (gdb-input (list "-gdb-set non-stop 1" 'gdb-non-stop-handler))) ;; find source file and compilation directory here - (gdb-input - ; Needs GDB 6.2 onwards. - (list "-file-list-exec-source-files" 'gdb-get-source-file-list)) (if gdb-create-source-file-list (gdb-input + ; Needs GDB 6.2 onwards. + (list "-file-list-exec-source-files" 'gdb-get-source-file-list))) + (gdb-input ; Needs GDB 6.0 onwards. - (list "-file-list-exec-source-file" 'gdb-get-source-file))) + (list "-file-list-exec-source-file" 'gdb-get-source-file)) (gdb-input (list "-gdb-show prompt" 'gdb-get-prompt)))