2 * Test GDB's ability to save and reload a corefile.
7 int extern_array[4] = {1, 2, 3, 4};
8 static int static_array[4] = {5, 6, 7, 8};
9 static int un_initialized_array[4];
10 static char *heap_string;
24 heap_string = (char *) malloc (80);
25 strcpy (heap_string, "I'm a little teapot, short and stout...");
26 for (i = 0; i < 4; i++)
28 un_initialized_array[i] = extern_array[i] + 8;
29 local_array[i] = extern_array[i] + 12;
35 int factorial_func (int value)
37 int factorial_func (value)
42 value *= factorial_func (value - 1);