diff options
| author | Nick Roberts | 2007-10-30 05:37:34 +0000 |
|---|---|---|
| committer | Nick Roberts | 2007-10-30 05:37:34 +0000 |
| commit | f8fef1ceba37a07880182bb8f682a2bb4670fcc1 (patch) | |
| tree | 55b0d42b7717887b6789f5901a588aafc36f062b | |
| parent | 213363d6dc6c634bb5da550ab00b25a410d5d256 (diff) | |
| download | emacs-f8fef1ceba37a07880182bb8f682a2bb4670fcc1.tar.gz emacs-f8fef1ceba37a07880182bb8f682a2bb4670fcc1.zip | |
(gdb-delete-out-of-scope): New option.
(gdb-var-update-handler-1): Use it.
| -rw-r--r-- | lisp/progmodes/gdb-ui.el | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lisp/progmodes/gdb-ui.el b/lisp/progmodes/gdb-ui.el index c6ae98c5b12..0d1a4b05d65 100644 --- a/lisp/progmodes/gdb-ui.el +++ b/lisp/progmodes/gdb-ui.el | |||
| @@ -947,6 +947,12 @@ Changed values are highlighted with the face `font-lock-warning-face'." | |||
| 947 | :group 'gud | 947 | :group 'gud |
| 948 | :version "22.1") | 948 | :version "22.1") |
| 949 | 949 | ||
| 950 | (defcustom gdb-delete-out-of-scope t | ||
| 951 | "If non-nil delete watch expressions automatically when they go out of scope." | ||
| 952 | :type 'boolean | ||
| 953 | :group 'gud | ||
| 954 | :version "22.2") | ||
| 955 | |||
| 950 | (defun gdb-speedbar-expand-node (text token indent) | 956 | (defun gdb-speedbar-expand-node (text token indent) |
| 951 | "Expand the node the user clicked on. | 957 | "Expand the node the user clicked on. |
| 952 | TEXT is the text of the button we clicked on, a + or - item. | 958 | TEXT is the text of the button we clicked on, a + or - item. |
| @@ -3515,7 +3521,9 @@ in_scope=\"\\(.*?\\)\".*?}") | |||
| 3515 | (when var | 3521 | (when var |
| 3516 | (let ((match (match-string 3))) | 3522 | (let ((match (match-string 3))) |
| 3517 | (cond ((string-equal match "false") | 3523 | (cond ((string-equal match "false") |
| 3518 | (setcar (nthcdr 5 var) 'out-of-scope)) | 3524 | (if gdb-delete-out-of-scope |
| 3525 | (gdb-var-delete-1 varnum) | ||
| 3526 | (setcar (nthcdr 5 var) 'out-of-scope))) | ||
| 3519 | ((string-equal match "true") | 3527 | ((string-equal match "true") |
| 3520 | (setcar (nthcdr 5 var) 'changed) | 3528 | (setcar (nthcdr 5 var) 'changed) |
| 3521 | (setcar (nthcdr 4 var) | 3529 | (setcar (nthcdr 4 var) |