Mercurial > emacs
comparison lisp/progmodes/gdb-ui.el @ 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 | 164fb98f5a8e |
children | e6d430f1cde3 81f2d90dee68 65ca8fb66a0d |
comparison
equal
deleted
inserted
replaced
69838:e47c6e5f6ed4 | 69839:f91451ffdab7 |
---|---|
569 (gdb-enqueue-input | 569 (gdb-enqueue-input |
570 (list "server interpreter mi \"-file-list-exec-source-files\"\n" | 570 (list "server interpreter mi \"-file-list-exec-source-files\"\n" |
571 'gdb-set-gud-minor-mode-existing-buffers-1)) | 571 'gdb-set-gud-minor-mode-existing-buffers-1)) |
572 (setq gdb-locals-font-lock-keywords gdb-locals-font-lock-keywords-2)) | 572 (setq gdb-locals-font-lock-keywords gdb-locals-font-lock-keywords-2)) |
573 | 573 |
574 ;; find source file and compilation directory here | 574 ;; Find source file and compilation directory here. |
575 (gdb-enqueue-input (list "server list main\n" 'ignore)) ; C program | 575 ;; Works for C, C++, Fortran and Ada but not Java (GDB 6.4) |
576 (gdb-enqueue-input (list "server list MAIN__\n" 'ignore)) ; Fortran program | 576 (gdb-enqueue-input (list "server list\n" 'ignore)) |
577 (gdb-enqueue-input (list "server info source\n" 'gdb-source-info)) | 577 (gdb-enqueue-input (list "server info source\n" 'gdb-source-info)) |
578 | 578 |
579 (run-hooks 'gdba-mode-hook)) | 579 (run-hooks 'gdba-mode-hook)) |
580 | 580 |
581 (defun gdb-get-version () | 581 (defun gdb-get-version () |