I want to print a variable in a function (which is called several times) to print with every function call.
Is it possible to do this automatically via gdb ?? Something like conditional printing ...
sort of..
void func()
{
if( t == 0 )
x = z+1;
else
x = p+2;
}
I want the variable to be printed when t == 0 and ignored otherwise ..
source
share