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

Side by Side Diff: gdb/testsuite/gdb.base/break.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/bitops.exp ('k') | gdb/testsuite/gdb.base/break.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 /* This testcase is part of GDB, the GNU debugger. 1 /* This testcase is part of GDB, the GNU debugger.
2 2
3 Copyright 1992-1995, 1999, 2002-2003, 2007-2012 Free Software 3 Copyright 1992-1995, 1999, 2002-2003, 2007-2012 Free Software
4 Foundation, Inc. 4 Foundation, Inc.
5 5
6 This program is free software; you can redistribute it and/or modify 6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by 7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3 of the License, or 8 the Free Software Foundation; either version 3 of the License, or
9 (at your option) any later version. 9 (at your option) any later version.
10 10
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 int 80 int
81 main (int argc, char **argv, char **envp) 81 main (int argc, char **argv, char **envp)
82 #else 82 #else
83 int 83 int
84 main (argc, argv, envp) 84 main (argc, argv, envp)
85 int argc; 85 int argc;
86 char *argv[], **envp; 86 char *argv[], **envp;
87 #endif 87 #endif
88 { 88 {
89 #ifdef usestubs
90 set_debug_traps(); /* set breakpoint 5 here */
91 breakpoint();
92 #endif
93 if (argc == 12345) { /* an unlikely value < 2^16, in case uninited */ /* se t breakpoint 6 here */ 89 if (argc == 12345) { /* an unlikely value < 2^16, in case uninited */ /* se t breakpoint 6 here */
94 fprintf (stderr, "usage: factorial <number>\n"); 90 fprintf (stderr, "usage: factorial <number>\n");
95 return 1; 91 return 1;
96 } 92 }
97 printf ("%d\n", factorial (atoi ("6"))); /* set breakpoint 1 here */ 93 printf ("%d\n", factorial (atoi ("6"))); /* set breakpoint 1 here */
98 /* set breakpoint 12 here */ 94 /* set breakpoint 12 here */
99 marker1 (); /* set breakpoint 11 here */ 95 marker1 (); /* set breakpoint 11 here */
100 marker2 (43); /* set breakpoint 20 here */ 96 marker2 (43); /* set breakpoint 20 here */
101 marker3 ("stack", "trace"); /* set breakpoint 21 here */ 97 marker3 ("stack", "trace"); /* set breakpoint 21 here */
102 marker4 (177601976L); 98 marker4 (177601976L);
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 #endif 140 #endif
145 { 141 {
146 while (a /* set breakpoint 4 here */ 142 while (a /* set breakpoint 4 here */
147 && b 143 && b
148 && c) 144 && c)
149 { 145 {
150 a--, b--, c--; 146 a--, b--, c--;
151 } 147 }
152 return 0; 148 return 0;
153 } 149 }
OLDNEW
« no previous file with comments | « gdb/testsuite/gdb.base/bitops.exp ('k') | gdb/testsuite/gdb.base/break.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698