[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gdb and SIGWINCH

From: Thomas Dickey
Subject: Re: gdb and SIGWINCH
Date: Thu, 24 Sep 2009 18:48:27 -0400 (EDT)

On Thu, 24 Sep 2009, james morris wrote:

On 24/9/2009, "Thomas Dickey" <address@hidden> wrote:

On Thu, 24 Sep 2009, james morris wrote:


gdb shows:

(gdb) handle SIGWINCH
Signal        Stop      Print   Pass to program Description
SIGWINCH      No        No      Yes             Window size changed

but resizing the window still has no effect (KEY_RESIZE is detected in my
code ;-)

I'm not sure what's not working: if your program reads KEY_RESIZE, and
then does a refresh (or another wgetch which does a refresh), ncurses
is supposed to call resizeterm, which resizes stdscr, etc., to fit
in the new LINES/COLS limits.

Yes, that happens normally, but when I run the program in gdb and resize
the window, wgetch never returns KEY_RESIZE.

(Sorry, in an effort to get straight to the point I omitted too much

So it seems that gdb is not passing SIGWINCH to ncurses, despite the
above output claiming it does. As much as I could find on the subject
was this:


Is it still a bug in the Debian gdb, or is there something else which
needs setting within gdb for it to pass SIGWINCH to program?

The bug's not marked closed - I'd have to assume it's not been fixed.

One last question: is this list meant for developers and debuggers of
ncurses rather than developers who wish to use it in their programs?

There's some discussion - which as long as it's topical doesn't seem to
bother people.  (I'm on the lookout for details which may be a bug or
limitation in ncurses).

Thomas E. Dickey

reply via email to

[Prev in Thread] Current Thread [Next in Thread]