Is this possible with gdb?

Ismail Donmez
2005-05-25T15:05:17Z

Hi all,

Sorry if this question came up early before but a Google search didn't result
in much answer. What I want to do is to see currently executed line to be
printed on console while using gdb.

Say I got this in foo.cpp

int main()
{
i=2;
return 0;
}

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.