diff options
| author | Stefan Monnier | 2002-12-03 21:11:15 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2002-12-03 21:11:15 +0000 |
| commit | f5016b6f0a29eafef300a25e143092bfee6c95d9 (patch) | |
| tree | 949909a180e3cd38da67a4e497a029ce94253832 | |
| parent | b94a30018ea5b7bdf9f6d254a97cc2b0152a8b38 (diff) | |
| download | emacs-f5016b6f0a29eafef300a25e143092bfee6c95d9.tar.gz emacs-f5016b6f0a29eafef300a25e143092bfee6c95d9.zip | |
(gdba, gdb-starting, gdb-stopped, gdb-quit): Update gdb-running -> gud-running.
| -rw-r--r-- | lisp/gdb-ui.el | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/lisp/gdb-ui.el b/lisp/gdb-ui.el index e72b6605d43..28ceda51052 100644 --- a/lisp/gdb-ui.el +++ b/lisp/gdb-ui.el | |||
| @@ -38,6 +38,12 @@ | |||
| 38 | (defvar gdb-first-time nil) | 38 | (defvar gdb-first-time nil) |
| 39 | (defvar gdb-proc nil "The process associated with gdb.") | 39 | (defvar gdb-proc nil "The process associated with gdb.") |
| 40 | 40 | ||
| 41 | ;; Dynamically-bound vars in gud.el | ||
| 42 | (defvar gud-gdb-complete-string) | ||
| 43 | (defvar gud-gdb-complete-break) | ||
| 44 | (defvar gud-gdb-complete-list) | ||
| 45 | (defvar gud-gdb-complete-in-progress) | ||
| 46 | |||
| 41 | ;;;###autoload | 47 | ;;;###autoload |
| 42 | (defun gdba (command-line) | 48 | (defun gdba (command-line) |
| 43 | "Run gdb on program FILE in buffer *gdb-FILE*. | 49 | "Run gdb on program FILE in buffer *gdb-FILE*. |
| @@ -124,7 +130,7 @@ The following interactive lisp functions help control operation : | |||
| 124 | (setq gdb-display-in-progress nil) | 130 | (setq gdb-display-in-progress nil) |
| 125 | (setq gdb-dive nil) | 131 | (setq gdb-dive nil) |
| 126 | (setq gud-last-last-frame nil) | 132 | (setq gud-last-last-frame nil) |
| 127 | (setq gdb-running nil) | 133 | (setq gud-running nil) |
| 128 | 134 | ||
| 129 | (run-hooks 'gdb-mode-hook) | 135 | (run-hooks 'gdb-mode-hook) |
| 130 | (setq gdb-proc (get-buffer-process (current-buffer))) | 136 | (setq gdb-proc (get-buffer-process (current-buffer))) |
| @@ -754,7 +760,7 @@ subprocess is now the program being debugged, not GDB." | |||
| 754 | (cond | 760 | (cond |
| 755 | ((eq sink 'user) | 761 | ((eq sink 'user) |
| 756 | (progn | 762 | (progn |
| 757 | (setq gdb-running t) | 763 | (setq gud-running t) |
| 758 | (set-gdb-instance-output-sink 'inferior))) | 764 | (set-gdb-instance-output-sink 'inferior))) |
| 759 | (t (error "Unexpected `starting' annotation"))))) | 765 | (t (error "Unexpected `starting' annotation"))))) |
| 760 | 766 | ||
| @@ -770,7 +776,7 @@ for the subprocess is now GDB, not the program being debugged." | |||
| 770 | (defun gdb-stopped (ignored) | 776 | (defun gdb-stopped (ignored) |
| 771 | "An annotation handler for `stopped'. It is just like gdb-stopping, except | 777 | "An annotation handler for `stopped'. It is just like gdb-stopping, except |
| 772 | that if we already set the output sink to 'user in gdb-stopping, that is fine." | 778 | that if we already set the output sink to 'user in gdb-stopping, that is fine." |
| 773 | (setq gdb-running nil) | 779 | (setq gud-running nil) |
| 774 | (let ((sink (gdb-instance-output-sink))) | 780 | (let ((sink (gdb-instance-output-sink))) |
| 775 | (cond | 781 | (cond |
| 776 | ((eq sink 'inferior) | 782 | ((eq sink 'inferior) |
| @@ -2170,7 +2176,7 @@ Just the partial-output buffer is left." | |||
| 2170 | (setq left-margin-width 0) | 2176 | (setq left-margin-width 0) |
| 2171 | (setq gud-minor-mode nil) | 2177 | (setq gud-minor-mode nil) |
| 2172 | (kill-local-variable 'tool-bar-map) | 2178 | (kill-local-variable 'tool-bar-map) |
| 2173 | (setq gdb-running nil) | 2179 | (setq gud-running nil) |
| 2174 | (if (get-buffer-window (current-buffer)) | 2180 | (if (get-buffer-window (current-buffer)) |
| 2175 | (set-window-margins (get-buffer-window | 2181 | (set-window-margins (get-buffer-window |
| 2176 | (current-buffer)) | 2182 | (current-buffer)) |