GNU bug report logs - #13569
24.3.50; gdb-control-commands-regexp has a typo

Previous Next

Package: emacs;

Reported by: emacs18 <at> gmail.com

Date: Sun, 27 Jan 2013 21:22:01 UTC

Severity: minor

Merged with 13303, 20807, 32576

Found in versions 24.2.91, 24.3.50, 24.5, 26.1

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 13569 in the body.
You can then email your comments to 13569 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#13569; Package emacs. (Sun, 27 Jan 2013 21:22:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to emacs18 <at> gmail.com:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 27 Jan 2013 21:22:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: emacs18 <at> gmail.com
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.50; gdb-control-commands-regexp has a typo
Date: Sun, 27 Jan 2013 13:21:00 -0800
I use latest bzr trunk and emacs-24 branches on linux.

I believe the following patch should be applied to remove "s" from
"commands" portion of a regexp:

	=== modified file 'lisp/progmodes/gdb-mi.el'
	--- lisp/progmodes/gdb-mi.el	2013-01-11 23:08:55 +0000
	+++ lisp/progmodes/gdb-mi.el	2013-01-27 21:16:01 +0000
	@@ -1680,7 +1680,7 @@
	 (defvar gdb-control-commands-regexp
	   (concat
	    "^\\("
	-   "commands\\|if\\|while\\|define\\|document\\|python\\|"
	+   "command\\|if\\|while\\|define\\|document\\|python\\|"
	    "while-stepping\\|stepping\\|ws\\|actions"
	    "\\)\\([[:blank:]]+.*\\)?$")
	   "Regexp matching GDB commands that enter a recursive reading loop.

Why?  Because without this change, gdb fails to handle the command
"command" incorrectly.  gdb's "command" allows one to associate a gdb
command sequence with a breakpoint.  Following is how it should work
to add "print foo" command for breakpoint number 2 while debugging a C
program:

    (gdb) command 2
    print foo
    end
    (gdb)

where as soon as "end" is typed, "command" should be terminated and
"(gdb) " prompt printed.  Instead of this what happens is that "(gdb)
" prompt is never printed and it acts as if "end" is not treated as
the terminating special command, i.e., this is what I see:

    (gdb) command 2
    print foo
    end

At this point gdb seems hung.  The only way to get back the gdb prompt
is to hit Control-C twice.

This bug has been around for several weeks at least on both emacs-24
and trunk bzr branchs of emacs.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13569; Package emacs. (Sun, 27 Jan 2013 22:18:02 GMT) Full text and rfc822 format available.

Message #8 received at 13569 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: emacs18 <at> gmail.com
Cc: 13569 <at> debbugs.gnu.org
Subject: Re: bug#13569: 24.3.50; gdb-control-commands-regexp has a typo
Date: Sun, 27 Jan 2013 23:16:54 +0100
emacs18 <at> gmail.com, Richard Kim <emacs18 <at> gmail.com> writes:

> Why?  Because without this change, gdb fails to handle the command
> "command" incorrectly.

The command is spelled "commands", but can be abbreviated to anything
between "comm" and "commands".

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13569; Package emacs. (Sun, 27 Jan 2013 22:23:02 GMT) Full text and rfc822 format available.

Message #11 received at 13569 <at> debbugs.gnu.org (full text, mbox):

From: Richard Kim <emacs18 <at> gmail.com>
To: 13569 <at> debbugs.gnu.org
Subject: 24.3.50; gdb-control-commands-regexp has a typo
Date: Sun, 27 Jan 2013 14:22:13 -0800
My suggested change may not be adequate.

The full name of the gdb command in question is "commands".
However gdb allows  any one of these partial spelling of the name:
"comm", "comma", "comman", and "command".

emacs-23 has no problem dealing with any of these partial names.

emacs-24, however, only accepts the full name "commands".
If emacs-24 were to allow all legal shorthands, then "commands" in the regexp
should be replaced with  something like "comm\\(a\\(n\\(ds?\\)?\\)?\\)?".
I hope there is a simpler way to express this.




Forcibly Merged 13569 20807. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 03 Mar 2017 19:58:02 GMT) Full text and rfc822 format available.

Forcibly Merged 13569 20807 32576. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 29 Aug 2018 18:13:01 GMT) Full text and rfc822 format available.

Forcibly Merged 13303 13569 20807 32576. Request was from Noam Postavsky <npostavs <at> gmail.com> to control <at> debbugs.gnu.org. (Wed, 29 Aug 2018 23:16:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 09 Oct 2018 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 314 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.