* Recent breakage -- disassemble
@ 2003-04-14 18:31 Michael Snyder
2003-04-21 18:55 ` Elena Zannoni
0 siblings, 1 reply; 5+ messages in thread
From: Michael Snyder @ 2003-04-14 18:31 UTC (permalink / raw)
To: gdb-patches
Some time between February 18 and March 24, someone checked in a change
which broke pagination in the disassemble command. Although "list" will
still print out a screen's worth of lines and then pause, "disassemble"
will not.
Sorry I can't pin it down closer than that -- my cvs client is giving me grief.
Michael
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Recent breakage -- disassemble
2003-04-14 18:31 Recent breakage -- disassemble Michael Snyder
@ 2003-04-21 18:55 ` Elena Zannoni
2003-04-22 14:29 ` Elena Zannoni
0 siblings, 1 reply; 5+ messages in thread
From: Elena Zannoni @ 2003-04-21 18:55 UTC (permalink / raw)
To: Michael Snyder; +Cc: gdb-patches
Michael Snyder writes:
> Some time between February 18 and March 24, someone checked in a change
> which broke pagination in the disassemble command. Although "list" will
> still print out a screen's worth of lines and then pause, "disassemble"
> will not.
>
> Sorry I can't pin it down closer than that -- my cvs client is giving me grief.
>
> Michael
Hmmm, this could be due to the new disassembler. The old one was using
printf_filtered while the new one uses ui_out functions. But the
change happened in November 2002. Do a cvs log of printcmd.c. If you
back out those changes, does the problem go away?
elena
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Recent breakage -- disassemble
2003-04-21 18:55 ` Elena Zannoni
@ 2003-04-22 14:29 ` Elena Zannoni
2003-04-23 19:22 ` Michael Snyder
2003-04-23 21:16 ` Andrew Cagney
0 siblings, 2 replies; 5+ messages in thread
From: Elena Zannoni @ 2003-04-22 14:29 UTC (permalink / raw)
To: Michael Snyder; +Cc: gdb-patches
Elena Zannoni writes:
> Michael Snyder writes:
> > Some time between February 18 and March 24, someone checked in a change
> > which broke pagination in the disassemble command. Although "list" will
> > still print out a screen's worth of lines and then pause, "disassemble"
> > will not.
> >
> > Sorry I can't pin it down closer than that -- my cvs client is giving me grief.
> >
> > Michael
>
> Hmmm, this could be due to the new disassembler. The old one was using
> printf_filtered while the new one uses ui_out functions. But the
> change happened in November 2002. Do a cvs log of printcmd.c. If you
> back out those changes, does the problem go away?
>
> elena
Ok, the problem is not that filtered prints were not used, but that
there is code in fputs_maybe_filtered to bypass the filtered print, if
this condition is true:
/* Don't do any filtering if it is disabled. */
if ((stream != gdb_stdout) || !pagination_enabled
|| (lines_per_page == UINT_MAX && chars_per_line == UINT_MAX))
{
fputs_unfiltered (linebuffer, stream);
return;
}
In this case, stream is different from gdb_stdout.
Can you try this patch?
elena
Index: utils.c
===================================================================
RCS file: /cvs/uberbaum/gdb/utils.c,v
retrieving revision 1.99
diff -u -p -r1.99 utils.c
--- utils.c 2 Apr 2003 03:02:46 -0000 1.99
+++ utils.c 22 Apr 2003 14:28:00 -0000
@@ -1887,7 +1887,7 @@ fputs_maybe_filtered (const char *linebu
return;
/* Don't do any filtering if it is disabled. */
- if ((stream != gdb_stdout) || !pagination_enabled
+ if (!ui_file_isatty (stream) || !pagination_enabled
|| (lines_per_page == UINT_MAX && chars_per_line == UINT_MAX))
{
fputs_unfiltered (linebuffer, stream);
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Recent breakage -- disassemble
2003-04-22 14:29 ` Elena Zannoni
@ 2003-04-23 19:22 ` Michael Snyder
2003-04-23 21:16 ` Andrew Cagney
1 sibling, 0 replies; 5+ messages in thread
From: Michael Snyder @ 2003-04-23 19:22 UTC (permalink / raw)
To: Elena Zannoni; +Cc: gdb-patches
Elena Zannoni wrote:
>
> Elena Zannoni writes:
> > Michael Snyder writes:
> > > Some time between February 18 and March 24, someone checked in a change
> > > which broke pagination in the disassemble command. Although "list" will
> > > still print out a screen's worth of lines and then pause, "disassemble"
> > > will not.
> > >
> > > Sorry I can't pin it down closer than that -- my cvs client is giving me grief.
> > >
> > > Michael
> >
> > Hmmm, this could be due to the new disassembler. The old one was using
> > printf_filtered while the new one uses ui_out functions. But the
> > change happened in November 2002. Do a cvs log of printcmd.c. If you
> > back out those changes, does the problem go away?
> >
> > elena
>
> Ok, the problem is not that filtered prints were not used, but that
> there is code in fputs_maybe_filtered to bypass the filtered print, if
> this condition is true:
>
> /* Don't do any filtering if it is disabled. */
> if ((stream != gdb_stdout) || !pagination_enabled
> || (lines_per_page == UINT_MAX && chars_per_line == UINT_MAX))
> {
> fputs_unfiltered (linebuffer, stream);
> return;
> }
>
> In this case, stream is different from gdb_stdout.
>
> Can you try this patch?
Thanks, Elena, your patch makes it work again.
Michael
>
> Index: utils.c
> ===================================================================
> RCS file: /cvs/uberbaum/gdb/utils.c,v
> retrieving revision 1.99
> diff -u -p -r1.99 utils.c
> --- utils.c 2 Apr 2003 03:02:46 -0000 1.99
> +++ utils.c 22 Apr 2003 14:28:00 -0000
> @@ -1887,7 +1887,7 @@ fputs_maybe_filtered (const char *linebu
> return;
>
> /* Don't do any filtering if it is disabled. */
> - if ((stream != gdb_stdout) || !pagination_enabled
> + if (!ui_file_isatty (stream) || !pagination_enabled
> || (lines_per_page == UINT_MAX && chars_per_line == UINT_MAX))
> {
> fputs_unfiltered (linebuffer, stream);
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Recent breakage -- disassemble
2003-04-22 14:29 ` Elena Zannoni
2003-04-23 19:22 ` Michael Snyder
@ 2003-04-23 21:16 ` Andrew Cagney
1 sibling, 0 replies; 5+ messages in thread
From: Andrew Cagney @ 2003-04-23 21:16 UTC (permalink / raw)
To: Elena Zannoni; +Cc: Michael Snyder, gdb-patches
> Ok, the problem is not that filtered prints were not used, but that
> there is code in fputs_maybe_filtered to bypass the filtered print, if
> this condition is true:
>
> /* Don't do any filtering if it is disabled. */
> if ((stream != gdb_stdout) || !pagination_enabled
> || (lines_per_page == UINT_MAX && chars_per_line == UINT_MAX))
> {
> fputs_unfiltered (linebuffer, stream);
> return;
> }
>
> In this case, stream is different from gdb_stdout.
>
> Can you try this patch?
I think this patch has the potential for causing gdb_stdlog and
gdb_stderr to also paginate. ui_file_isatty(gdb_stderr) also returns 1.
Andrew
> Index: utils.c
> ===================================================================
> RCS file: /cvs/uberbaum/gdb/utils.c,v
> retrieving revision 1.99
> diff -u -p -r1.99 utils.c
> --- utils.c 2 Apr 2003 03:02:46 -0000 1.99
> +++ utils.c 22 Apr 2003 14:28:00 -0000
> @@ -1887,7 +1887,7 @@ fputs_maybe_filtered (const char *linebu
> return;
>
> /* Don't do any filtering if it is disabled. */
> - if ((stream != gdb_stdout) || !pagination_enabled
> + if (!ui_file_isatty (stream) || !pagination_enabled
> || (lines_per_page == UINT_MAX && chars_per_line == UINT_MAX))
> {
> fputs_unfiltered (linebuffer, stream);
>
>
>
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-04-23 19:53 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-14 18:31 Recent breakage -- disassemble Michael Snyder
2003-04-21 18:55 ` Elena Zannoni
2003-04-22 14:29 ` Elena Zannoni
2003-04-23 19:22 ` Michael Snyder
2003-04-23 21:16 ` Andrew Cagney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox