diff options
author | Nick Roberts <nickrob@snap.net.nz> | 2006-04-07 11:20:39 +0000 |
---|---|---|
committer | Nick Roberts <nickrob@snap.net.nz> | 2006-04-07 11:20:39 +0000 |
commit | 4d91dd05aab77cb9bd8dafcb62aaae1613916cd9 (patch) | |
tree | 08b839dfba6e1b868382296e5392b4ede701662b /lisp/progmodes/gdb-ui.el | |
parent | a179cd22c543d7a9704199d054ebe23d7601151f (diff) | |
download | emacs-4d91dd05aab77cb9bd8dafcb62aaae1613916cd9.tar.gz |
(gdb-init-2): Set current filename using
GDB list command without argument for greater generality.
Diffstat (limited to 'lisp/progmodes/gdb-ui.el')
-rw-r--r-- | lisp/progmodes/gdb-ui.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/progmodes/gdb-ui.el b/lisp/progmodes/gdb-ui.el index b969515e2fc..9f527d12f9f 100644 --- a/lisp/progmodes/gdb-ui.el +++ b/lisp/progmodes/gdb-ui.el @@ -571,9 +571,9 @@ With arg, use separate IO iff arg is positive." '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)) |