From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4881 invoked by alias); 16 Mar 2012 11:25:57 -0000 Received: (qmail 4859 invoked by uid 22791); 16 Mar 2012 11:25:54 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.allinea.com (HELO mail.allinea.com) (94.125.131.200) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 16 Mar 2012 11:25:40 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.allinea.com (Postfix) with ESMTP id A90F612E287; Fri, 16 Mar 2012 11:25:39 +0000 (GMT) Received: from mail.allinea.com ([127.0.0.1]) by localhost (mail.allinea.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JOoaZvKAthLz; Fri, 16 Mar 2012 11:25:39 +0000 (GMT) Received: from [192.168.0.6] (cpc11-sotn9-2-0-cust158.15-1.cable.virginmedia.com [81.101.103.159]) (Authenticated sender: cjanuary) by mail.allinea.com (Postfix) with ESMTPSA id 40A0912E226; Fri, 16 Mar 2012 11:25:39 +0000 (GMT) Message-ID: <1331897138.2787.4.camel@gumtree> Subject: Re: [PATCH 2/2]: Fix clean compile on AIX 5.3 From: Chris January To: Joel Brobecker Cc: Tom Tromey , gdb-patches@sourceware.org Date: Fri, 16 Mar 2012 11:25:00 -0000 In-Reply-To: <20120312205214.GP2853@adacore.com> References: <1331553669.2783.18.camel@gumtree> <20120312160145.GM2853@adacore.com> <87wr6pob06.fsf@fleche.redhat.com> <20120312205214.GP2853@adacore.com> Content-Type: multipart/mixed; boundary="=-ZN3VZ97pif1LjDZqD5L9" Mime-Version: 1.0 X-IsSubscribed: yes 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/msg00601.txt.bz2 --=-ZN3VZ97pif1LjDZqD5L9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Content-length: 321 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. --=-ZN3VZ97pif1LjDZqD5L9 Content-Disposition: attachment; filename="aix-compile-2.patch" Content-Type: text/x-patch; name="aix-compile-2.patch"; charset="UTF-8" Content-Transfer-Encoding: 7bit Content-length: 489 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) { --=-ZN3VZ97pif1LjDZqD5L9--