Re: [Cgdb-devel] CTRL + T
Brought to you by:
bobbybrasko,
crouchingturbo
|
From: Peter K. <pe...@ko...> - 2003-02-02 22:53:06
|
Okay, then basically we need 3 things:
1. TTY toggle - shows and hids the TTY window
2. TTY focus - if the tty is on the screen, sets the focus.
3. restart TTY - create a new pseudo-terminal and issue the tty
command.
Does that seem complete? I'm trying to move away from hard-coded
key-bindings to a more functional description.
- Peter
On Sun, Feb 02, 2003 at 05:43:58PM -0500, Bob Rossi wrote:
> Here's the deal. gdb outputs its data via stdout and the debugged
> program's date via stdout. So cgdb really has no way of knowing which
> output is from gdb and which is from the debugged program.=20
>=20
> So, in order to distinguish between the 2, cgdb uses gdb's tty feature
> which tells gdb to use the tty specified for all input and output of
> the debugged program. That way cgdb reads the debugged programs output
> via the tty specified and gdb's output via stdout.
>=20
> So, the Control-T command actually tells cgdb to open a new tty ( ex.
> /dev/pts/3). Then it issues the command to gdb ( tty /dev/pts/3 ). So,
> if something is wrong with the tty, the user can just get another one.
>=20
> The T command actually is just a GUI command. It says, I want to look at
> all the input and output to gdb in a new window. Actually, the only way
> currently to give input to the program, is through the T command. All
> it does is says, write all data typed in this window to the tty instead
> of gdb's stdin.
--=20
Peter D. Kovacs <pe...@ko...>
|