aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Roberts2003-05-23 22:38:15 +0000
committerNick Roberts2003-05-23 22:38:15 +0000
commit6d7cff7217ebfe4afb42d7ccecdb6cfcf29b03b2 (patch)
treed8f66fe98cf74d50f020ec62f7bc7b7be189fef2
parent47ab64b21fc7401d838910e971379749c0e92050 (diff)
downloademacs-6d7cff7217ebfe4afb42d7ccecdb6cfcf29b03b2.tar.gz
emacs-6d7cff7217ebfe4afb42d7ccecdb6cfcf29b03b2.zip
(gdba): Accommodate Fortran programs.
(gud-gdba-command-name): Use -noasync in all cases (as Fortran seems to require it also). (gdb-source-info): Parse correctly when compilation directory specifies host also (IRIX).
-rw-r--r--lisp/gdb-ui.el14
1 files changed, 7 insertions, 7 deletions
diff --git a/lisp/gdb-ui.el b/lisp/gdb-ui.el
index 7953743d906..18643f44d86 100644
--- a/lisp/gdb-ui.el
+++ b/lisp/gdb-ui.el
@@ -174,7 +174,8 @@ The following interactive lisp functions help control operation :
174 (gdb-enqueue-input (list "set new-console off\n" 'ignore))) 174 (gdb-enqueue-input (list "set new-console off\n" 'ignore)))
175 (gdb-enqueue-input (list "set height 0\n" 'ignore)) 175 (gdb-enqueue-input (list "set height 0\n" 'ignore))
176 ;; find source file and compilation directory here 176 ;; find source file and compilation directory here
177 (gdb-enqueue-input (list "server list\n" 'ignore)) 177 (gdb-enqueue-input (list "server list\n" 'ignore)) ; C program
178 (gdb-enqueue-input (list "server list MAIN__\n" 'ignore)) ; Fortran program
178 (gdb-enqueue-input (list "server info source\n" 179 (gdb-enqueue-input (list "server info source\n"
179 'gdb-source-info)) 180 'gdb-source-info))
180 ;; 181 ;;
@@ -518,10 +519,7 @@ This filter may simply queue output for a later time."
518;; any newlines. 519;; any newlines.
519;; 520;;
520 521
521(defcustom gud-gdba-command-name 522(defcustom gud-gdba-command-name "gdb -annotate=2 -noasync"
522 (if (eq window-system 'w32)
523 "gdb -annotate=2 -noasync"
524 "gdb -annotate=2")
525 "Default command to execute an executable under the GDB-UI debugger." 523 "Default command to execute an executable under the GDB-UI debugger."
526 :type 'string 524 :type 'string
527 :group 'gud) 525 :group 'gud)
@@ -2148,8 +2146,10 @@ This arrangement depends on the value of `gdb-many-windows'."
2148buffers." 2146buffers."
2149 (goto-char (point-min)) 2147 (goto-char (point-min))
2150 (when (search-forward "directory is " nil t) 2148 (when (search-forward "directory is " nil t)
2151 (looking-at "\\S-*") 2149 (if (looking-at "\\S-*:\\(\\S-*\\)")
2152 (setq gdb-cdir (match-string 0)) 2150 (setq gdb-cdir (match-string 1))
2151 (looking-at "\\S-*")
2152 (setq gdb-cdir (match-string 0)))
2153 (search-forward "Located in ") 2153 (search-forward "Located in ")
2154 (looking-at "\\S-*") 2154 (looking-at "\\S-*")
2155 (setq gdb-main-file (match-string 0)) 2155 (setq gdb-main-file (match-string 0))