[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 19:18:55 -0500 (EST)

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

> On Wed 04 Feb 04,  9:56 AM, Thomas Dickey <address@hidden> said:
> > Even simpler - just use "attach" (process) from the other terminal,
> > and leave the tty alone.
> unless you want to debug from the start of the program -- you'd probably
> need a getchar() at the beginning of the program in order to get it at
> the very top of the executable...   :)

oh - I usually don't want to do that, but to reach inside something that
almost works, to see what's wrong with it.  Most of the times I run gdb
just to get a walkback.

> > > Are there any other issues to be aware of when debugging ncurses
> > > programs using a symbolic debugger like GDB?
> >
> > none that come to mind.
> thanks for the attach tip.  i hadn't thought of that!

someone told me about that quite a while ago, and since it seems to work
on other systems (SunOS 4.1 at that point), I can recommend it...

Thomas E. Dickey

reply via email to

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