From: Vladimir Prus <vladimir@codesourcery.com>
To: gdb-patches@sources.redhat.com
Subject: Re: Always disable pagination with MI?
Date: Wed, 03 Mar 2010 22:09:00 -0000 [thread overview]
Message-ID: <hmmmls$ggv$1@dough.gmane.org> (raw)
In-Reply-To: <201003032138.54319.pedro@codesourcery.com>
Pedro Alves wrote:
> A customer noted that sometimes, when GDB failed to evaluate
> a watchpoint's condition, GDB would leave the inferior
> stopped, but would forget to output a *stopped notification.
> Something like this:
>
> gdb -i=mi ...
> ...
> (gdb)
> &"Error in testing breakpoint condition:\n"
> &"Cannot access memory at address 0x0\n"
> ~"Hardware watchpoint 2: global2\n"
> ~"\n"
>
> ~"Old value = 1\n"
> ~"New value = 2\n"
>
> And nothing else came out. What was really happening, is
> that pagination kicked in at this point, because no pagination
> prompt is visible. If one presses enter when this happens,
> the rest of the expected output, along with *stopped actually
> comes out:
...
> Whoops. I tried this on 6.8 and 7.0 and they behave
> the same. This was probably never right, and I gather that
> most frontends must be disabling pagination
> already: either by explicit "set height 0"/"set pagination off",
> or implicitly by running GDB from a non-tty, and, those that
> want pagination handle it themselves.
Yes, I think that's what frontends do.
>
> Any objections to this?
>
Seems reasonable, FWIW.
- Volodya
next prev parent reply other threads:[~2010-03-03 22:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-03 21:39 Pedro Alves
2010-03-03 21:40 ` Pedro Alves
2010-03-03 21:53 ` Tom Tromey
2010-03-04 5:19 ` Joel Brobecker
2010-03-03 22:09 ` Vladimir Prus [this message]
2010-03-04 17:15 ` Marc Khouzam
2010-03-04 17:33 ` Pedro Alves
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='hmmmls$ggv$1@dough.gmane.org' \
--to=vladimir@codesourcery.com \
--cc=gdb-patches@sources.redhat.com \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox