Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Elena Zannoni <ezannoni@redhat.com>
To: Stephane Carrez <stcarrez@nerim.fr>
Cc: Elena Zannoni <ezannoni@redhat.com>, gdb-patches@sources.redhat.com
Subject: Re: [RFA]: Make gdb_do_one_event public and fix uiout setting for TUI
Date: Tue, 27 Aug 2002 13:27:00 -0000	[thread overview]
Message-ID: <15723.56589.602934.533654@localhost.redhat.com> (raw)
In-Reply-To: <3D6BEE1A.3080700@nerim.fr>

Stephane Carrez writes:
 > Hi!
 > 
 > Elena Zannoni wrote:
 > 
 > > Stephane Carrez writes:
 > >  > Hi!
 > >  > 
 > >  > The TUI relies on the modification of the 'uiout' to switch correctly
 > >  > between TUI mode and normal mode.  It installs its own ui-out function to
 > >  > catch the output and redirect it in the appropriate curses window.
 > >  > It installs gdb's normal ui-out function when using the plain terminal
 > >  > (non-TUI mode).
 > > 
 > > 
 > > I am a bit confused here about the uiout switch. I see that it does it
 > > when you start up the TUI, but there is also a mode switch with
 > > tui_switch_mode.  How does this interact with your change?
 > > 
 > 
 > It's because we can switch on/off the TUI mode while gdb is running
 > (independently of -tui option).
 > 

ah ok.

 > CTRL-X CTRL-A is bound to tui_switch_mode() which enables TUI mode or
 > disable it (the effect is similar to using the gdb -tui option, or, not using that option).
 > 
 > The tui_enable() and tui_disable() do all the necessary stuff such as
 > enter/leave the curses mode, install/remove specific TUI gdb hooks.
 > The 'uiout' is also switched here so that we write on gdb_stdout
 > or in curses window.
 > 
 > 	Stephane
 > 

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);


Thanks
Elena


  reply	other threads:[~2002-08-27 20:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-26 14:22 Stephane Carrez
2002-08-26 15:52 ` Elena Zannoni
2002-08-27 12:32   ` Stephane Carrez
2002-08-27 13:27     ` Elena Zannoni [this message]
2002-08-27 13:28       ` Stephane Carrez
2002-09-09 15:07         ` Elena Zannoni

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=15723.56589.602934.533654@localhost.redhat.com \
    --to=ezannoni@redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=stcarrez@nerim.fr \
    /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