]> code.delx.au - gnu-emacs/commitdiff
(gud-jump): Rework for gdb-ui.
authorNick Roberts <nickrob@snap.net.nz>
Tue, 16 Aug 2005 09:31:31 +0000 (09:31 +0000)
committerNick Roberts <nickrob@snap.net.nz>
Tue, 16 Aug 2005 09:31:31 +0000 (09:31 +0000)
lisp/progmodes/gud.el

index 22b0b7b36d62a5af540dfb89d8e714fb5d98c06b..21f61ec1dc854460d37b404486587eba38687c94 100644 (file)
@@ -586,7 +586,9 @@ and source-file directory for your debugger."
   (gud-def gud-nexti  "nexti %p"      nil   "Step one instruction (skip functions).")
   (gud-def gud-cont   "cont"         "\C-r" "Continue with display.")
   (gud-def gud-finish "finish"       "\C-f" "Finish executing current function.")
-  (gud-def gud-jump   "tbreak %f:%l\njump %f:%l" "\C-j" "Relocate execution address to line at point in source buffer.")
+  (gud-def gud-jump
+          (progn (gud-call "tbreak %f:%l") (gud-call "jump %f:%l"))
+          "\C-j" "Set execution address to current line.")
 
   (gud-def gud-up     "up %p"        "<" "Up N stack frames (numeric arg).")
   (gud-def gud-down   "down %p"      ">" "Down N stack frames (numeric arg).")