I wrote a small sample program for testing GDB in linux.
The code is:
I put break point at fun() and try to print out value of x using:Code:
printf("\n Inside Fun");
printf("\n In main \n");
fun(); // Put Break point here
But it give me error that:Quote:
Can any body help me in this. I am using Ubuntu.Quote:
No symbol "x" in current context.