From: Hui Zhu <teawater@gmail.com>
To: Tom Tromey <tromey@redhat.com>
Cc: gdb-patches ml <gdb-patches@sourceware.org>
Subject: Re: [PATCH] not trigger pagination with dprintf
Date: Mon, 22 Apr 2013 09:21:00 -0000 [thread overview]
Message-ID: <CANFwon1kWpR9mhGVbzf0qB4GqO89yN+Uj9jGUHpp2-kWWmFC4g@mail.gmail.com> (raw)
In-Reply-To: <87zjwuv0qn.fsf@fleche.redhat.com>
On Sat, Apr 20, 2013 at 2:22 AM, Tom Tromey <tromey@redhat.com> wrote:
>>>>>> "Hui" == Hui Zhu <teawater@gmail.com> writes:
>
> Hui> This is the patch for http://sourceware.org/bugzilla/show_bug.cgi?id=15182
> Hui> I agree with what Marc said in the bug report.
>
> Quoting for clarity:
>
> a) when pagination is triggered, inferior execution will be
> interrupted until the user answers the pagination prompt
>
> b) pagination is triggered by the dprintf but not by real inferior
> output. So, as dprintf and inferior printouts appear interleaved
> on the screen, the pagination prompt will be triggered when the
> dprintfs add up to too many, which will seem random to the user,
> since the other printouts are also visible.
>
>
> I agree these arguments are pretty good, but I don't see why they apply
> particularly to dprintf as opposed to all gdb output. But then the
> result is to just disable all pagination -- something already easily
> done.
>
> So I tend to think this should not go in.
Will you OK if I update patch to make printf_command call ui_printf
with filter is 0 just with dprintf?
Thanks,
Hui
>
> FWIW I have never understood why gdb provides _unfiltered variants of
> the print functions. It seems to me that a stream should either be
> paginated or not -- having it work at the level of the individual print
> means that some prints will provoke paging behavior and some will not;
> and, worse, since they are in fact interleaved, the "paging" output may
> not all be visible anyhow.
>
> Tom
next prev parent reply other threads:[~2013-04-21 9:35 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-19 3:22 Hui Zhu
2013-04-20 8:20 ` Tom Tromey
2013-04-22 9:21 ` Hui Zhu [this message]
2013-04-25 8:02 ` Tom Tromey
2013-04-26 13:55 ` Hui Zhu
2013-04-26 14:14 ` Yao Qi
2013-04-27 11:40 ` Tom Tromey
2013-04-30 11:12 ` Hui Zhu
2013-05-04 4:41 ` Doug Evans
2013-05-07 2:30 ` Hui Zhu
2013-05-07 16:39 ` Eli Zaretskii
2013-05-07 17:01 ` Doug Evans
2013-05-07 18:08 ` Tom Tromey
2013-05-07 18:10 ` Doug Evans
2013-05-07 18:28 ` Eli Zaretskii
2013-05-10 11:21 ` Hui Zhu
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=CANFwon1kWpR9mhGVbzf0qB4GqO89yN+Uj9jGUHpp2-kWWmFC4g@mail.gmail.com \
--to=teawater@gmail.com \
--cc=gdb-patches@sourceware.org \
--cc=tromey@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