Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: gdb/testsuite/gdb.base/annota3.c

Issue 11969036: Merge GDB 7.5.1 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gdb/testsuite/gdb.base/annota1.exp ('k') | gdb/testsuite/gdb.base/annota3.exp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #include <stdio.h> 1 #include <stdio.h>
2 #include <signal.h> 2 #include <signal.h>
3 3
4 #ifdef __sh__
5 #define signal(a,b) /* Signals not supported on this target - make them go a way */
6 #endif
7
8 4
9 #ifdef PROTOTYPES 5 #ifdef PROTOTYPES
10 void 6 void
11 handle_USR1 (int sig) 7 handle_USR1 (int sig)
12 { 8 {
13 } 9 }
14 #else 10 #else
15 void 11 void
16 handle_USR1 (sig) 12 handle_USR1 (sig)
17 int sig; 13 int sig;
18 { 14 {
19 } 15 }
20 #endif 16 #endif
21 17
22 int value; 18 int value;
23 19
24 #ifdef PROTOTYPES 20 #ifdef PROTOTYPES
25 int 21 int
26 main (void) 22 main (void)
27 #else 23 #else
28 int 24 int
29 main () 25 main ()
30 #endif 26 #endif
31 { 27 {
32 int my_array[3] = { 1, 2, 3 }; 28 int my_array[3] = { 1, 2, 3 }; /* break main */
33 29
34 value = 7; 30 value = 7;
35 31
36 #ifdef SIGUSR1 32 #ifdef SIGUSR1
37 signal (SIGUSR1, handle_USR1); 33 signal (SIGUSR1, handle_USR1);
38 #endif 34 #endif
39 35
40 printf ("value is %d\n", value); 36 printf ("value is %d\n", value);
41 printf ("my_array[2] is %d\n", my_array[2]); 37 printf ("my_array[2] is %d\n", my_array[2]);
42 38
43 { 39 {
44 int i; 40 int i;
45 for (i = 0; i < 5; i++) 41 for (i = 0; i < 5; i++)
46 value++; 42 value++; /* increment value */
47 } 43 }
48 44
49 return 0; 45 return 0; /* after loop */
50 } 46 }
51 47
OLDNEW
« no previous file with comments | « gdb/testsuite/gdb.base/annota1.exp ('k') | gdb/testsuite/gdb.base/annota3.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698