void L3()
{
int a;
int b = a;
}
void L2()
{
L3();
}
void L1()
{
L2();
}
int main ()
{
L1();
}
* first of all when I step into L3, the cursor is on int b=a, which is normal because the line int a; does not contain any executable statements
* then I ask the call stack : which says I am in L3, and the cursor also stays on the line int b = a;
* then I step : I end up at the closing brace of L3, and the callstack still says I am in L3
* then I step : I end up at the closing brace of L2, and the callstack still says I am in L2
* ....
so works correctly.
I am using : GDB 6.8, GCC : 4.3.1 , CB : latest revision from svn, all on linux