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

Side by Side Diff: gdb/testsuite/gdb.base/scope0.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/scope.exp ('k') | gdb/testsuite/gdb.base/sect-cmd.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 static int filelocal = 1; /* In Data section */ 1 static int filelocal = 1; /* In Data section */
2 static int filelocal_bss; /* In BSS section */ 2 static int filelocal_bss; /* In BSS section */
3 #ifndef __STDC__ 3 #ifndef __STDC__
4 #define const /**/ 4 #define const /**/
5 #endif 5 #endif
6 static const int filelocal_ro = 201; /* In Read-Only Data section */ 6 static const int filelocal_ro = 201; /* In Read-Only Data section */
7 7
8 extern void init1(); 8 extern void init1();
9 extern void foo(); 9 extern void foo();
10 10
11 int autovars (int bcd, int abc); 11 int autovars (int bcd, int abc);
12 int localscopes (int x); 12 int localscopes (int x);
13 int useit (int val); 13 int useit (int val);
14 int useitp (const int *val); 14 int useitp (const int *val);
15 void init0(); 15 void init0();
16 void marker1 (); 16 void marker1 ();
17 void marker2 (); 17 void marker2 ();
18 void marker3 (); 18 void marker3 ();
19 void marker4 (); 19 void marker4 ();
20 20
21 int main () 21 int main ()
22 { 22 {
23 #ifdef usestubs
24 set_debug_traps();
25 breakpoint();
26 #endif
27 init0 (); 23 init0 ();
28 foo (); 24 foo ();
29 autovars (5, 6); 25 autovars (5, 6);
30 localscopes (0); 26 localscopes (0);
31 } 27 }
32 28
33 /* On some systems, such as AIX, unreferenced variables are deleted 29 /* On some systems, such as AIX, unreferenced variables are deleted
34 from the executable. On other compilers, such as ARM RealView, 30 from the executable. On other compilers, such as ARM RealView,
35 const variables without their address taken are deleted. */ 31 const variables without their address taken are deleted. */
36 void usestatics () 32 void usestatics ()
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 } 211 }
216 } 212 }
217 } 213 }
218 return retval; 214 return retval;
219 } 215 }
220 216
221 void marker1 () {} 217 void marker1 () {}
222 void marker2 () {} 218 void marker2 () {}
223 void marker3 () {} 219 void marker3 () {}
224 void marker4 () {} 220 void marker4 () {}
OLDNEW
« no previous file with comments | « gdb/testsuite/gdb.base/scope.exp ('k') | gdb/testsuite/gdb.base/sect-cmd.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698