[Top][All Lists]

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

Re: debugging ncurses code with gdb

From: Thomas Dickey
Subject: Re: debugging ncurses code with gdb
Date: Wed, 4 Feb 2004 09:56:32 -0500 (EST)

On Wed, 4 Feb 2004, Peter Jay Salzman wrote:

> Hi all,
> While debugging ncurses code, I need to separate out GDB I/O from
> ncurses I/O by:
> 1. opening up a 2nd xterm
> 2. finding its pty with "tty" or "who am i"
> 3. using GDB's "tty" command to redirect program I/O.
> or if i'm on virtual consoles, finding the tty device rather than pty
> device.
> I'm on GNU/Linux.  Is the procedure the same for other flavors of Unix?

Even simpler - just use "attach" (process) from the other terminal,
and leave the tty alone.

> Are there any other issues to be aware of when debugging ncurses
> programs using a symbolic debugger like GDB?

none that come to mind.

Thomas E. Dickey

reply via email to

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