This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 2/2]: Fix clean compile on AIX 5.3
On Mon, 2012-03-12 at 13:52 -0700, Joel Brobecker wrote:
> > Me neither really, but a little reading convinced me that clear == erase
> > + clearok; so this patch is ok.
>
> Perhaps a quick comment explaining that the two calls should not be
> replaced by a "straightforward" call to "clear"?
Done. New patch attached.
diff --git a/gdb/tui/tui-win.c b/gdb/tui/tui-win.c
index b48bf3e..ea868c6 100644
--- a/gdb/tui/tui-win.c
+++ b/gdb/tui/tui-win.c
@@ -693,7 +693,10 @@ tui_resize_all (void)
cmd_split_diff++;
}
/* Now adjust each window. */
- clear ();
+ /* erase + clearok are used instead of a straightforward clear as
+ AIX 5.3 does not define clear. */
+ erase ();
+ clearok (curscr, TRUE);
refresh ();
switch (cur_layout)
{