changeset 69839:f91451ffdab7

(gdb-init-2): Set current filename using GDB list command without argument for greater generality.
author Nick Roberts <nickrob@snap.net.nz>
date Fri, 07 Apr 2006 11:20:39 +0000
parents e47c6e5f6ed4
children d138b536fbe5
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	Fri Apr 07 11:19:11 2006 +0000
+++ b/lisp/progmodes/gdb-ui.el	Fri Apr 07 11:20:39 2006 +0000
@@ -571,9 +571,9 @@
 	   'gdb-set-gud-minor-mode-existing-buffers-1))
     (setq gdb-locals-font-lock-keywords gdb-locals-font-lock-keywords-2))
 
-  ;; find source file and compilation directory here
-  (gdb-enqueue-input (list "server list main\n"   'ignore))   ; C program
-  (gdb-enqueue-input (list "server list MAIN__\n" 'ignore))   ; Fortran program
+  ;; Find source file and compilation directory here.
+  ;; Works for C, C++, Fortran and Ada but not Java (GDB 6.4)
+  (gdb-enqueue-input (list "server list\n" 'ignore))
   (gdb-enqueue-input (list "server info source\n" 'gdb-source-info))
 
   (run-hooks 'gdba-mode-hook))