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

Side by Side Diff: gdb/f-exp.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/expression.h ('k') | gdb/f-exp.y » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
None
OLDNEW
1 /* A Bison parser, made by GNU Bison 1.875c. */ 1 /* A Bison parser, made by GNU Bison 1.875c. */
2 2
3 /* Skeleton parser for Yacc-like parsing with Bison, 3 /* Skeleton parser for Yacc-like parsing with Bison,
4 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003 Free Software Foundati on, Inc. 4 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003 Free Software Foundati on, 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 2, or (at your option) 8 the Free Software Foundation; either version 2, or (at your option)
9 any later version. 9 any later version.
10 10
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 #define yyrule f_rule /* With YYDEBUG defined */ 195 #define yyrule f_rule /* With YYDEBUG defined */
196 #define yylhs f_yylhs 196 #define yylhs f_yylhs
197 #define yylen f_yylen 197 #define yylen f_yylen
198 #define yydefred f_yydefred 198 #define yydefred f_yydefred
199 #define yydgoto f_yydgoto 199 #define yydgoto f_yydgoto
200 #define yysindex f_yysindex 200 #define yysindex f_yysindex
201 #define yyrindex f_yyrindex 201 #define yyrindex f_yyrindex
202 #define yygindex f_yygindex 202 #define yygindex f_yygindex
203 #define yytable f_yytable 203 #define yytable f_yytable
204 #define yycheck f_yycheck 204 #define yycheck f_yycheck
205 #define yyss f_yyss
206 #define yysslim f_yysslim
207 #define yyssp f_yyssp
208 #define yystacksize f_yystacksize
209 #define yyvs f_yyvs
210 #define yyvsp f_yyvsp
205 211
206 #ifndef YYDEBUG 212 #ifndef YYDEBUG
207 #define YYDEBUG 1 /* Default to yydebug support */ 213 #define YYDEBUG 1 /* Default to yydebug support */
208 #endif 214 #endif
209 215
210 #define YYFPRINTF parser_fprintf 216 #define YYFPRINTF parser_fprintf
211 217
212 int yyparse (void); 218 int yyparse (void);
213 219
214 static int yylex (void); 220 static int yylex (void);
(...skipping 13 matching lines...) Expand all
228 234
229 /* Enabling verbose error messages. */ 235 /* Enabling verbose error messages. */
230 #ifdef YYERROR_VERBOSE 236 #ifdef YYERROR_VERBOSE
231 # undef YYERROR_VERBOSE 237 # undef YYERROR_VERBOSE
232 # define YYERROR_VERBOSE 1 238 # define YYERROR_VERBOSE 1
233 #else 239 #else
234 # define YYERROR_VERBOSE 0 240 # define YYERROR_VERBOSE 0
235 #endif 241 #endif
236 242
237 #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED) 243 #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
238 #line 132 "f-exp.y" 244 #line 138 "f-exp.y"
239 typedef union YYSTYPE { 245 typedef union YYSTYPE {
240 LONGEST lval; 246 LONGEST lval;
241 struct { 247 struct {
242 LONGEST val; 248 LONGEST val;
243 struct type *type; 249 struct type *type;
244 } typed_val; 250 } typed_val;
245 DOUBLEST dval; 251 DOUBLEST dval;
246 struct symbol *sym; 252 struct symbol *sym;
247 struct type *tval; 253 struct type *tval;
248 struct stoken sval; 254 struct stoken sval;
249 struct ttype tsym; 255 struct ttype tsym;
250 struct symtoken ssym; 256 struct symtoken ssym;
251 int voidval; 257 int voidval;
252 struct block *bval; 258 struct block *bval;
253 enum exp_opcode opcode; 259 enum exp_opcode opcode;
254 struct internalvar *ivar; 260 struct internalvar *ivar;
255 261
256 struct type **tvec; 262 struct type **tvec;
257 int *ivec; 263 int *ivec;
258 } YYSTYPE; 264 } YYSTYPE;
259 /* Line 191 of yacc.c. */ 265 /* Line 191 of yacc.c. */
260 #line 261 "f-exp.c" 266 #line 267 "f-exp.c"
261 # define yystype YYSTYPE /* obsolescent; will be withdrawn */ 267 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
262 # define YYSTYPE_IS_DECLARED 1 268 # define YYSTYPE_IS_DECLARED 1
263 # define YYSTYPE_IS_TRIVIAL 1 269 # define YYSTYPE_IS_TRIVIAL 1
264 #endif 270 #endif
265 271
266 272
267 273
268 /* Copy the second part of user declarations. */ 274 /* Copy the second part of user declarations. */
269 #line 153 "f-exp.y" 275 #line 159 "f-exp.y"
270 276
271 /* YYSTYPE gets defined by %union */ 277 /* YYSTYPE gets defined by %union */
272 static int parse_number (char *, int, int, YYSTYPE *); 278 static int parse_number (char *, int, int, YYSTYPE *);
273 279
274 280
275 /* Line 214 of yacc.c. */ 281 /* Line 214 of yacc.c. */
276 #line 277 "f-exp.c" 282 #line 283 "f-exp.c"
277 283
278 #if ! defined (yyoverflow) || YYERROR_VERBOSE 284 #if ! defined (yyoverflow) || YYERROR_VERBOSE
279 285
280 # ifndef YYFREE 286 # ifndef YYFREE
281 # define YYFREE xfree 287 # define YYFREE xfree
282 # endif 288 # endif
283 # ifndef YYMALLOC 289 # ifndef YYMALLOC
284 # define YYMALLOC xmalloc 290 # define YYMALLOC xmalloc
285 # endif 291 # endif
286 292
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 54, -1, 53, 72, 54, -1, 8, -1, 12, -1, 481 54, -1, 53, 72, 54, -1, 8, -1, 12, -1,
476 13, -1, 27, -1, 16, -1, 17, -1, 15, -1, 482 13, -1, 27, -1, 16, -1, 17, -1, 15, -1,
477 14, -1, 18, -1, 19, -1, 20, -1, 21, -1, 483 14, -1, 18, -1, 19, -1, 20, -1, 21, -1,
478 22, -1, 23, -1, 66, -1, 72, 30, 66, -1, 484 22, -1, 23, -1, 66, -1, 72, 30, 66, -1,
479 7, -1, 7, -1 485 7, -1, 7, -1
480 }; 486 };
481 487
482 /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ 488 /* YYRLINE[YYN] -- source line where rule number YYN was defined. */
483 static const unsigned short yyrline[] = 489 static const unsigned short yyrline[] =
484 { 490 {
485 0, 232, 232, 233, 236, 242, 247, 251, 255, 259, 491 0, 238, 238, 239, 242, 248, 253, 257, 261, 265,
486 263, 267, 277, 276, 284, 287, 291, 295, 301, 307, 492 269, 273, 283, 282, 290, 293, 297, 301, 307, 313,
487 313, 319, 325, 329, 335, 341, 349, 353, 357, 361, 493 319, 325, 331, 335, 341, 347, 355, 359, 363, 367,
488 365, 369, 373, 377, 381, 385, 389, 393, 397, 401, 494 371, 375, 379, 383, 387, 391, 395, 399, 403, 407,
489 405, 409, 413, 417, 422, 426, 430, 436, 443, 452, 495 411, 415, 419, 423, 428, 432, 436, 442, 449, 458,
490 459, 462, 465, 473, 480, 488, 528, 531, 532, 575, 496 465, 468, 471, 479, 486, 494, 534, 537, 538, 581,
491 577, 579, 581, 583, 586, 588, 590, 594, 596, 601, 497 583, 585, 587, 589, 592, 594, 596, 600, 602, 607,
492 603, 605, 607, 609, 611, 613, 615, 617, 619, 621, 498 609, 611, 613, 615, 617, 619, 621, 623, 625, 627,
493 623, 625, 627, 632, 637, 644, 648 499 629, 631, 633, 638, 643, 650, 654
494 }; 500 };
495 #endif 501 #endif
496 502
497 #if YYDEBUG || YYERROR_VERBOSE 503 #if YYDEBUG || YYERROR_VERBOSE
498 /* YYTNME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. 504 /* YYTNME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
499 First, the terminals, then, starting at YYNTOKENS, nonterminals. */ 505 First, the terminals, then, starting at YYNTOKENS, nonterminals. */
500 static const char *const yytname[] = 506 static const char *const yytname[] =
501 { 507 {
502 "$end", "error", "$undefined", "INT", "FLOAT", "STRING_LITERAL", 508 "$end", "error", "$undefined", "INT", "FLOAT", "STRING_LITERAL",
503 "BOOLEAN_LITERAL", "NAME", "TYPENAME", "NAME_OR_INT", "SIZEOF", "ERROR", 509 "BOOLEAN_LITERAL", "NAME", "TYPENAME", "NAME_OR_INT", "SIZEOF", "ERROR",
(...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after
1351 1357
1352 /* If YYLEN is nonzero, implement the default value of the action: 1358 /* If YYLEN is nonzero, implement the default value of the action:
1353 `$$ = $1'. 1359 `$$ = $1'.
1354 1360
1355 Otherwise, the following line sets YYVAL to garbage. 1361 Otherwise, the following line sets YYVAL to garbage.
1356 This behavior is undocumented and Bison 1362 This behavior is undocumented and Bison
1357 users should not rely upon it. Assigning to YYVAL 1363 users should not rely upon it. Assigning to YYVAL
1358 unconditionally makes the parser a bit smaller, and it avoids a 1364 unconditionally makes the parser a bit smaller, and it avoids a
1359 GCC warning that YYVAL may be used uninitialized. */ 1365 GCC warning that YYVAL may be used uninitialized. */
1360 yyval = yyvsp[1-yylen]; 1366 yyval = yyvsp[1-yylen];

error: old chunk mismatch

OLDNEW
« no previous file with comments | « gdb/expression.h ('k') | gdb/f-exp.y » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698