diff options
| author | Kim F. Storm | 2004-03-07 00:24:42 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2004-03-07 00:24:42 +0000 |
| commit | 2958481bab509c26b0e2df933facbe9b4ee36ceb (patch) | |
| tree | a981acc448dc0fa4962e9b88e279613f9966d647 | |
| parent | d90ee664e10667b6c929af302ce1d04e3a057fa5 (diff) | |
| download | emacs-2958481bab509c26b0e2df933facbe9b4ee36ceb.tar.gz emacs-2958481bab509c26b0e2df933facbe9b4ee36ceb.zip | |
(gdb-overlay-arrow-position): Add defvar.
(gdb-reset): Reset gdb-overlay-arrow-position marker and remove it
from overlay-arrow-variable-list.
(gdb-assembler-mode): Use add-to-list for gdb-overlay-arrow-position.
| -rw-r--r-- | lisp/gdb-ui.el | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/lisp/gdb-ui.el b/lisp/gdb-ui.el index de566902ec7..456f6b70286 100644 --- a/lisp/gdb-ui.el +++ b/lisp/gdb-ui.el | |||
| @@ -59,6 +59,7 @@ | |||
| 59 | (defvar gdb-var-list nil "List of variables in watch window") | 59 | (defvar gdb-var-list nil "List of variables in watch window") |
| 60 | (defvar gdb-var-changed nil "Non-nil means that gdb-var-list has changed.") | 60 | (defvar gdb-var-changed nil "Non-nil means that gdb-var-list has changed.") |
| 61 | (defvar gdb-buffer-type nil) | 61 | (defvar gdb-buffer-type nil) |
| 62 | (defvar gdb-overlay-arrow-position nil) | ||
| 62 | (defvar gdb-variables '() | 63 | (defvar gdb-variables '() |
| 63 | "A list of variables that are local to the GUD buffer.") | 64 | "A list of variables that are local to the GUD buffer.") |
| 64 | 65 | ||
| @@ -1682,7 +1683,12 @@ This arrangement depends on the value of `gdb-many-windows'." | |||
| 1682 | (gdb-remove-breakpoint-icons (point-min) (point-max) t) | 1683 | (gdb-remove-breakpoint-icons (point-min) (point-max) t) |
| 1683 | (setq gud-minor-mode nil) | 1684 | (setq gud-minor-mode nil) |
| 1684 | (kill-local-variable 'tool-bar-map) | 1685 | (kill-local-variable 'tool-bar-map) |
| 1685 | (setq gud-running nil))))))) | 1686 | (setq gud-running nil)))))) |
| 1687 | (when (markerp gdb-overlay-arrow-position) | ||
| 1688 | (move-marker gdb-overlay-arrow-position nil) | ||
| 1689 | (setq gdb-overlay-arrow-position nil)) | ||
| 1690 | (setq overlay-arrow-variable-list | ||
| 1691 | (delq 'gdb-overlay-arrow-position overlay-arrow-variable-list))) | ||
| 1686 | 1692 | ||
| 1687 | (defun gdb-source-info () | 1693 | (defun gdb-source-info () |
| 1688 | "Find the source file where the program starts and displays it with related | 1694 | "Find the source file where the program starts and displays it with related |
| @@ -1869,9 +1875,9 @@ BUFFER nil or omitted means use the current buffer." | |||
| 1869 | \\{gdb-assembler-mode-map}" | 1875 | \\{gdb-assembler-mode-map}" |
| 1870 | (setq major-mode 'gdb-assembler-mode) | 1876 | (setq major-mode 'gdb-assembler-mode) |
| 1871 | (setq mode-name "Machine") | 1877 | (setq mode-name "Machine") |
| 1872 | (push 'gdb-overlay-arrow-position overlay-arrow-variable-list) | ||
| 1873 | (put 'gdb-overlay-arrow-position 'overlay-arrow-string "=>") | ||
| 1874 | (setq gdb-overlay-arrow-position nil) | 1878 | (setq gdb-overlay-arrow-position nil) |
| 1879 | (add-to-list 'overlay-arrow-variable-list 'gdb-overlay-arrow-position) | ||
| 1880 | (put 'gdb-overlay-arrow-position 'overlay-arrow-string "=>") | ||
| 1875 | (setq fringes-outside-margins t) | 1881 | (setq fringes-outside-margins t) |
| 1876 | (setq buffer-read-only t) | 1882 | (setq buffer-read-only t) |
| 1877 | (use-local-map gdb-assembler-mode-map) | 1883 | (use-local-map gdb-assembler-mode-map) |