[Top][All Lists]

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

Re: gdb and SIGWINCH

From: james morris
Subject: Re: gdb and SIGWINCH
Date: Thu, 24 Sep 2009 23:18:18 +0100 (BST)

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

>On Thu, 24 Sep 2009, james morris wrote:
>> Hi,
>> 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?

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


reply via email to

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