Is this possible with gdb?

Ismail Donmez ismail@kde.org.tr
Wed May 25 15:14:00 GMT 2005


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 )

Regards,
ismail



-- 
They say people don't believe in heroes anymore



More information about the Gdb mailing list