What are the best ways to automate a GDB debugging session?
Basically, in this example I wanted to get some variable values in particular places of the code; and have them output until the program crashes. So here is first a little program which is guaranteed to crash in a few steps, test.c: #include <stdio.h> #include <stdlib.h> int icount = 1; // default value main(int argc, … Read more