Implement pahole-like 'ptype /o' option
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / annota1.c
1 #include <stdio.h>
2 #include <signal.h>
3
4
5 void
6 handle_USR1 (int sig)
7 {
8 }
9
10 int value;
11
12 int
13 main (void)
14 {
15 int my_array[3] = { 1, 2, 3 }; /* break main */
16
17 value = 7;
18
19 #ifdef SIGUSR1
20 signal (SIGUSR1, handle_USR1);
21 #endif
22
23 printf ("value is %d\n", value);
24 printf ("my_array[2] is %d\n", my_array[2]);
25
26 {
27 int i;
28 for (i = 0; i < 5; i++)
29 value++; /* increment value */
30 }
31
32 return 0; /* after loop */
33 }
34
This page took 0.039039 seconds and 4 git commands to generate.