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

Side by Side Diff: gdb/testsuite/gdb.base/reread2.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/reread1.c ('k') | gdb/testsuite/gdb.base/restore.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* pr 13484 */ 1 /* pr 13484 */
2 2
3 #include <stdio.h> 3 #include <stdio.h>
4 4
5 int x; 5 int x;
6 6
7 void foo() 7 void foo()
8 { 8 {
9 x++; 9 x++;
10 printf("This is foo\n"); 10 printf("This is foo\n");
11 } 11 }
12 12
13 int main() 13 int main()
14 { 14 {
15 #ifdef usestubs
16 set_debug_traps ();
17 breakpoint ();
18 #endif
19 foo(); 15 foo();
20 return 0; 16 return 0;
21 } 17 }
22 18
23 /* Ensure the new file will have more sections. It may exploit code not 19 /* Ensure the new file will have more sections. It may exploit code not
24 updating its SECTION_COUNT on reread_symbols. */ 20 updating its SECTION_COUNT on reread_symbols. */
25 21
26 #ifndef NO_SECTIONS 22 #ifndef NO_SECTIONS
27 # define VAR0(n) __attribute__ ((section ("sect" #n))) int var##n; 23 # define VAR0(n) __attribute__ ((section ("sect" #n))) int var##n;
28 # define VAR1(n) VAR0 (n ## 0) VAR0(n ## 1) VAR0(n ## 2) VAR0(n ## 3) 24 # define VAR1(n) VAR0 (n ## 0) VAR0(n ## 1) VAR0(n ## 2) VAR0(n ## 3)
29 # define VAR2(n) VAR1 (n ## 0) VAR1(n ## 1) VAR1(n ## 2) VAR1(n ## 3) 25 # define VAR2(n) VAR1 (n ## 0) VAR1(n ## 1) VAR1(n ## 2) VAR1(n ## 3)
30 # define VAR3(n) VAR2 (n ## 0) VAR2(n ## 1) VAR2(n ## 2) VAR2(n ## 3) 26 # define VAR3(n) VAR2 (n ## 0) VAR2(n ## 1) VAR2(n ## 2) VAR2(n ## 3)
31 VAR3 (0) 27 VAR3 (0)
32 #endif 28 #endif
OLDNEW
« no previous file with comments | « gdb/testsuite/gdb.base/reread1.c ('k') | gdb/testsuite/gdb.base/restore.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698