aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/gud.el14
1 files changed, 12 insertions, 2 deletions
diff --git a/lisp/gud.el b/lisp/gud.el
index 6d192081719..00117829bbc 100644
--- a/lisp/gud.el
+++ b/lisp/gud.el
@@ -122,7 +122,14 @@ Used to grey out relevant toolbar icons.")
122 :enable (and (not gud-running) 122 :enable (and (not gud-running)
123 (memq gud-minor-mode 123 (memq gud-minor-mode
124 '(gdba gdb xdb jdb pdb bashdb)))) 124 '(gdba gdb xdb jdb pdb bashdb))))
125 ([stepi] "Step Instruction" . gud-stepi) 125 ([stepi] menu-item "Step Instruction" gud-stepi
126 :enable (and (not gud-running)
127 (memq gud-minor-mode
128 '(gdba gdb dbx))))
129 ([nexti] menu-item "Next Instruction" gud-nexti
130 :enable (and (not gud-running)
131 (memq gud-minor-mode
132 '(gdba gdb))))
126 ([step] menu-item "Step Line" gud-step 133 ([step] menu-item "Step Line" gud-step
127 :enable (not gud-running)) 134 :enable (not gud-running))
128 ([next] menu-item "Next Line" gud-next 135 ([next] menu-item "Next Line" gud-next
@@ -158,6 +165,8 @@ Used to grey out relevant toolbar icons.")
158 (gud-step . "gud-step") 165 (gud-step . "gud-step")
159 (gud-next . "gud-next") 166 (gud-next . "gud-next")
160 (gud-finish . "gud-finish") 167 (gud-finish . "gud-finish")
168 (gud-stepi . "gud-stepi")
169 (gud-nexti . "gud-nexti")
161 (gud-up . "gud-up") 170 (gud-up . "gud-up")
162 (gud-down . "gud-down")) 171 (gud-down . "gud-down"))
163 map) 172 map)
@@ -465,6 +474,7 @@ and source-file directory for your debugger."
465 (gud-def gud-step "step %p" "\C-s" "Step one source line with display.") 474 (gud-def gud-step "step %p" "\C-s" "Step one source line with display.")
466 (gud-def gud-stepi "stepi %p" "\C-i" "Step one instruction with display.") 475 (gud-def gud-stepi "stepi %p" "\C-i" "Step one instruction with display.")
467 (gud-def gud-next "next %p" "\C-n" "Step one line (skip functions).") 476 (gud-def gud-next "next %p" "\C-n" "Step one line (skip functions).")
477 (gud-def gud-nexti "nexti %p" nil "Step one instruction (skip functions).")
468 (gud-def gud-cont "cont" "\C-r" "Continue with display.") 478 (gud-def gud-cont "cont" "\C-r" "Continue with display.")
469 (gud-def gud-finish "finish" "\C-f" "Finish executing current function.") 479 (gud-def gud-finish "finish" "\C-f" "Finish executing current function.")
470 (gud-def gud-jump "tbreak %f:%l\njump %f:%l" "\C-j" "Relocate execution address to line at point in source buffer.") 480 (gud-def gud-jump "tbreak %f:%l\njump %f:%l" "\C-j" "Relocate execution address to line at point in source buffer.")
@@ -472,7 +482,7 @@ and source-file directory for your debugger."
472 (gud-def gud-up "up %p" "<" "Up N stack frames (numeric arg).") 482 (gud-def gud-up "up %p" "<" "Up N stack frames (numeric arg).")
473 (gud-def gud-down "down %p" ">" "Down N stack frames (numeric arg).") 483 (gud-def gud-down "down %p" ">" "Down N stack frames (numeric arg).")
474 (gud-def gud-print "print %e" "\C-p" "Evaluate C expression at point.") 484 (gud-def gud-print "print %e" "\C-p" "Evaluate C expression at point.")
475 (gud-def gud-until "until %l" "\C-u" "Continue up to current line.") 485 (gud-def gud-until "until %l" "\C-u" "Continue to current line.")
476 (gud-def gud-run "run" nil "Run the program.") 486 (gud-def gud-run "run" nil "Run the program.")
477 487
478 (local-set-key "\C-i" 'gud-gdb-complete-command) 488 (local-set-key "\C-i" 'gud-gdb-complete-command)