From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19493 invoked by alias); 8 Aug 2004 12:41:10 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 19486 invoked from network); 8 Aug 2004 12:41:09 -0000 Received: from unknown (HELO walton.kettenis.dyndns.org) (213.93.77.109) by sourceware.org with SMTP; 8 Aug 2004 12:41:09 -0000 Received: from elgar.kettenis.dyndns.org (elgar.kettenis.dyndns.org [192.168.0.2]) by walton.kettenis.dyndns.org (8.12.6p3/8.12.6) with ESMTP id i78Cf7oa003361; Sun, 8 Aug 2004 14:41:07 +0200 (CEST) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: from elgar.kettenis.dyndns.org (localhost [127.0.0.1]) by elgar.kettenis.dyndns.org (8.12.6p3/8.12.6) with ESMTP id i78Cf6SP015125; Sun, 8 Aug 2004 14:41:06 +0200 (CEST) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: (from kettenis@localhost) by elgar.kettenis.dyndns.org (8.12.6p3/8.12.6/Submit) id i78Cf6CZ015122; Sun, 8 Aug 2004 14:41:06 +0200 (CEST) Date: Sun, 08 Aug 2004 12:41:00 -0000 Message-Id: <200408081241.i78Cf6CZ015122@elgar.kettenis.dyndns.org> From: Mark Kettenis To: brobecker@gnat.com CC: gdb-patches@sources.redhat.com In-reply-to: <20040808051420.GH24160@gnat.com> (message from Joel Brobecker on Sat, 7 Aug 2004 22:14:20 -0700) Subject: Re: [RFC/AIX] xm-aix4.h - Move some host-specific stuff References: <20040808051420.GH24160@gnat.com> X-SW-Source: 2004-08/txt/msg00248.txt.bz2 Date: Sat, 7 Aug 2004 22:14:20 -0700 From: Joel Brobecker The last part of config/xm-aix4.h contains the following definitions: | /* Signal handler for SIGWINCH `window size changed'. */ | | #define SIGWINCH_HANDLER aix_resizewindow | extern void aix_resizewindow (int); | | /* `lines_per_page' and `chars_per_line' are local to utils.c. Rectify this. */ | #define SIGWINCH_HANDLER_BODY \ | \ | /* Respond to SIGWINCH `window size changed' signal, and reset GDB's \ | window settings appropriately. */ \ | \ | void \ | aix_resizewindow (signo) \ | int signo; \ | { \ | int fd = fileno (stdout); \ | if (isatty (fd)) { \ | int val; \ | \ | val = atoi (termdef (fd, 'l')); \ | if (val > 0) \ | lines_per_page = val; \ | val = atoi (termdef (fd, 'c')); \ | if (val > 0) \ | chars_per_line = val; \ | } \ | } Nowadays, GDB relies very much on readline to get this right. If readline gets this right on AIX, this bit can simply go. I'm failrly certain readline gets this right on AIX, since readline seems to do exectly what the AIX Technical Reference says that termdef does. Mark