help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: debugging ncurses from emacs


From: Nick Roberts
Subject: Re: debugging ncurses from emacs
Date: Wed, 20 Dec 2006 09:45:41 +1300

> I am trying to debug an app using the ncurses library using gdba.

> I have opened a terminal and queried its tty ID using "tty"

> I get something like "/dev/pts/2"

> I go back to me debugging session in emacs (gdba) and type

> "tty /dev/pts/2"

> in order to seperate the programs IO from the gdb output.

> But the output from the program being debugged freezes after a few lines.

That's because the shell grabs input from the same terminal.  It should
work if you type something like "sleep 10000" in it first.

> Any ideas or pointers?

If your ncurses app is a bit like Emacs and you're not debugging startup, you
can run it in a terminal, find it's process no (1234, say) and attach to it
in gdb with "attach 1234".


-- 
Nick                                           http://www.inet.net.nz/~nickrob




reply via email to

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