From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9058 invoked by alias); 12 Mar 2012 16:02:08 -0000 Received: (qmail 8977 invoked by uid 22791); 12 Mar 2012 16:02:05 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 12 Mar 2012 16:01:52 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 04DAE1C62CD; Mon, 12 Mar 2012 12:01:51 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id txQKvysV+nUe; Mon, 12 Mar 2012 12:01:50 -0400 (EDT) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id C03DA1C62BF; Mon, 12 Mar 2012 12:01:50 -0400 (EDT) Received: by joel.gnat.com (Postfix, from userid 1000) id DA55A145615; Mon, 12 Mar 2012 09:01:45 -0700 (PDT) Date: Mon, 12 Mar 2012 16:02:00 -0000 From: Joel Brobecker To: Chris January Cc: gdb-patches@sourceware.org Subject: Re: [PATCH 2/2]: Fix clean compile on AIX 5.3 Message-ID: <20120312160145.GM2853@adacore.com> References: <1331553669.2783.18.camel@gumtree> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1331553669.2783.18.camel@gumtree> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-03/txt/msg00407.txt.bz2 > 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 > > * 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