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

Side by Side Diff: gdb/testsuite/gdb.base/signals.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/siginfo-obj.exp ('k') | gdb/testsuite/gdb.base/signals.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 /* Test GDB dealing with stuff like stepping into sigtramp. */ 1 /* Test GDB dealing with stuff like stepping into sigtramp. */
2 2
3 #include <signal.h> 3 #include <signal.h>
4 #include <unistd.h> 4 #include <unistd.h>
5 5
6 #ifdef __sh__
7 #define signal(a,b) /* Signals not supported on this target - make them go a way */
8 #define alarm(a) /* Ditto for alarm() */
9 #endif
10 6
11 static int count = 0; 7 static int count = 0;
12 8
13 #ifdef PROTOTYPES 9 #ifdef PROTOTYPES
14 static void 10 static void
15 handler (int sig) 11 handler (int sig)
16 #else 12 #else
17 static void 13 static void
18 handler (sig) 14 handler (sig)
19 int sig; 15 int sig;
(...skipping 11 matching lines...) Expand all
31 27
32 static void 28 static void
33 func2 () 29 func2 ()
34 { 30 {
35 ++count; 31 ++count;
36 } 32 }
37 33
38 int 34 int
39 main () 35 main ()
40 { 36 {
41 #ifdef usestubs
42 set_debug_traps();
43 breakpoint();
44 #endif
45 #ifdef SIGALRM 37 #ifdef SIGALRM
46 signal (SIGALRM, handler); 38 signal (SIGALRM, handler);
47 #endif 39 #endif
48 #ifdef SIGUSR1 40 #ifdef SIGUSR1
49 signal (SIGUSR1, handler); 41 signal (SIGUSR1, handler);
50 #endif 42 #endif
51 alarm (1); 43 alarm (1);
52 ++count; /* first */ 44 ++count; /* first */
53 alarm (1); 45 alarm (1);
54 ++count; /* second */ 46 ++count; /* second */
55 func1 (); 47 func1 ();
56 alarm (1); 48 alarm (1);
57 func2 (); 49 func2 ();
58 return count; 50 return count;
59 } 51 }
OLDNEW
« no previous file with comments | « gdb/testsuite/gdb.base/siginfo-obj.exp ('k') | gdb/testsuite/gdb.base/signals.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698