summaryrefslogtreecommitdiff
path: root/lisp/progmodes/gdb-ui.el
diff options
context:
space:
mode:
authorNick Roberts <nickrob@snap.net.nz>2005-11-24 20:45:50 +0000
committerNick Roberts <nickrob@snap.net.nz>2005-11-24 20:45:50 +0000
commitf3220d3a39b4a04e15ea387166d804e3b61f1e2a (patch)
treecf08282db830ef36a08db9b44f4ba37ca146afea /lisp/progmodes/gdb-ui.el
parente5a690f115a4f8fa678314ab08f33497862ae704 (diff)
downloademacs-f3220d3a39b4a04e15ea387166d804e3b61f1e2a.tar.gz
(gdb-var-create-handler, gdb-var-list-children-handler):
Find values for all variable objects. gud-speedbar-buttons decides whether to display them.
Diffstat (limited to 'lisp/progmodes/gdb-ui.el')
-rw-r--r--lisp/progmodes/gdb-ui.el40
1 files changed, 17 insertions, 23 deletions
diff --git a/lisp/progmodes/gdb-ui.el b/lisp/progmodes/gdb-ui.el
index 3010d3e6561..433252757f5 100644
--- a/lisp/progmodes/gdb-ui.el
+++ b/lisp/progmodes/gdb-ui.el
@@ -532,19 +532,16 @@ With arg, use separate IO iff arg is positive."
(unless (string-equal
speedbar-initial-expansion-list-name "GUD")
(speedbar-change-initial-expansion-list "GUD"))
- (if (or (equal (nth 2 var) "0")
- (and (equal (nth 2 var) "1")
- (string-match "char \\*$" (nth 3 var))))
- (gdb-enqueue-input
- (list
- (if (eq (buffer-local-value 'gud-minor-mode gud-comint-buffer)
- 'gdba)
- (concat "server interpreter mi \"-var-evaluate-expression "
- (nth 1 var) "\"\n")
- (concat "-var-evaluate-expression " (nth 1 var) "\n"))
- `(lambda () (gdb-var-evaluate-expression-handler
- ,(nth 1 var) nil))))
- (setq gdb-var-changed t)))
+ (gdb-enqueue-input
+ (list
+ (if (eq (buffer-local-value 'gud-minor-mode gud-comint-buffer)
+ 'gdba)
+ (concat "server interpreter mi \"-var-evaluate-expression "
+ (nth 1 var) "\"\n")
+ (concat "-var-evaluate-expression " (nth 1 var) "\n"))
+ `(lambda () (gdb-var-evaluate-expression-handler
+ ,(nth 1 var) nil))))
+ (setq gdb-var-changed t))
(if (re-search-forward "Undefined command" nil t)
(message-box "Watching expressions requires gdb 6.0 onwards")
(message "No symbol \"%s\" in current context." expr)))))
@@ -593,16 +590,13 @@ type=\"\\(.*?\\)\"")
(if (string-equal (cadr var1) (cadr varchild))
(throw 'child-already-watched nil)))
(push varchild var-list)
- (if (or (equal (nth 2 varchild) "0")
- (and (equal (nth 2 varchild) "1")
- (string-match "char \\*$" (nth 3 varchild))))
- (gdb-enqueue-input
- (list
- (concat
- "server interpreter mi \"-var-evaluate-expression "
- (nth 1 varchild) "\"\n")
- `(lambda () (gdb-var-evaluate-expression-handler
- ,(nth 1 varchild) nil))))))))
+ (gdb-enqueue-input
+ (list
+ (concat
+ "server interpreter mi \"-var-evaluate-expression "
+ (nth 1 varchild) "\"\n")
+ `(lambda () (gdb-var-evaluate-expression-handler
+ ,(nth 1 varchild) nil)))))))
(push var var-list)))
(setq gdb-var-list (nreverse var-list))))))