aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Roberts2008-01-03 22:00:06 +0000
committerNick Roberts2008-01-03 22:00:06 +0000
commitae084884d0ec15581963f70e05b5034eb37e53a1 (patch)
treea74f5fd1b5475d6ca6930cbe102a9b1053e88660
parentb3dac3299c8d5e095e89bed036c7f652fc95bc92 (diff)
downloademacs-ae084884d0ec15581963f70e05b5034eb37e53a1.tar.gz
emacs-ae084884d0ec15581963f70e05b5034eb37e53a1.zip
(gud-def): Do nothing if gud-running is t.
(gud-speedbar-menu-items): Add item for gdb-var-set-format below.
-rw-r--r--lisp/progmodes/gud.el15
1 files changed, 11 insertions, 4 deletions
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el
index 5e11b73916e..a047a35ef0c 100644
--- a/lisp/progmodes/gud.el
+++ b/lisp/progmodes/gud.el
@@ -364,9 +364,10 @@ we're in the GUD buffer)."
364 (defun ,func (arg) 364 (defun ,func (arg)
365 ,@(if doc (list doc)) 365 ,@(if doc (list doc))
366 (interactive "p") 366 (interactive "p")
367 ,(if (stringp cmd) 367 (if (not gud-running)
368 `(gud-call ,cmd arg) 368 ,(if (stringp cmd)
369 cmd)) 369 `(gud-call ,cmd arg)
370 cmd)))
370 ,(if key `(local-set-key ,(concat "\C-c" key) ',func)) 371 ,(if key `(local-set-key ,(concat "\C-c" key) ',func))
371 ,(if key `(global-set-key (vconcat gud-key-prefix ,key) ',func)))) 372 ,(if key `(global-set-key (vconcat gud-key-prefix ,key) ',func))))
372 373
@@ -458,7 +459,13 @@ t means that there is no stack, and we are in display-file mode.")
458 ["Auto raise frame" gdb-speedbar-auto-raise 459 ["Auto raise frame" gdb-speedbar-auto-raise
459 :style toggle :selected gdb-speedbar-auto-raise 460 :style toggle :selected gdb-speedbar-auto-raise
460 :visible (memq (buffer-local-value 'gud-minor-mode gud-comint-buffer) 461 :visible (memq (buffer-local-value 'gud-minor-mode gud-comint-buffer)
461 '(gdbmi gdba))]) 462 '(gdbmi gdba))]
463 ("Output Format"
464 :visible (memq (buffer-local-value 'gud-minor-mode gud-comint-buffer)
465 '(gdbmi gdba))
466 ["Binary" (gdb-var-set-format "binary") t]
467 ["Natural" (gdb-var-set-format "natural") t]
468 ["Hexadecimal" (gdb-var-set-format "hexadecimal") t]))
462 "Additional menu items to add to the speedbar frame.") 469 "Additional menu items to add to the speedbar frame.")
463 470
464;; Make sure our special speedbar mode is loaded 471;; Make sure our special speedbar mode is loaded