Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
f8fef1ce
Commit
f8fef1ce
authored
Oct 30, 2007
by
Nick Roberts
Browse files
(gdb-delete-out-of-scope): New option.
(gdb-var-update-handler-1): Use it.
parent
213363d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
lisp/progmodes/gdb-ui.el
lisp/progmodes/gdb-ui.el
+9
-1
No files found.
lisp/progmodes/gdb-ui.el
View file @
f8fef1ce
...
...
@@ -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)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment