This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 2/2]: Fix clean compile on AIX 5.3


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]