Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Mark Kettenis <kettenis@chello.nl>
To: brobecker@gnat.com
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFC/AIX] xm-aix4.h - Move some host-specific stuff
Date: Sun, 08 Aug 2004 12:41:00 -0000	[thread overview]
Message-ID: <200408081241.i78Cf6CZ015122@elgar.kettenis.dyndns.org> (raw)
In-Reply-To: <20040808051420.GH24160@gnat.com> (message from Joel Brobecker on Sat, 7 Aug 2004 22:14:20 -0700)

   Date: Sat, 7 Aug 2004 22:14:20 -0700
   From: Joel Brobecker <brobecker@gnat.com>

   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


      reply	other threads:[~2004-08-08 12:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-08  5:14 Joel Brobecker
2004-08-08 12:41 ` Mark Kettenis [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200408081241.i78Cf6CZ015122@elgar.kettenis.dyndns.org \
    --to=kettenis@chello.nl \
    --cc=brobecker@gnat.com \
    --cc=gdb-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox