unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* debugging ncurses from emacs
@ 2006-12-13 15:42 Hadron Quark
  0 siblings, 0 replies; 2+ messages in thread
From: Hadron Quark @ 2006-12-13 15:42 UTC (permalink / raw)



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.

Any ideas or pointers?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: debugging ncurses from emacs
@ 2006-12-19 20:45 Nick Roberts
  0 siblings, 0 replies; 2+ messages in thread
From: Nick Roberts @ 2006-12-19 20:45 UTC (permalink / raw)
  Cc: help-gnu-emacs


> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-12-19 20:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-13 15:42 debugging ncurses from emacs Hadron Quark
  -- strict thread matches above, loose matches on Subject: below --
2006-12-19 20:45 Nick Roberts

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).