diff options
author | Miles Bader <miles@gnu.org> | 2007-11-09 09:45:30 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 2007-11-09 09:45:30 +0000 |
commit | c12ecb0af9679cc0e2fa0409931c34c035763469 (patch) | |
tree | bd118c7ebc571de0dab542f48ad0c1648c6ccf72 /lisp/progmodes/gdb-ui.el | |
parent | e83d1fe87564d06d2fcbb4006dfd9133bc340aa8 (diff) | |
parent | 9d2185d10e3da9062672d96d3b59fcea31ff17ed (diff) | |
download | emacs-c12ecb0af9679cc0e2fa0409931c34c035763469.tar.gz |
Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-923
Diffstat (limited to 'lisp/progmodes/gdb-ui.el')
-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'." :group 'gud :version "22.1") +(defcustom gdb-delete-out-of-scope t + "If non-nil delete watch expressions automatically when they go out of scope." + :type 'boolean + :group 'gud + :version "22.2") + (defun gdb-speedbar-expand-node (text token indent) "Expand the node the user clicked on. TEXT is the text of the button we clicked on, a + or - item. @@ -3515,7 +3521,9 @@ in_scope=\"\\(.*?\\)\".*?}") (when var (let ((match (match-string 3))) (cond ((string-equal match "false") - (setcar (nthcdr 5 var) 'out-of-scope)) + (if gdb-delete-out-of-scope + (gdb-var-delete-1 varnum) + (setcar (nthcdr 5 var) 'out-of-scope))) ((string-equal match "true") (setcar (nthcdr 5 var) 'changed) (setcar (nthcdr 4 var) |