If a C program is something like:
void main ()
{
int a, b, c;
a = 1;
b = a + 1;
c = b + 1;
}
while running gdb, and single stepping:
How do I display the variable that got updated by that single step? Of course this is a highly simplified example, the idea being trace the execution. Something like:
(gdb) step
a=1
(gdb) step
b=2
(gdb) step
c=3
Thanks