aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Roberts2005-11-10 19:25:59 +0000
committerNick Roberts2005-11-10 19:25:59 +0000
commita3caa4de72612c7172f7849f0c5e02f5c24fb6f7 (patch)
tree0b4a0891ed080338a1f7ec5ef651a341f87348f5
parent46faf25e00867296c01a6ae08f1cb3e885ae5aa3 (diff)
downloademacs-a3caa4de72612c7172f7849f0c5e02f5c24fb6f7.tar.gz
emacs-a3caa4de72612c7172f7849f0c5e02f5c24fb6f7.zip
(gud-menu-map): Move parentheses.
(gdb): New command gud-pv.
-rw-r--r--lisp/progmodes/gud.el40
1 files changed, 22 insertions, 18 deletions
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el
index d5904a83ac9..0365ed1d4f7 100644
--- a/lisp/progmodes/gud.el
+++ b/lisp/progmodes/gud.el
@@ -138,12 +138,12 @@ Used to grey out relevant togolbar icons.")
138 (memq gud-minor-mode '(gdbmi gdba gdb perldb))) 138 (memq gud-minor-mode '(gdbmi gdba gdb perldb)))
139 :visible (not (and (memq gud-minor-mode '(gdbmi gdba)) 139 :visible (not (and (memq gud-minor-mode '(gdbmi gdba))
140 (> (car (window-fringes 140 (> (car (window-fringes
141 (get-buffer-window (current-buffer))) 0))))) 141 (get-buffer-window (current-buffer)))) 0))))
142 ([remove] menu-item "Remove Breakpoint" gud-remove 142 ([remove] menu-item "Remove Breakpoint" gud-remove
143 :enable (not gud-running) 143 :enable (not gud-running)
144 :visible (not (and (memq gud-minor-mode '(gdbmi gdba)) 144 :visible (not (and (memq gud-minor-mode '(gdbmi gdba))
145 (> (car (window-fringes 145 (> (car (window-fringes
146 (get-buffer-window (current-buffer))) 0))))) 146 (get-buffer-window (current-buffer)))) 0))))
147 ([tbreak] menu-item "Temporary Breakpoint" gud-tbreak 147 ([tbreak] menu-item "Temporary Breakpoint" gud-tbreak
148 :enable (memq gud-minor-mode 148 :enable (memq gud-minor-mode
149 '(gdbmi gdba gdb sdb xdb bashdb))) 149 '(gdbmi gdba gdb sdb xdb bashdb)))
@@ -151,7 +151,7 @@ Used to grey out relevant togolbar icons.")
151 :enable (not gud-running) 151 :enable (not gud-running)
152 :visible (not (and (memq gud-minor-mode '(gdbmi gdba)) 152 :visible (not (and (memq gud-minor-mode '(gdbmi gdba))
153 (> (car (window-fringes 153 (> (car (window-fringes
154 (get-buffer-window (current-buffer))) 0))))) 154 (get-buffer-window (current-buffer)))) 0))))
155 ([up] menu-item "Up Stack" gud-up 155 ([up] menu-item "Up Stack" gud-up
156 :enable (and (not gud-running) 156 :enable (and (not gud-running)
157 (memq gud-minor-mode 157 (memq gud-minor-mode
@@ -607,27 +607,31 @@ and source-file directory for your debugger."
607 (set (make-local-variable 'gud-minor-mode) 'gdb) 607 (set (make-local-variable 'gud-minor-mode) 'gdb)
608 608
609 (gud-def gud-break "break %f:%l" "\C-b" "Set breakpoint at current line.") 609 (gud-def gud-break "break %f:%l" "\C-b" "Set breakpoint at current line.")
610 (gud-def gud-tbreak "tbreak %f:%l" "\C-t" "Set temporary breakpoint at current line.") 610 (gud-def gud-tbreak "tbreak %f:%l" "\C-t"
611 (gud-def gud-remove "clear %f:%l" "\C-d" "Remove breakpoint at current line") 611 "Set temporary breakpoint at current line.")
612 (gud-def gud-step "step %p" "\C-s" "Step one source line with display.") 612 (gud-def gud-remove "clear %f:%l" "\C-d" "Remove breakpoint at current line")
613 (gud-def gud-stepi "stepi %p" "\C-i" "Step one instruction with display.") 613 (gud-def gud-step "step %p" "\C-s" "Step one source line with display.")
614 (gud-def gud-next "next %p" "\C-n" "Step one line (skip functions).") 614 (gud-def gud-stepi "stepi %p" "\C-i" "Step one instruction with display.")
615 (gud-def gud-nexti "nexti %p" nil "Step one instruction (skip functions).") 615 (gud-def gud-next "next %p" "\C-n" "Step one line (skip functions).")
616 (gud-def gud-cont "cont" "\C-r" "Continue with display.") 616 (gud-def gud-nexti "nexti %p" nil "Step one instruction (skip functions).")
617 (gud-def gud-finish "finish" "\C-f" "Finish executing current function.") 617 (gud-def gud-cont "cont" "\C-r" "Continue with display.")
618 (gud-def gud-finish "finish" "\C-f" "Finish executing current function.")
618 (gud-def gud-jump 619 (gud-def gud-jump
619 (progn (gud-call "tbreak %f:%l") (gud-call "jump %f:%l")) 620 (progn (gud-call "tbreak %f:%l") (gud-call "jump %f:%l"))
620 "\C-j" "Set execution address to current line.") 621 "\C-j" "Set execution address to current line.")
621 622
622 (gud-def gud-up "up %p" "<" "Up N stack frames (numeric arg).") 623 (gud-def gud-up "up %p" "<" "Up N stack frames (numeric arg).")
623 (gud-def gud-down "down %p" ">" "Down N stack frames (numeric arg).") 624 (gud-def gud-down "down %p" ">" "Down N stack frames (numeric arg).")
624 (gud-def gud-print "print %e" "\C-p" "Evaluate C expression at point.") 625 (gud-def gud-print "print %e" "\C-p" "Evaluate C expression at point.")
625 (gud-def gud-pstar "print* %e" nil 626 (gud-def gud-pstar "print* %e" nil
626 "Evaluate C dereferenced pointer expression at point.") 627 "Evaluate C dereferenced pointer expression at point.")
628
627 ;; For debugging Emacs only. 629 ;; For debugging Emacs only.
628 (gud-def gud-pp "pp1 %e" nil "Print the emacs s-expression.") 630 (gud-def gud-pp "pp1 %e" nil "Print the emacs s-expression.")
629 (gud-def gud-until "until %l" "\C-u" "Continue to current line.") 631 (gud-def gud-pv "pv1 %e" "\C-v" "Print the value of the lisp variable.")
630 (gud-def gud-run "run" nil "Run the program.") 632
633 (gud-def gud-until "until %l" "\C-u" "Continue to current line.")
634 (gud-def gud-run "run" nil "Run the program.")
631 635
632 (local-set-key "\C-i" 'gud-gdb-complete-command) 636 (local-set-key "\C-i" 'gud-gdb-complete-command)
633 (setq comint-prompt-regexp "^(.*gdb[+]?) *") 637 (setq comint-prompt-regexp "^(.*gdb[+]?) *")