1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-06 11:55:48 +00:00

Bind gud-go and allow the prefix to enter arguments

* lisp/progmodes/gdb-mi.el (gdb): Bind gud-go to `C-c C-v' and
allow a prefix to enter arguments (bug#10106).
This commit is contained in:
Lars Ingebrigtsen 2022-05-11 14:26:53 +02:00
parent ed1a24b4b2
commit 61046ffbec
2 changed files with 14 additions and 5 deletions

View File

@ -786,6 +786,11 @@ so automatically.
* Changes in Specialized Modes and Packages in Emacs 29.1
---
*** 'gud-go' is now bound to 'C-c C-v'.
If given a prefix, it will query the user for an argument to use for
the run/continue command.
** Customize
---

View File

@ -955,12 +955,16 @@ detailed description of this mode.
(forward-char 2)
(gud-call "-exec-until *%a" arg)))
"\C-u" "Continue to current line or address.")
;; TODO Why arg here?
(gud-def
gud-go (gud-call (if gdb-active-process
(gdb-gud-context-command "-exec-continue")
"-exec-run") arg)
nil "Start or continue execution.")
gud-go (progn
(when arg
(gud-call (concat "-exec-arguments "
(read-string "Arguments to exec-run: "))))
(gud-call
(if gdb-active-process
(gdb-gud-context-command "-exec-continue")
"-exec-run")))
"C-v" "Start or continue execution. Use a prefix to specify arguments.")
;; For debugging Emacs only.
(gud-def gud-pp