unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Wang Diancheng <dianchengwang@gmail.com>
To: 64590@debbugs.gnu.org
Subject: bug#64590: Patch: fix gud-go in gdb-mi.el
Date: Thu, 13 Jul 2023 12:40:58 +0800	[thread overview]
Message-ID: <CADmgXh7-cOweW4muwS=Adn70RxxncHozKKdVWXcvapbdFJ2zvg@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 290 bytes --]

Hi,
document of gud-go says "Start or continue execution.  Use a prefix to
specify arguments." but it always prompts for program arguments
regardless of whether "C-u" is pressed because arg is numeric prefix
here. The attachment is a patch to change gud-go just prompts if
prefix is not 1.

[-- Attachment #2: gud-go.patch --]
[-- Type: text/x-patch, Size: 830 bytes --]

diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el
index 199be3318a1..e81c1452c55 100644
--- a/lisp/progmodes/gdb-mi.el
+++ b/lisp/progmodes/gdb-mi.el
@@ -987,14 +987,14 @@ gdb
 	   "\C-u" "Continue to current line or address.")
   (gud-def
    gud-go (progn
-            (when arg
+            (when (/= arg 1)
               (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.")
+   "\C-v" "Start or continue execution.  Use a prefix other than 1 to specify arguments.")
 
   ;; For debugging Emacs only.
   (gud-def gud-pp

             reply	other threads:[~2023-07-13  4:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-13  4:40 Wang Diancheng [this message]
2023-07-13  8:58 ` bug#64590: Patch: fix gud-go in gdb-mi.el Eli Zaretskii
2023-07-14  3:06   ` Wang Diancheng
2023-07-15  8:42     ` Eli Zaretskii
2023-07-17  9:07       ` Wang Diancheng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADmgXh7-cOweW4muwS=Adn70RxxncHozKKdVWXcvapbdFJ2zvg@mail.gmail.com' \
    --to=dianchengwang@gmail.com \
    --cc=64590@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).