This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA]: Make gdb_do_one_event public and fix uiout setting for TUI
- From: Elena Zannoni <ezannoni at redhat dot com>
- To: Stephane Carrez <stcarrez at nerim dot fr>
- Cc: Elena Zannoni <ezannoni at redhat dot com>,gdb-patches at sources dot redhat dot com
- Date: Mon, 9 Sep 2002 18:05:33 -0400
- Subject: Re: [RFA]: Make gdb_do_one_event public and fix uiout setting for TUI
- References: <3D6AB1C8.5050403@nerim.fr><15722.45251.205480.778379@localhost.redhat.com><3D6BEE1A.3080700@nerim.fr><15723.56589.602934.533654@localhost.redhat.com><3D6BFCCE.4050607@nerim.fr>
Stephane Carrez writes:
> Hi!
>
> Elena Zannoni wrote:
>
> >
> >
> > I am not sure I understand this change, can you comment a bit?
> >
> > a init_ui_hook. */
> > - uiout = cli_out_new (gdb_stdout);
> > + tui_old_uiout = uiout = cli_out_new (gdb_stdout);
> >
>
>
> When we start gdb without -tui, the 'tui_old_uiout' was not
> set because 'tui_enable/tui_disable' are not called. This is because
> we are initializing gdb and thus there are no hooks to remove (ie no
> need to and must not call tui_disable).
>
> Later on in the tui loop, the 'tui_old_uiout' is used to re-initialize
> 'uiout' (since we are not in TUI mode).
>
> Stephane
>
OK. Thank you.
Your proposed changes to event-loop.[ch] are approved.
Elena