unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Stephen Leake <stephen_leake@stephe-leake.org>
Cc: 13303@debbugs.gnu.org
Subject: bug#13303: 24.2.91; gdb under emacs broken for break commands
Date: Sat, 29 Dec 2012 10:17:24 +0200	[thread overview]
Message-ID: <83vcbll1bf.fsf@gnu.org> (raw)
In-Reply-To: <858v8hec6y.fsf@stephe-leake.org>

> Date: Fri, 28 Dec 2012 23:04:21 -0500
> From: Stephen Leake <stephen_leake@stephe-leake.org>
> 
> M-x gdb
> Run gdb (like this): gdb -i=mi hello
> 
> at the gdb prompt, set a breakpoint:
> break hello.c:4
> 
> try to set commands:
> command 1
> 
> should see a prompt, terminate by 'end'. Instead, see:
> (gdb) command 1
> Type commands for breakpoint(s) 1, one per line.
> End with a line saying just "end".

Aren't the last 2 lines the prompt you expected to see?  If not, what
prompt did you expect?  What do you see when you run the same GDB
commands from the shell prompt?

> p argc
> end
> p argc
> end
> (gdb)
> 
> This was terminated by Menu | Signals | EOF

Why did you send EOF?  That command causes the debugger to quit, so
what's the purpose of sending it here?

> On Windows 7, the behavior is slightly different; the '>' prompt is
> visible, but EOF crashes gdb.

Not really a crash, at least on my XP SP3.  It exits after reporting
some weird error message about stdin, which is expected, since Emacs
closes the debugger's stdin file descriptor.  What kind of "crash" did
you see on Windows 7?

Anyway, the annoyance with no "> " prompt on Posix hosts is a known
problem with GDB versions older than 7.5; see bug#11279.  You can work
around it by typing this command at the first GDB prompt:

  (gdb) set interactive-mode off

GDB 7.5 fixed that problem, so upgrading your GDB will remove the need
to use the above work-around.





  reply	other threads:[~2012-12-29  8:17 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-29  4:04 bug#13303: 24.2.91; gdb under emacs broken for break commands Stephen Leake
2012-12-29  8:17 ` Eli Zaretskii [this message]
2012-12-29 12:31   ` Stephen Leake
2012-12-29 12:55     ` Eli Zaretskii
2012-12-29 15:28       ` Stephen Leake
2012-12-29 17:19         ` Eli Zaretskii
2012-12-29 18:40           ` Stephen Leake
2012-12-29 18:56             ` Eli Zaretskii
2012-12-29 17:54         ` 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=83vcbll1bf.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=13303@debbugs.gnu.org \
    --cc=stephen_leake@stephe-leake.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).