diff options
| author | Nick Roberts | 2005-06-13 06:01:12 +0000 |
|---|---|---|
| committer | Nick Roberts | 2005-06-13 06:01:12 +0000 |
| commit | 1e539d255bef9e76a8eaa781f69db71f57b636f5 (patch) | |
| tree | 38b48092874e555018936ee4b821921d523c5b01 | |
| parent | 3fd355d44e10b5ac2c291d6c1b60b50b3554ee60 (diff) | |
| download | emacs-1e539d255bef9e76a8eaa781f69db71f57b636f5.tar.gz emacs-1e539d255bef9e76a8eaa781f69db71f57b636f5.zip | |
(gdb-registers-mode): Let gdbmi use
MI command -data-list-register-values.
(gdb-post-prompt): Indent properly.
| -rw-r--r-- | lisp/progmodes/gdb-ui.el | 40 |
1 files changed, 21 insertions, 19 deletions
diff --git a/lisp/progmodes/gdb-ui.el b/lisp/progmodes/gdb-ui.el index 7e2022cc11c..f61ce717bc7 100644 --- a/lisp/progmodes/gdb-ui.el +++ b/lisp/progmodes/gdb-ui.el | |||
| @@ -994,24 +994,24 @@ sink to `user' in `gdb-stopping', that is fine." | |||
| 994 | This begins the collection of output from the current command if that | 994 | This begins the collection of output from the current command if that |
| 995 | happens to be appropriate." | 995 | happens to be appropriate." |
| 996 | (unless gdb-pending-triggers | 996 | (unless gdb-pending-triggers |
| 997 | (gdb-get-selected-frame) | 997 | (gdb-get-selected-frame) |
| 998 | (gdb-invalidate-frames) | 998 | (gdb-invalidate-frames) |
| 999 | (gdb-invalidate-breakpoints) | 999 | (gdb-invalidate-breakpoints) |
| 1000 | ;; Do this through gdb-get-selected-frame -> gdb-frame-handler | 1000 | ;; Do this through gdb-get-selected-frame -> gdb-frame-handler |
| 1001 | ;; so gdb-frame-address is updated. | 1001 | ;; so gdb-frame-address is updated. |
| 1002 | ;; (gdb-invalidate-assembler) | 1002 | ;; (gdb-invalidate-assembler) |
| 1003 | (gdb-invalidate-registers) | 1003 | (gdb-invalidate-registers) |
| 1004 | (gdb-invalidate-memory) | 1004 | (gdb-invalidate-memory) |
| 1005 | (gdb-invalidate-locals) | 1005 | (gdb-invalidate-locals) |
| 1006 | (gdb-invalidate-threads) | 1006 | (gdb-invalidate-threads) |
| 1007 | (unless (eq system-type 'darwin) ;Breaks on Darwin's GDB-5.3. | 1007 | (unless (eq system-type 'darwin) ;Breaks on Darwin's GDB-5.3. |
| 1008 | ;; FIXME: with GDB-6 on Darwin, this might very well work. | 1008 | ;; FIXME: with GDB-6 on Darwin, this might very well work. |
| 1009 | ;; only needed/used with speedbar/watch expressions | 1009 | ;; only needed/used with speedbar/watch expressions |
| 1010 | (when (and (boundp 'speedbar-frame) (frame-live-p speedbar-frame)) | 1010 | (when (and (boundp 'speedbar-frame) (frame-live-p speedbar-frame)) |
| 1011 | (setq gdb-var-changed t) ; force update | 1011 | (setq gdb-var-changed t) ; force update |
| 1012 | (dolist (var gdb-var-list) | 1012 | (dolist (var gdb-var-list) |
| 1013 | (setcar (nthcdr 5 var) nil)) | 1013 | (setcar (nthcdr 5 var) nil)) |
| 1014 | (gdb-var-update)))) | 1014 | (gdb-var-update)))) |
| 1015 | (let ((sink gdb-output-sink)) | 1015 | (let ((sink gdb-output-sink)) |
| 1016 | (cond | 1016 | (cond |
| 1017 | ((eq sink 'user) t) | 1017 | ((eq sink 'user) t) |
| @@ -1695,7 +1695,9 @@ static char *magick[] = { | |||
| 1695 | (setq buffer-read-only t) | 1695 | (setq buffer-read-only t) |
| 1696 | (use-local-map gdb-registers-mode-map) | 1696 | (use-local-map gdb-registers-mode-map) |
| 1697 | (run-mode-hooks 'gdb-registers-mode-hook) | 1697 | (run-mode-hooks 'gdb-registers-mode-hook) |
| 1698 | 'gdb-invalidate-registers) | 1698 | (if (with-current-buffer gud-comint-buffer (eq gud-minor-mode 'gdba)) |
| 1699 | 'gdb-invalidate-registers | ||
| 1700 | 'gdbmi-invalidate-registers)) | ||
| 1699 | 1701 | ||
| 1700 | (defun gdb-registers-buffer-name () | 1702 | (defun gdb-registers-buffer-name () |
| 1701 | (with-current-buffer gud-comint-buffer | 1703 | (with-current-buffer gud-comint-buffer |