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

Side by Side Diff: gdb/testsuite/gdb.base/recurse.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/recpar.exp ('k') | gdb/testsuite/gdb.base/recurse.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 /* Trivial code used to test watchpoints in recursive code and 1 /* Trivial code used to test watchpoints in recursive code and
2 auto-deletion of watchpoints as they go out of scope. */ 2 auto-deletion of watchpoints as they go out of scope. */
3 3
4 #ifdef PROTOTYPES 4 #ifdef PROTOTYPES
5 static int 5 static int
6 recurse (int a) 6 recurse (int a)
7 #else 7 #else
8 static int 8 static int
9 recurse (a) 9 recurse (a)
10 int a; 10 int a;
11 #endif 11 #endif
12 { 12 {
13 int b = 0; 13 int b = 0;
14 14
15 if (a == 1) 15 if (a == 1)
16 return 1; 16 return 1;
17 17
18 b = a; 18 b = a;
19 b *= recurse (a - 1); 19 b *= recurse (a - 1);
20 return b; 20 return b;
21 } 21 }
22 22
23 int main() 23 int main()
24 { 24 {
25 #ifdef usestubs
26 set_debug_traps();
27 breakpoint();
28 #endif
29 recurse (10); 25 recurse (10);
30 return 0; 26 return 0;
31 } 27 }
OLDNEW
« no previous file with comments | « gdb/testsuite/gdb.base/recpar.exp ('k') | gdb/testsuite/gdb.base/recurse.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698