diff options
author | Miles Bader <miles@gnu.org> | 2008-01-08 20:46:54 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 2008-01-08 20:46:54 +0000 |
commit | 59ce725a3b68cbc324f01bc8dc5f9e07286431d1 (patch) | |
tree | c17b8f002edf6892e273ff53214b1b23c880e69f /lisp/progmodes/gdb-ui.el | |
parent | 0664ff722152f34c2e87e9e644bbab401530b9d4 (diff) | |
parent | bf515869577b12abd42777fb0647259920c862fc (diff) | |
download | emacs-59ce725a3b68cbc324f01bc8dc5f9e07286431d1.tar.gz emacs-59ce725a3b68cbc324f01bc8dc5f9e07286431d1.tar.bz2 emacs-59ce725a3b68cbc324f01bc8dc5f9e07286431d1.zip |
Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
Diffstat (limited to 'lisp/progmodes/gdb-ui.el')
-rw-r--r-- | lisp/progmodes/gdb-ui.el | 28 |
1 files changed, 21 insertions, 7 deletions
diff --git a/lisp/progmodes/gdb-ui.el b/lisp/progmodes/gdb-ui.el index 32db8850b66..eee68fb2b6f 100644 --- a/lisp/progmodes/gdb-ui.el +++ b/lisp/progmodes/gdb-ui.el @@ -4,7 +4,7 @@ ;; Maintainer: FSF ;; Keywords: unix, tools -;; Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 +;; Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 ;; Free Software Foundation, Inc. ;; This file is part of GNU Emacs. @@ -881,11 +881,23 @@ type_changed=\".*?\".*?}") (setq gdb-pending-triggers (delq 'gdb-var-update gdb-pending-triggers))) +(defun gdb-var-set-format (format) + "Set the output format for a variable displayed in the speedbar." + (let* ((var (nth (- (count-lines (point-min) (point)) 2) gdb-var-list)) + (varnum (car var))) + (gdb-enqueue-input + (list + (if (eq (buffer-local-value 'gud-minor-mode gud-comint-buffer) 'gdba) + (concat "server interpreter mi \"-var-set-format " + varnum " " format "\"\n") + (concat "-var-set-format " varnum " " format "\n")) + 'ignore)) + (gdb-var-update-1))) + (defun gdb-var-delete-1 (varnum) (gdb-enqueue-input (list - (if (eq (buffer-local-value 'gud-minor-mode gud-comint-buffer) - 'gdba) + (if (eq (buffer-local-value 'gud-minor-mode gud-comint-buffer) 'gdba) (concat "server interpreter mi \"-var-delete " varnum "\"\n") (concat "-var-delete " varnum "\n")) 'ignore)) @@ -1244,7 +1256,9 @@ This filter may simply queue input for a later time." ;; (defcustom gud-gdb-command-name "gdb --annotate=3" - "Default command to execute an executable under the GDB debugger." + "Default command to execute an executable under the GDB debugger. +The option \"--annotate=3\" must be included in this value if you +want the GDB Graphical Interface." :type 'string :group 'gud :version "22.1") @@ -3473,9 +3487,9 @@ is set in them." (gdb-enqueue-input (list (if (eq (buffer-local-value 'gud-minor-mode gud-comint-buffer) 'gdba) - (concat "server interpreter mi \"-var-list-children --all-values " - varnum "\"\n") - (concat "-var-list-children --all-values " varnum "\n")) + (concat "server interpreter mi \"-var-list-children --all-values \\\"" + varnum "\\\"\"\n") + (concat "-var-list-children --all-values \"" varnum "\"\n")) `(lambda () (gdb-var-list-children-handler-1 ,varnum))))) (defconst gdb-var-list-children-regexp-1 |