public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [patch] Call tui_resize_all() after a resize
@ 2010-07-21 20:53 Balazs Kezes
  2010-07-27 14:38 ` Pedro Alves
  0 siblings, 1 reply; 3+ messages in thread
From: Balazs Kezes @ 2010-07-21 20:53 UTC (permalink / raw)
  To: gdb-patches

Currently tui_resize_all is never called. This could be called from the
SIGWINCH handler but because the resize logic is a bit complex it is safer
to mark a global variable and call this function later. The marking in the
handler is already in the code.
The global variable is currently also marked in this tui_resize_all so this
patch removes it from there.

--
Balazs

Index: tui-io.c
===================================================================
RCS file: /cvs/src/src/gdb/tui/tui-io.c,v
retrieving revision 1.23
diff -c -p -r1.23 tui-io.c
*** tui-io.c	25 May 2010 15:48:44 -0000	1.23
--- tui-io.c	21 Jul 2010 20:34:54 -0000
*************** tui_handle_resize_during_io (unsigned in
*** 711,716 ****
--- 711,717 ----
  {
    if (tui_win_resized ())
      {
+       tui_resize_all ();
        tui_refresh_all_win ();
        dont_repeat ();
        tui_set_win_resized_to (FALSE);
Index: tui-win.c
===================================================================
RCS file: /cvs/src/src/gdb/tui/tui-win.c,v
retrieving revision 1.47
diff -c -p -r1.47 tui-win.c
*** tui-win.c	17 May 2010 22:21:43 -0000	1.47
--- tui-win.c	21 Jul 2010 20:43:22 -0000
*************** tui_resize_all (void)
*** 799,805 ****
  	      tui_win_list[win_type] = (struct tui_win_info *) NULL;
  	    }
  	}
-       tui_set_win_resized_to (TRUE);
        /* Turn keypad back on, unless focus is in the command
  	 window.  */
        if (win_with_focus != TUI_CMD_WIN)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [patch] Call tui_resize_all() after a resize
  2010-07-21 20:53 [patch] Call tui_resize_all() after a resize Balazs Kezes
@ 2010-07-27 14:38 ` Pedro Alves
  2010-07-28 11:57   ` Pedro Alves
  0 siblings, 1 reply; 3+ messages in thread
From: Pedro Alves @ 2010-07-27 14:38 UTC (permalink / raw)
  To: gdb-patches; +Cc: Balazs Kezes

On Wednesday 21 July 2010 21:53:01, Balazs Kezes wrote:
> Currently tui_resize_all is never called. This could be called from the
> SIGWINCH handler but because the resize logic is a bit complex it is safer
> to mark a global variable and call this function later. The marking in the
> handler is already in the code.
> The global variable is currently also marked in this tui_resize_all so this
> patch removes it from there.

Thanks, this version looks good.  I can apply it.  Can you write me a
change log entry for this?

> 
> --
> Balazs
> 
> Index: tui-io.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/tui/tui-io.c,v
> retrieving revision 1.23
> diff -c -p -r1.23 tui-io.c
> *** tui-io.c	25 May 2010 15:48:44 -0000	1.23
> --- tui-io.c	21 Jul 2010 20:34:54 -0000
> *************** tui_handle_resize_during_io (unsigned in
> *** 711,716 ****
> --- 711,717 ----
>   {
>     if (tui_win_resized ())
>       {
> +       tui_resize_all ();
>         tui_refresh_all_win ();
>         dont_repeat ();
>         tui_set_win_resized_to (FALSE);
> Index: tui-win.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/tui/tui-win.c,v
> retrieving revision 1.47
> diff -c -p -r1.47 tui-win.c
> *** tui-win.c	17 May 2010 22:21:43 -0000	1.47
> --- tui-win.c	21 Jul 2010 20:43:22 -0000
> *************** tui_resize_all (void)
> *** 799,805 ****
>   	      tui_win_list[win_type] = (struct tui_win_info *) NULL;
>   	    }
>   	}
> -       tui_set_win_resized_to (TRUE);
>         /* Turn keypad back on, unless focus is in the command
>   	 window.  */
>         if (win_with_focus != TUI_CMD_WIN)
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [patch] Call tui_resize_all() after a resize
  2010-07-27 14:38 ` Pedro Alves
@ 2010-07-28 11:57   ` Pedro Alves
  0 siblings, 0 replies; 3+ messages in thread
From: Pedro Alves @ 2010-07-28 11:57 UTC (permalink / raw)
  To: gdb-patches; +Cc: Balazs Kezes

I've now applied this one.  Thanks.

-- 
Pedro Alves

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-07-28 11:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-21 20:53 [patch] Call tui_resize_all() after a resize Balazs Kezes
2010-07-27 14:38 ` Pedro Alves
2010-07-28 11:57   ` Pedro Alves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).