diff options
| author | Nick Roberts | 2004-01-08 22:10:42 +0000 |
|---|---|---|
| committer | Nick Roberts | 2004-01-08 22:10:42 +0000 |
| commit | c5e047e9ee800a2fd8ba00ce69e1034a5d3d85f4 (patch) | |
| tree | 588bcb1041e3e87b8492d8fab1b1d93cc5fea060 | |
| parent | 7f0edca43fff13b69195bd08023e6d2ebd5b2491 (diff) | |
| download | emacs-c5e047e9ee800a2fd8ba00ce69e1034a5d3d85f4.tar.gz emacs-c5e047e9ee800a2fd8ba00ce69e1034a5d3d85f4.zip | |
(gdb-ann3): Revert previous change. (don't use GDB command "set width 0").
(gdb-source-info): Allow for case of where compilation directory is not
recorded.
| -rw-r--r-- | lisp/gdb-ui.el | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/lisp/gdb-ui.el b/lisp/gdb-ui.el index 07e63af7566..6e469427e73 100644 --- a/lisp/gdb-ui.el +++ b/lisp/gdb-ui.el | |||
| @@ -172,7 +172,6 @@ The following interactive lisp functions help control operation : | |||
| 172 | (if (eq window-system 'w32) | 172 | (if (eq window-system 'w32) |
| 173 | (gdb-enqueue-input (list "set new-console off\n" 'ignore))) | 173 | (gdb-enqueue-input (list "set new-console off\n" 'ignore))) |
| 174 | (gdb-enqueue-input (list "set height 0\n" 'ignore)) | 174 | (gdb-enqueue-input (list "set height 0\n" 'ignore)) |
| 175 | (gdb-enqueue-input (list "set width 0\n" 'ignore)) | ||
| 176 | ;; find source file and compilation directory here | 175 | ;; find source file and compilation directory here |
| 177 | (gdb-enqueue-input (list "server list main\n" 'ignore)) ; C program | 176 | (gdb-enqueue-input (list "server list main\n" 'ignore)) ; C program |
| 178 | (gdb-enqueue-input (list "server list MAIN__\n" 'ignore)) ; Fortran program | 177 | (gdb-enqueue-input (list "server list MAIN__\n" 'ignore)) ; Fortran program |
| @@ -1706,14 +1705,13 @@ This arrangement depends on the value of `gdb-many-windows'." | |||
| 1706 | buffers." | 1705 | buffers." |
| 1707 | (goto-char (point-min)) | 1706 | (goto-char (point-min)) |
| 1708 | (if (search-forward "directory is " nil t) | 1707 | (if (search-forward "directory is " nil t) |
| 1709 | (progn | 1708 | (if (looking-at "\\S-*:\\(\\S-*\\)") |
| 1710 | (if (looking-at "\\S-*:\\(\\S-*\\)") | 1709 | (setq gdb-cdir (match-string 1)) |
| 1711 | (setq gdb-cdir (match-string 1)) | ||
| 1712 | (looking-at "\\S-*") | ||
| 1713 | (setq gdb-cdir (match-string 0))) | ||
| 1714 | (search-forward "Located in ") | ||
| 1715 | (looking-at "\\S-*") | 1710 | (looking-at "\\S-*") |
| 1716 | (setq gdb-main-file (match-string 0))) | 1711 | (setq gdb-cdir (match-string 0)))) |
| 1712 | (if (search-forward "Located in " nil t) | ||
| 1713 | (if (looking-at "\\S-*") | ||
| 1714 | (setq gdb-main-file (match-string 0))) | ||
| 1717 | (setq gdb-view-source nil)) | 1715 | (setq gdb-view-source nil)) |
| 1718 | (delete-other-windows) | 1716 | (delete-other-windows) |
| 1719 | (switch-to-buffer gud-comint-buffer) | 1717 | (switch-to-buffer gud-comint-buffer) |