How to debug using gdb?

Here is a quick start tutorial for gdb: /* test.c */ /* Sample program to debug. */ #include <stdio.h> #include <stdlib.h> int main (int argc, char **argv) { if (argc != 3) return 1; int a = atoi (argv[1]); int b = atoi (argv[2]); int c = a + b; printf (“%d\n”, c); return 0; … Read more