Re: Is this possible with gdb?

Ismail Donmez
2005-05-25T15:14:10Z

Hi,
On Wednesday 25 May 2005 18:10, Bob Rossi wrote:
[..]
> > compiled into foo and I want gdb to print
> >
> > foo.cpp: line 3
> > foo.cpp line 4
> > <exit>
> >
> > So I just want to see porgram flow. Is this possible with gdb or can
> > anyone suggest any other solution?
> >
> > Any help is grealy appreciated.
>
> GDB is not a code coverage tool. You could look into use gcov.

Thanks I will check it.

>
> However, with GDB you can step through your program. Try this,
> gdb ./foo
>
> b main
> r
> n
> n
> n
> n

No I can't use this as the program is threaded and I need to do some input
from the gui thread. ( KDE/Qt app )