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

Side by Side Diff: gdb/testsuite/gdb.base/charset.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/catch-syscall.exp ('k') | gdb/testsuite/gdb.base/charset.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 2001, 2004, 2007-2012 Free Software Foundation, Inc. 3 Copyright 2001, 2004, 2007-2012 Free Software Foundation, Inc.
4 4
5 Contributed by Red Hat, originally written by Jim Blandy. 5 Contributed by Red Hat, originally written by Jim Blandy.
6 6
7 This program is free software; you can redistribute it and/or modify 7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by 8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or 9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version. 10 (at your option) any later version.
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 int i; 116 int i;
117 117
118 for (i = 0; i < NUM_CHARS; ++i) 118 for (i = 0; i < NUM_CHARS; ++i)
119 utf_32_string[i] = iso_8859_1_string[i] & 0xff; 119 utf_32_string[i] = iso_8859_1_string[i] & 0xff;
120 } 120 }
121 121
122 extern void malloc_stub (void); 122 extern void malloc_stub (void);
123 123
124 int main () 124 int main ()
125 { 125 {
126 #ifdef usestubs
127 set_debug_traps();
128 breakpoint();
129 #endif
130 126
131 malloc_stub (); 127 malloc_stub ();
132 128
133 /* Initialize ascii_string. */ 129 /* Initialize ascii_string. */
134 init_string (ascii_string, 130 init_string (ascii_string,
135 120, 131 120,
136 7, 8, 12, 132 7, 8, 12,
137 10, 13, 9, 133 10, 13, 9,
138 11, 120, 17); 134 11, 120, 17);
139 fill_run (ascii_string, 7, 26, 65); 135 fill_run (ascii_string, 7, 26, 65);
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 fill_run (ibm1047_string, 51, 8, 162); 179 fill_run (ibm1047_string, 51, 8, 162);
184 /* The digits, at least, are contiguous. */ 180 /* The digits, at least, are contiguous. */
185 fill_run (ibm1047_string, 59, 10, 240); 181 fill_run (ibm1047_string, 59, 10, 240);
186 182
187 init_utf32 (); 183 init_utf32 ();
188 184
189 myvar = utf_32_string[7]; 185 myvar = utf_32_string[7];
190 186
191 return 0; /* all strings initialized */ 187 return 0; /* all strings initialized */
192 } 188 }
OLDNEW
« no previous file with comments | « gdb/testsuite/gdb.base/catch-syscall.exp ('k') | gdb/testsuite/gdb.base/charset.exp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698