From: Ryan Johnson <ryan.johnson@cs.utoronto.ca>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: gdb "command" broken with -mi
Date: Tue, 20 Aug 2013 11:03:51 -0400 [thread overview]
Message-ID: <52138557.7010200@cs.utoronto.ca> (raw)
In-Reply-To: <834nakl9ab.fsf@gnu.org>
On 20/08/2013 10:35 AM, Eli Zaretskii wrote:
>> Date: Tue, 20 Aug 2013 08:55:54 -0400
>> From: Ryan Johnson <ryan.johnson@cs.utoronto.ca>
>>
>> I noticed during a recent debug session that gdb's "command" command
>> (setting actions to perform when a breakpoint triggers) doesn't work.
>> You can start to enter the list of commands, but emacs ignores the "end"
>> keyword that should terminate the list, forcing you to cancel the
>> attempt with C-c C-c.
>>
>> Is this a known issue?
> This used to be a problem in older versions of Emacs, but it was fixed
> more than a year ago, and all versions of Emacs from 24.3 (inclusive)
> onwards should not fail this way. What version of Emacs are you
> using?
>
> FWIW, I've just tried this in yesterday's trunk, and it works for me
> in a simple test case.
I'm using 24.3.2 with Ken's cygwin patches.
The STC is:
1. gcc -g -ostc -xc <(echo "int main() { return 0; }")
2. Fire up emacs M-x gdb and point it at stc
3. b main
4. comm 1
> Reading symbols from /home/Ryan/experiments/a.exe...done.
> (gdb) b main
> Breakpoint 1 at 0x1004010dd: file stc.c, line 2.
> (gdb) comm 1
> Type commands for breakpoint(s) 1, one per line.
> End with a line saying just "end".
> >p $pc
> >end
> >
> >
> > C-c C-cQuit
> (gdb)
If it's fixed in later versions, though, maybe Ken's (hopefully
soon-arriving) cygwin package update that fixes the stack overflow
problem will also pick up this fix.
Thanks,
Ryan
next prev parent reply other threads:[~2013-08-20 15:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-20 12:55 gdb "command" broken with -mi Ryan Johnson
2013-08-20 14:35 ` Eli Zaretskii
2013-08-20 15:03 ` Ryan Johnson [this message]
2013-08-20 15:38 ` Liang Wang
2013-08-20 15:54 ` Eli Zaretskii
2013-08-20 15:58 ` Ryan Johnson
2013-08-20 15:49 ` Eli Zaretskii
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=52138557.7010200@cs.utoronto.ca \
--to=ryan.johnson@cs.utoronto.ca \
--cc=eliz@gnu.org \
--cc=emacs-devel@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).