I wish to print the variable in a function (which is called multiple times ) to be printed each time the function is invoked.
Is it possible to do this automatically through gdb ?? Something like conditional printing ...
something like ..
void func()
{ 
    if( t == 0 ) 
       x = z+1;
    else
       x = p+2; 
} 
I want the variable to be printed when t == 0 and ignore otherwise ..
 
     
     
     
    