diff options
| -rw-r--r-- | lisp/gdb-ui.el | 14 |
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'." | |||
| 2148 | buffers." | 2146 | buffers." |
| 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)) |