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
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Chris January <chris dot january at allinea dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 12 Mar 2012 09:01:45 -0700
- Subject: Re: [PATCH 2/2]: Fix clean compile on AIX 5.3
- References: <1331553669.2783.18.camel@gumtree>
> AIX curses doesn't define 'clear'. It should be #define clear()
> wclear(stdscr), but this is missing from the headers. It can be worked
> around by using erase and clearok, or maybe there is a better way?
>
> 2012-03-12 Chris January <chris.january@allinea.com>
>
> * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
> of clear.
I cannot help on this one, because I don't know curses much. But
I noticed that the filename in the ChangeLog entry was mistyped.
I would have also used a different subject, because some of the Global
Maintainers might skip this patch and leave it to me simply because
it is "AIX"... I suggest you send an email to cancel this patch/thread,
and send a new one with "TUI" in the subject.
> ---
> diff --git a/gdb/tui/tui-win.c b/gdb/tui/tui-win.c
> index b48bf3e..d02cd7a 100644
> --- a/gdb/tui/tui-win.c
> +++ b/gdb/tui/tui-win.c
> @@ -693,7 +693,8 @@ tui_resize_all (void)
> cmd_split_diff++;
> }
> /* Now adjust each window. */
> - clear ();
> + erase ();
> + clearok (curscr, TRUE);
> refresh ();
> switch (cur_layout)
> {
>
--
Joel