bug-ncurses
[Top][All Lists]
Advanced

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

debugging ncurses code with gdb


From: Peter Jay Salzman
Subject: debugging ncurses code with gdb
Date: Wed, 4 Feb 2004 06:25:26 -0800
User-agent: Mutt/1.5.5.1+cvs20040105i

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?

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

Thanks!
Pete

-- 
Make everything as simple as possible, but no simpler.  -- Albert Einstein
GPG Instructions: http://www.dirac.org/linux/gpg
GPG Fingerprint: B9F1 6CF3 47C4 7CD8 D33E 70A9 A3B9 1945 67EA 951D




reply via email to

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