2006-01-24 00:44:44 +03:00
|
|
|
|
/* A Bison parser, made by GNU Bison 1.875b. */
|
|
|
|
|
|
|
|
|
|
/* Skeleton parser for Yacc-like parsing with Bison,
|
|
|
|
|
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
|
|
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
|
the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
|
any later version.
|
|
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
|
Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
|
Boston, MA 02111-1307, USA. */
|
|
|
|
|
|
|
|
|
|
/* As a special exception, when this file is copied by Bison into a
|
|
|
|
|
Bison output file, you may use that output file without restriction.
|
|
|
|
|
This special exception was added by the Free Software Foundation
|
|
|
|
|
in version 1.24 of Bison. */
|
|
|
|
|
|
|
|
|
|
/* Written by Richard Stallman by simplifying the original so called
|
|
|
|
|
``semantic'' parser. */
|
|
|
|
|
|
|
|
|
|
/* All symbols defined below should begin with yy or YY, to avoid
|
|
|
|
|
infringing on user name space. This should be done even for local
|
|
|
|
|
variables, as they might otherwise be expanded by user macros.
|
|
|
|
|
There are some unavoidable exceptions within include files to
|
|
|
|
|
define necessary library symbols; they are noted "INFRINGES ON
|
|
|
|
|
USER NAME SPACE" below. */
|
|
|
|
|
|
|
|
|
|
/* Identify Bison output. */
|
|
|
|
|
#define YYBISON 1
|
|
|
|
|
|
|
|
|
|
/* Skeleton name. */
|
|
|
|
|
#define YYSKELETON_NAME "yacc.c"
|
|
|
|
|
|
|
|
|
|
/* Pure parsers. */
|
|
|
|
|
#define YYPURE 0
|
|
|
|
|
|
|
|
|
|
/* Using locations. */
|
|
|
|
|
#define YYLSP_NEEDED 0
|
|
|
|
|
|
|
|
|
|
/* If NAME_PREFIX is specified substitute the variables and functions
|
|
|
|
|
names. */
|
2003-11-28 18:07:29 +03:00
|
|
|
|
#define yyparse bxparse
|
2006-01-24 00:44:44 +03:00
|
|
|
|
#define yylex bxlex
|
2003-11-28 18:07:29 +03:00
|
|
|
|
#define yyerror bxerror
|
2006-01-24 00:44:44 +03:00
|
|
|
|
#define yylval bxlval
|
|
|
|
|
#define yychar bxchar
|
2003-11-28 18:07:29 +03:00
|
|
|
|
#define yydebug bxdebug
|
|
|
|
|
#define yynerrs bxnerrs
|
2006-01-24 00:44:44 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Tokens. */
|
|
|
|
|
#ifndef YYTOKENTYPE
|
|
|
|
|
# define YYTOKENTYPE
|
|
|
|
|
/* Put the tokens into the symbol table, so that GDB and other debuggers
|
|
|
|
|
know about them. */
|
|
|
|
|
enum yytokentype {
|
|
|
|
|
BX_TOKEN_REG_AL = 258,
|
|
|
|
|
BX_TOKEN_REG_BL = 259,
|
|
|
|
|
BX_TOKEN_REG_CL = 260,
|
|
|
|
|
BX_TOKEN_REG_DL = 261,
|
|
|
|
|
BX_TOKEN_REG_AH = 262,
|
|
|
|
|
BX_TOKEN_REG_BH = 263,
|
|
|
|
|
BX_TOKEN_REG_CH = 264,
|
|
|
|
|
BX_TOKEN_REG_DH = 265,
|
|
|
|
|
BX_TOKEN_REG_AX = 266,
|
|
|
|
|
BX_TOKEN_REG_BX = 267,
|
|
|
|
|
BX_TOKEN_REG_CX = 268,
|
|
|
|
|
BX_TOKEN_REG_DX = 269,
|
|
|
|
|
BX_TOKEN_REG_EAX = 270,
|
|
|
|
|
BX_TOKEN_REG_EBX = 271,
|
|
|
|
|
BX_TOKEN_REG_ECX = 272,
|
|
|
|
|
BX_TOKEN_REG_EDX = 273,
|
|
|
|
|
BX_TOKEN_REG_SI = 274,
|
|
|
|
|
BX_TOKEN_REG_DI = 275,
|
|
|
|
|
BX_TOKEN_REG_BP = 276,
|
|
|
|
|
BX_TOKEN_REG_SP = 277,
|
|
|
|
|
BX_TOKEN_REG_IP = 278,
|
|
|
|
|
BX_TOKEN_REG_ESI = 279,
|
|
|
|
|
BX_TOKEN_REG_EDI = 280,
|
|
|
|
|
BX_TOKEN_REG_EBP = 281,
|
|
|
|
|
BX_TOKEN_REG_ESP = 282,
|
|
|
|
|
BX_TOKEN_REG_EIP = 283,
|
2006-01-25 21:13:44 +03:00
|
|
|
|
BX_TOKEN_CS = 284,
|
|
|
|
|
BX_TOKEN_ES = 285,
|
|
|
|
|
BX_TOKEN_SS = 286,
|
|
|
|
|
BX_TOKEN_DS = 287,
|
|
|
|
|
BX_TOKEN_FS = 288,
|
|
|
|
|
BX_TOKEN_GS = 289,
|
|
|
|
|
BX_TOKEN_FLAGS = 290,
|
|
|
|
|
BX_TOKEN_ON = 291,
|
|
|
|
|
BX_TOKEN_OFF = 292,
|
|
|
|
|
BX_TOKEN_CONTINUE = 293,
|
|
|
|
|
BX_TOKEN_STEPN = 294,
|
|
|
|
|
BX_TOKEN_STEP_OVER = 295,
|
|
|
|
|
BX_TOKEN_NEXT_STEP = 296,
|
|
|
|
|
BX_TOKEN_SET = 297,
|
|
|
|
|
BX_TOKEN_DEBUGGER = 298,
|
|
|
|
|
BX_TOKEN_LIST_BREAK = 299,
|
|
|
|
|
BX_TOKEN_VBREAKPOINT = 300,
|
|
|
|
|
BX_TOKEN_LBREAKPOINT = 301,
|
|
|
|
|
BX_TOKEN_PBREAKPOINT = 302,
|
|
|
|
|
BX_TOKEN_DEL_BREAKPOINT = 303,
|
|
|
|
|
BX_TOKEN_ENABLE_BREAKPOINT = 304,
|
|
|
|
|
BX_TOKEN_DISABLE_BREAKPOINT = 305,
|
|
|
|
|
BX_TOKEN_INFO = 306,
|
|
|
|
|
BX_TOKEN_QUIT = 307,
|
|
|
|
|
BX_TOKEN_REGISTERS = 308,
|
|
|
|
|
BX_TOKEN_CPU = 309,
|
|
|
|
|
BX_TOKEN_FPU = 310,
|
|
|
|
|
BX_TOKEN_SSE = 311,
|
|
|
|
|
BX_TOKEN_ALL = 312,
|
|
|
|
|
BX_TOKEN_IDT = 313,
|
|
|
|
|
BX_TOKEN_GDT = 314,
|
|
|
|
|
BX_TOKEN_LDT = 315,
|
|
|
|
|
BX_TOKEN_TSS = 316,
|
|
|
|
|
BX_TOKEN_DIRTY = 317,
|
|
|
|
|
BX_TOKEN_LINUX = 318,
|
|
|
|
|
BX_TOKEN_CONTROL_REGS = 319,
|
|
|
|
|
BX_TOKEN_EXAMINE = 320,
|
|
|
|
|
BX_TOKEN_XFORMAT = 321,
|
|
|
|
|
BX_TOKEN_DISFORMAT = 322,
|
|
|
|
|
BX_TOKEN_SETPMEM = 323,
|
|
|
|
|
BX_TOKEN_SYMBOLNAME = 324,
|
|
|
|
|
BX_TOKEN_QUERY = 325,
|
|
|
|
|
BX_TOKEN_PENDING = 326,
|
|
|
|
|
BX_TOKEN_TAKE = 327,
|
|
|
|
|
BX_TOKEN_DMA = 328,
|
|
|
|
|
BX_TOKEN_IRQ = 329,
|
|
|
|
|
BX_TOKEN_DUMP_CPU = 330,
|
|
|
|
|
BX_TOKEN_SET_CPU = 331,
|
|
|
|
|
BX_TOKEN_DISASSEMBLE = 332,
|
|
|
|
|
BX_TOKEN_INSTRUMENT = 333,
|
|
|
|
|
BX_TOKEN_START = 334,
|
|
|
|
|
BX_TOKEN_STOP = 335,
|
|
|
|
|
BX_TOKEN_RESET = 336,
|
|
|
|
|
BX_TOKEN_PRINT = 337,
|
2006-01-26 01:20:00 +03:00
|
|
|
|
BX_TOKEN_STRING = 338,
|
|
|
|
|
BX_TOKEN_DOIT = 339,
|
|
|
|
|
BX_TOKEN_CRC = 340,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
BX_TOKEN_TRACE = 341,
|
|
|
|
|
BX_TOKEN_TRACEREG = 342,
|
2006-01-26 01:20:00 +03:00
|
|
|
|
BX_TOKEN_SWITCH_MODE = 343,
|
|
|
|
|
BX_TOKEN_SIZE = 344,
|
|
|
|
|
BX_TOKEN_PTIME = 345,
|
|
|
|
|
BX_TOKEN_TIMEBP_ABSOLUTE = 346,
|
|
|
|
|
BX_TOKEN_TIMEBP = 347,
|
|
|
|
|
BX_TOKEN_RECORD = 348,
|
|
|
|
|
BX_TOKEN_PLAYBACK = 349,
|
|
|
|
|
BX_TOKEN_MODEBP = 350,
|
|
|
|
|
BX_TOKEN_PRINT_STACK = 351,
|
|
|
|
|
BX_TOKEN_WATCH = 352,
|
|
|
|
|
BX_TOKEN_UNWATCH = 353,
|
|
|
|
|
BX_TOKEN_READ = 354,
|
|
|
|
|
BX_TOKEN_WRITE = 355,
|
|
|
|
|
BX_TOKEN_SHOW = 356,
|
|
|
|
|
BX_TOKEN_LOAD_SYMBOLS = 357,
|
|
|
|
|
BX_TOKEN_SYMBOLS = 358,
|
|
|
|
|
BX_TOKEN_LIST_SYMBOLS = 359,
|
|
|
|
|
BX_TOKEN_GLOBAL = 360,
|
|
|
|
|
BX_TOKEN_WHERE = 361,
|
|
|
|
|
BX_TOKEN_PRINT_STRING = 362,
|
|
|
|
|
BX_TOKEN_NUMERIC = 363,
|
|
|
|
|
BX_TOKEN_LONG_NUMERIC = 364,
|
|
|
|
|
BX_TOKEN_NE2000 = 365,
|
|
|
|
|
BX_TOKEN_PIC = 366,
|
|
|
|
|
BX_TOKEN_PAGE = 367,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
BX_TOKEN_HELP = 368,
|
|
|
|
|
BX_TOKEN_CALC = 369,
|
|
|
|
|
BX_TOKEN_VGA = 370,
|
|
|
|
|
BX_TOKEN_RSHIFT = 371,
|
|
|
|
|
BX_TOKEN_LSHIFT = 372,
|
|
|
|
|
BX_TOKEN_IVT = 373,
|
|
|
|
|
NEG = 374,
|
|
|
|
|
NOT = 375
|
2006-01-24 00:44:44 +03:00
|
|
|
|
};
|
|
|
|
|
#endif
|
|
|
|
|
#define BX_TOKEN_REG_AL 258
|
|
|
|
|
#define BX_TOKEN_REG_BL 259
|
|
|
|
|
#define BX_TOKEN_REG_CL 260
|
|
|
|
|
#define BX_TOKEN_REG_DL 261
|
|
|
|
|
#define BX_TOKEN_REG_AH 262
|
|
|
|
|
#define BX_TOKEN_REG_BH 263
|
|
|
|
|
#define BX_TOKEN_REG_CH 264
|
|
|
|
|
#define BX_TOKEN_REG_DH 265
|
|
|
|
|
#define BX_TOKEN_REG_AX 266
|
|
|
|
|
#define BX_TOKEN_REG_BX 267
|
|
|
|
|
#define BX_TOKEN_REG_CX 268
|
|
|
|
|
#define BX_TOKEN_REG_DX 269
|
|
|
|
|
#define BX_TOKEN_REG_EAX 270
|
|
|
|
|
#define BX_TOKEN_REG_EBX 271
|
|
|
|
|
#define BX_TOKEN_REG_ECX 272
|
|
|
|
|
#define BX_TOKEN_REG_EDX 273
|
|
|
|
|
#define BX_TOKEN_REG_SI 274
|
|
|
|
|
#define BX_TOKEN_REG_DI 275
|
|
|
|
|
#define BX_TOKEN_REG_BP 276
|
|
|
|
|
#define BX_TOKEN_REG_SP 277
|
|
|
|
|
#define BX_TOKEN_REG_IP 278
|
|
|
|
|
#define BX_TOKEN_REG_ESI 279
|
|
|
|
|
#define BX_TOKEN_REG_EDI 280
|
|
|
|
|
#define BX_TOKEN_REG_EBP 281
|
|
|
|
|
#define BX_TOKEN_REG_ESP 282
|
|
|
|
|
#define BX_TOKEN_REG_EIP 283
|
2006-01-25 21:13:44 +03:00
|
|
|
|
#define BX_TOKEN_CS 284
|
|
|
|
|
#define BX_TOKEN_ES 285
|
|
|
|
|
#define BX_TOKEN_SS 286
|
|
|
|
|
#define BX_TOKEN_DS 287
|
|
|
|
|
#define BX_TOKEN_FS 288
|
|
|
|
|
#define BX_TOKEN_GS 289
|
|
|
|
|
#define BX_TOKEN_FLAGS 290
|
|
|
|
|
#define BX_TOKEN_ON 291
|
|
|
|
|
#define BX_TOKEN_OFF 292
|
|
|
|
|
#define BX_TOKEN_CONTINUE 293
|
|
|
|
|
#define BX_TOKEN_STEPN 294
|
|
|
|
|
#define BX_TOKEN_STEP_OVER 295
|
|
|
|
|
#define BX_TOKEN_NEXT_STEP 296
|
|
|
|
|
#define BX_TOKEN_SET 297
|
|
|
|
|
#define BX_TOKEN_DEBUGGER 298
|
|
|
|
|
#define BX_TOKEN_LIST_BREAK 299
|
|
|
|
|
#define BX_TOKEN_VBREAKPOINT 300
|
|
|
|
|
#define BX_TOKEN_LBREAKPOINT 301
|
|
|
|
|
#define BX_TOKEN_PBREAKPOINT 302
|
|
|
|
|
#define BX_TOKEN_DEL_BREAKPOINT 303
|
|
|
|
|
#define BX_TOKEN_ENABLE_BREAKPOINT 304
|
|
|
|
|
#define BX_TOKEN_DISABLE_BREAKPOINT 305
|
|
|
|
|
#define BX_TOKEN_INFO 306
|
|
|
|
|
#define BX_TOKEN_QUIT 307
|
|
|
|
|
#define BX_TOKEN_REGISTERS 308
|
|
|
|
|
#define BX_TOKEN_CPU 309
|
|
|
|
|
#define BX_TOKEN_FPU 310
|
|
|
|
|
#define BX_TOKEN_SSE 311
|
|
|
|
|
#define BX_TOKEN_ALL 312
|
|
|
|
|
#define BX_TOKEN_IDT 313
|
|
|
|
|
#define BX_TOKEN_GDT 314
|
|
|
|
|
#define BX_TOKEN_LDT 315
|
|
|
|
|
#define BX_TOKEN_TSS 316
|
|
|
|
|
#define BX_TOKEN_DIRTY 317
|
|
|
|
|
#define BX_TOKEN_LINUX 318
|
|
|
|
|
#define BX_TOKEN_CONTROL_REGS 319
|
|
|
|
|
#define BX_TOKEN_EXAMINE 320
|
|
|
|
|
#define BX_TOKEN_XFORMAT 321
|
|
|
|
|
#define BX_TOKEN_DISFORMAT 322
|
|
|
|
|
#define BX_TOKEN_SETPMEM 323
|
|
|
|
|
#define BX_TOKEN_SYMBOLNAME 324
|
|
|
|
|
#define BX_TOKEN_QUERY 325
|
|
|
|
|
#define BX_TOKEN_PENDING 326
|
|
|
|
|
#define BX_TOKEN_TAKE 327
|
|
|
|
|
#define BX_TOKEN_DMA 328
|
|
|
|
|
#define BX_TOKEN_IRQ 329
|
|
|
|
|
#define BX_TOKEN_DUMP_CPU 330
|
|
|
|
|
#define BX_TOKEN_SET_CPU 331
|
|
|
|
|
#define BX_TOKEN_DISASSEMBLE 332
|
|
|
|
|
#define BX_TOKEN_INSTRUMENT 333
|
|
|
|
|
#define BX_TOKEN_START 334
|
|
|
|
|
#define BX_TOKEN_STOP 335
|
|
|
|
|
#define BX_TOKEN_RESET 336
|
|
|
|
|
#define BX_TOKEN_PRINT 337
|
2006-01-26 01:20:00 +03:00
|
|
|
|
#define BX_TOKEN_STRING 338
|
|
|
|
|
#define BX_TOKEN_DOIT 339
|
|
|
|
|
#define BX_TOKEN_CRC 340
|
2006-01-31 22:45:34 +03:00
|
|
|
|
#define BX_TOKEN_TRACE 341
|
|
|
|
|
#define BX_TOKEN_TRACEREG 342
|
2006-01-26 01:20:00 +03:00
|
|
|
|
#define BX_TOKEN_SWITCH_MODE 343
|
|
|
|
|
#define BX_TOKEN_SIZE 344
|
|
|
|
|
#define BX_TOKEN_PTIME 345
|
|
|
|
|
#define BX_TOKEN_TIMEBP_ABSOLUTE 346
|
|
|
|
|
#define BX_TOKEN_TIMEBP 347
|
|
|
|
|
#define BX_TOKEN_RECORD 348
|
|
|
|
|
#define BX_TOKEN_PLAYBACK 349
|
|
|
|
|
#define BX_TOKEN_MODEBP 350
|
|
|
|
|
#define BX_TOKEN_PRINT_STACK 351
|
|
|
|
|
#define BX_TOKEN_WATCH 352
|
|
|
|
|
#define BX_TOKEN_UNWATCH 353
|
|
|
|
|
#define BX_TOKEN_READ 354
|
|
|
|
|
#define BX_TOKEN_WRITE 355
|
|
|
|
|
#define BX_TOKEN_SHOW 356
|
|
|
|
|
#define BX_TOKEN_LOAD_SYMBOLS 357
|
|
|
|
|
#define BX_TOKEN_SYMBOLS 358
|
|
|
|
|
#define BX_TOKEN_LIST_SYMBOLS 359
|
|
|
|
|
#define BX_TOKEN_GLOBAL 360
|
|
|
|
|
#define BX_TOKEN_WHERE 361
|
|
|
|
|
#define BX_TOKEN_PRINT_STRING 362
|
|
|
|
|
#define BX_TOKEN_NUMERIC 363
|
|
|
|
|
#define BX_TOKEN_LONG_NUMERIC 364
|
|
|
|
|
#define BX_TOKEN_NE2000 365
|
|
|
|
|
#define BX_TOKEN_PIC 366
|
|
|
|
|
#define BX_TOKEN_PAGE 367
|
2006-01-31 22:45:34 +03:00
|
|
|
|
#define BX_TOKEN_HELP 368
|
|
|
|
|
#define BX_TOKEN_CALC 369
|
|
|
|
|
#define BX_TOKEN_VGA 370
|
|
|
|
|
#define BX_TOKEN_RSHIFT 371
|
|
|
|
|
#define BX_TOKEN_LSHIFT 372
|
|
|
|
|
#define BX_TOKEN_IVT 373
|
|
|
|
|
#define NEG 374
|
|
|
|
|
#define NOT 375
|
2006-01-24 00:44:44 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Copy the first part of user declarations. */
|
|
|
|
|
#line 5 "parser.y"
|
|
|
|
|
|
2003-11-28 18:07:29 +03:00
|
|
|
|
#include <stdio.h>
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
#include "debug.h"
|
|
|
|
|
|
|
|
|
|
#if BX_DEBUGGER
|
|
|
|
|
|
2006-01-24 00:44:44 +03:00
|
|
|
|
// %left '-' '+'
|
|
|
|
|
// %left '*' '/'
|
|
|
|
|
// %right
|
|
|
|
|
// %nonassoc UMINUS
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Enabling traces. */
|
|
|
|
|
#ifndef YYDEBUG
|
|
|
|
|
# define YYDEBUG 0
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/* Enabling verbose error messages. */
|
|
|
|
|
#ifdef YYERROR_VERBOSE
|
|
|
|
|
# undef YYERROR_VERBOSE
|
|
|
|
|
# define YYERROR_VERBOSE 1
|
|
|
|
|
#else
|
|
|
|
|
# define YYERROR_VERBOSE 0
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
|
2003-11-28 18:07:29 +03:00
|
|
|
|
#line 19 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
typedef union YYSTYPE {
|
2003-11-28 18:07:29 +03:00
|
|
|
|
char *sval;
|
|
|
|
|
Bit32u uval;
|
|
|
|
|
Bit64u ulval;
|
2006-01-25 21:13:44 +03:00
|
|
|
|
bx_bool bval;
|
|
|
|
|
bx_num_range uval_range;
|
|
|
|
|
} YYSTYPE;
|
2006-01-24 00:44:44 +03:00
|
|
|
|
/* Line 191 of yacc.c. */
|
2006-01-31 22:45:34 +03:00
|
|
|
|
#line 346 "y.tab.c"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
|
|
|
|
|
# define YYSTYPE_IS_DECLARED 1
|
|
|
|
|
# define YYSTYPE_IS_TRIVIAL 1
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Copy the second part of user declarations. */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Line 214 of yacc.c. */
|
2006-01-31 22:45:34 +03:00
|
|
|
|
#line 358 "y.tab.c"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
|
|
|
|
|
#if ! defined (yyoverflow) || YYERROR_VERBOSE
|
|
|
|
|
|
|
|
|
|
/* The parser invokes alloca or malloc; define the necessary symbols. */
|
|
|
|
|
|
|
|
|
|
# if YYSTACK_USE_ALLOCA
|
|
|
|
|
# define YYSTACK_ALLOC alloca
|
|
|
|
|
# else
|
|
|
|
|
# ifndef YYSTACK_USE_ALLOCA
|
|
|
|
|
# if defined (alloca) || defined (_ALLOCA_H)
|
|
|
|
|
# define YYSTACK_ALLOC alloca
|
|
|
|
|
# else
|
|
|
|
|
# ifdef __GNUC__
|
|
|
|
|
# define YYSTACK_ALLOC __builtin_alloca
|
|
|
|
|
# endif
|
|
|
|
|
# endif
|
|
|
|
|
# endif
|
|
|
|
|
# endif
|
|
|
|
|
|
|
|
|
|
# ifdef YYSTACK_ALLOC
|
|
|
|
|
/* Pacify GCC's `empty if-body' warning. */
|
|
|
|
|
# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
|
|
|
|
|
# else
|
|
|
|
|
# if defined (__STDC__) || defined (__cplusplus)
|
|
|
|
|
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
|
|
|
|
|
# define YYSIZE_T size_t
|
|
|
|
|
# endif
|
|
|
|
|
# define YYSTACK_ALLOC malloc
|
|
|
|
|
# define YYSTACK_FREE free
|
|
|
|
|
# endif
|
|
|
|
|
#endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if (! defined (yyoverflow) \
|
|
|
|
|
&& (! defined (__cplusplus) \
|
|
|
|
|
|| (YYSTYPE_IS_TRIVIAL)))
|
|
|
|
|
|
|
|
|
|
/* A type that is properly aligned for any stack member. */
|
|
|
|
|
union yyalloc
|
|
|
|
|
{
|
|
|
|
|
short yyss;
|
|
|
|
|
YYSTYPE yyvs;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/* The size of the maximum gap between one aligned stack and the next. */
|
|
|
|
|
# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
|
|
|
|
|
|
|
|
|
|
/* The size of an array large to enough to hold all stacks, each with
|
|
|
|
|
N elements. */
|
|
|
|
|
# define YYSTACK_BYTES(N) \
|
|
|
|
|
((N) * (sizeof (short) + sizeof (YYSTYPE)) \
|
|
|
|
|
+ YYSTACK_GAP_MAXIMUM)
|
|
|
|
|
|
|
|
|
|
/* Copy COUNT objects from FROM to TO. The source and destination do
|
|
|
|
|
not overlap. */
|
|
|
|
|
# ifndef YYCOPY
|
|
|
|
|
# if 1 < __GNUC__
|
|
|
|
|
# define YYCOPY(To, From, Count) \
|
|
|
|
|
__builtin_memcpy (To, From, (Count) * sizeof (*(From)))
|
|
|
|
|
# else
|
|
|
|
|
# define YYCOPY(To, From, Count) \
|
|
|
|
|
do \
|
|
|
|
|
{ \
|
|
|
|
|
register YYSIZE_T yyi; \
|
|
|
|
|
for (yyi = 0; yyi < (Count); yyi++) \
|
|
|
|
|
(To)[yyi] = (From)[yyi]; \
|
|
|
|
|
} \
|
|
|
|
|
while (0)
|
|
|
|
|
# endif
|
|
|
|
|
# endif
|
|
|
|
|
|
|
|
|
|
/* Relocate STACK from its old location to the new one. The
|
|
|
|
|
local variables YYSIZE and YYSTACKSIZE give the old and new number of
|
|
|
|
|
elements in the stack, and YYPTR gives the new location of the
|
|
|
|
|
stack. Advance YYPTR to a properly aligned location for the next
|
|
|
|
|
stack. */
|
|
|
|
|
# define YYSTACK_RELOCATE(Stack) \
|
|
|
|
|
do \
|
|
|
|
|
{ \
|
|
|
|
|
YYSIZE_T yynewbytes; \
|
|
|
|
|
YYCOPY (&yyptr->Stack, Stack, yysize); \
|
|
|
|
|
Stack = &yyptr->Stack; \
|
|
|
|
|
yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
|
|
|
|
|
yyptr += yynewbytes / sizeof (*yyptr); \
|
|
|
|
|
} \
|
|
|
|
|
while (0)
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#if defined (__STDC__) || defined (__cplusplus)
|
|
|
|
|
typedef signed char yysigned_char;
|
|
|
|
|
#else
|
|
|
|
|
typedef short yysigned_char;
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/* YYFINAL -- State number of the termination state. */
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#define YYFINAL 270
|
2006-01-24 00:44:44 +03:00
|
|
|
|
/* YYLAST -- Last index in YYTABLE. */
|
2006-01-31 22:45:34 +03:00
|
|
|
|
#define YYLAST 1248
|
2006-01-24 00:44:44 +03:00
|
|
|
|
|
|
|
|
|
/* YYNTOKENS -- Number of terminals. */
|
2006-01-31 22:45:34 +03:00
|
|
|
|
#define YYNTOKENS 134
|
2006-01-24 00:44:44 +03:00
|
|
|
|
/* YYNNTS -- Number of nonterminals. */
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#define YYNNTS 52
|
2006-01-24 00:44:44 +03:00
|
|
|
|
/* YYNRULES -- Number of rules. */
|
2006-01-26 01:20:00 +03:00
|
|
|
|
#define YYNRULES 256
|
2006-01-24 00:44:44 +03:00
|
|
|
|
/* YYNRULES -- Number of states. */
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#define YYNSTATES 468
|
2006-01-24 00:44:44 +03:00
|
|
|
|
|
|
|
|
|
/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
|
|
|
|
|
#define YYUNDEFTOK 2
|
2006-01-31 22:45:34 +03:00
|
|
|
|
#define YYMAXUTOK 375
|
2006-01-24 00:44:44 +03:00
|
|
|
|
|
|
|
|
|
#define YYTRANSLATE(YYX) \
|
|
|
|
|
((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
|
|
|
|
|
|
|
|
|
|
/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
|
|
|
|
|
static const unsigned char yytranslate[] =
|
|
|
|
|
{
|
|
|
|
|
0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
128, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
2006-01-24 00:44:44 +03:00
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
2, 2, 2, 131, 2, 2, 2, 2, 125, 2,
|
|
|
|
|
132, 133, 123, 119, 2, 120, 2, 124, 2, 2,
|
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 130, 2,
|
|
|
|
|
2, 129, 2, 2, 2, 2, 2, 2, 2, 2,
|
2006-01-24 00:44:44 +03:00
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
2, 2, 2, 2, 122, 2, 2, 2, 2, 2,
|
2006-01-24 00:44:44 +03:00
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
2, 2, 2, 2, 121, 2, 2, 2, 2, 2,
|
2006-01-24 00:44:44 +03:00
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
|
|
|
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
|
|
|
|
|
2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
|
|
|
|
|
5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
|
|
|
|
|
15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
|
|
|
|
|
25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
|
|
|
|
|
35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
|
|
|
|
|
45, 46, 47, 48, 49, 50, 51, 52, 53, 54,
|
|
|
|
|
55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
|
|
|
|
|
65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
|
|
|
|
|
75, 76, 77, 78, 79, 80, 81, 82, 83, 84,
|
|
|
|
|
85, 86, 87, 88, 89, 90, 91, 92, 93, 94,
|
|
|
|
|
95, 96, 97, 98, 99, 100, 101, 102, 103, 104,
|
|
|
|
|
105, 106, 107, 108, 109, 110, 111, 112, 113, 114,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
115, 116, 117, 118, 126, 127
|
2006-01-24 00:44:44 +03:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#if YYDEBUG
|
|
|
|
|
/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
|
|
|
|
|
YYRHS. */
|
|
|
|
|
static const unsigned short yyprhs[] =
|
|
|
|
|
{
|
|
|
|
|
0, 0, 3, 6, 8, 10, 12, 14, 16, 18,
|
|
|
|
|
20, 22, 24, 26, 28, 30, 32, 34, 36, 38,
|
|
|
|
|
40, 42, 44, 46, 48, 50, 52, 54, 56, 58,
|
|
|
|
|
60, 62, 64, 66, 68, 70, 72, 74, 76, 78,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
80, 82, 84, 85, 87, 89, 91, 93, 95, 97,
|
2006-02-01 21:12:08 +03:00
|
|
|
|
99, 101, 103, 105, 107, 109, 111, 115, 119, 123,
|
|
|
|
|
127, 130, 134, 137, 140, 144, 148, 151, 155, 159,
|
|
|
|
|
163, 166, 169, 174, 179, 184, 189, 193, 198, 204,
|
|
|
|
|
207, 211, 214, 217, 221, 224, 229, 235, 241, 247,
|
|
|
|
|
253, 259, 262, 268, 271, 275, 279, 282, 286, 291,
|
|
|
|
|
294, 297, 301, 305, 309, 313, 317, 321, 325, 329,
|
|
|
|
|
334, 339, 344, 349, 354, 358, 362, 366, 371, 375,
|
|
|
|
|
379, 385, 393, 397, 401, 402, 404, 406, 409, 412,
|
|
|
|
|
415, 419, 423, 427, 430, 435, 439, 443, 446, 452,
|
|
|
|
|
456, 460, 465, 469, 472, 476, 481, 485, 491, 495,
|
|
|
|
|
499, 504, 508, 512, 516, 520, 524, 528, 532, 536,
|
|
|
|
|
540, 544, 548, 552, 556, 560, 564, 568, 572, 576,
|
|
|
|
|
580, 584, 588, 592, 596, 600, 604, 608, 612, 616,
|
|
|
|
|
620, 624, 628, 632, 636, 640, 644, 648, 651, 655,
|
|
|
|
|
657, 659, 661, 663, 665, 667, 669, 671, 673, 675,
|
|
|
|
|
677, 679, 681, 683, 685, 687, 689, 691, 693, 695,
|
|
|
|
|
697, 699, 701, 703, 705, 707, 709, 711, 713, 715,
|
|
|
|
|
717, 719, 721, 725, 729, 733, 737, 741, 745, 749,
|
|
|
|
|
753, 757, 760, 763, 767, 769, 771, 773, 775, 777,
|
|
|
|
|
779, 781, 783, 785, 787, 791, 795, 799, 803, 807,
|
|
|
|
|
811, 815, 819, 823, 827, 830, 833
|
2006-01-24 00:44:44 +03:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/* YYRHS -- A `-1'-separated list of the rules' RHS. */
|
|
|
|
|
static const short yyrhs[] =
|
|
|
|
|
{
|
2006-02-01 21:12:08 +03:00
|
|
|
|
135, 0, -1, 135, 136, -1, 136, -1, 153, -1,
|
|
|
|
|
154, -1, 155, -1, 156, -1, 157, -1, 160, -1,
|
|
|
|
|
163, -1, 158, -1, 159, -1, 164, -1, 165, -1,
|
|
|
|
|
166, -1, 167, -1, 168, -1, 169, -1, 170, -1,
|
|
|
|
|
171, -1, 172, -1, 173, -1, 174, -1, 175, -1,
|
|
|
|
|
176, -1, 177, -1, 146, -1, 147, -1, 145, -1,
|
|
|
|
|
140, -1, 141, -1, 142, -1, 143, -1, 148, -1,
|
|
|
|
|
149, -1, 144, -1, 150, -1, 151, -1, 152, -1,
|
|
|
|
|
178, -1, 179, -1, -1, 128, -1, 36, -1, 37,
|
|
|
|
|
-1, 79, -1, 80, -1, 81, -1, 82, -1, 29,
|
|
|
|
|
-1, 30, -1, 31, -1, 32, -1, 33, -1, 34,
|
|
|
|
|
-1, 92, 109, 128, -1, 91, 109, 128, -1, 93,
|
|
|
|
|
83, 128, -1, 94, 83, 128, -1, 95, 128, -1,
|
|
|
|
|
101, 83, 128, -1, 101, 128, -1, 90, 128, -1,
|
|
|
|
|
86, 137, 128, -1, 87, 137, 128, -1, 96, 128,
|
|
|
|
|
-1, 96, 108, 128, -1, 97, 80, 128, -1, 97,
|
|
|
|
|
38, 128, -1, 97, 128, -1, 98, 128, -1, 97,
|
|
|
|
|
99, 108, 128, -1, 98, 99, 108, 128, -1, 97,
|
|
|
|
|
100, 108, 128, -1, 98, 100, 108, 128, -1, 102,
|
|
|
|
|
83, 128, -1, 102, 83, 108, 128, -1, 102, 105,
|
|
|
|
|
83, 108, 128, -1, 106, 128, -1, 107, 108, 128,
|
|
|
|
|
-1, 38, 128, -1, 39, 128, -1, 39, 108, 128,
|
|
|
|
|
-1, 40, 128, -1, 42, 77, 137, 128, -1, 42,
|
|
|
|
|
69, 129, 108, 128, -1, 42, 181, 129, 185, 128,
|
|
|
|
|
-1, 42, 180, 129, 185, 128, -1, 42, 182, 129,
|
|
|
|
|
185, 128, -1, 42, 183, 129, 185, 128, -1, 45,
|
|
|
|
|
128, -1, 45, 184, 130, 185, 128, -1, 46, 128,
|
|
|
|
|
-1, 46, 185, 128, -1, 46, 83, 128, -1, 47,
|
|
|
|
|
128, -1, 47, 185, 128, -1, 47, 123, 185, 128,
|
|
|
|
|
-1, 44, 128, -1, 104, 128, -1, 104, 83, 128,
|
|
|
|
|
-1, 51, 47, 128, -1, 51, 54, 128, -1, 51,
|
|
|
|
|
53, 128, -1, 51, 55, 128, -1, 51, 56, 128,
|
|
|
|
|
-1, 51, 57, 128, -1, 51, 62, 128, -1, 51,
|
|
|
|
|
58, 161, 128, -1, 51, 118, 161, 128, -1, 51,
|
|
|
|
|
59, 161, 128, -1, 51, 60, 161, 128, -1, 51,
|
|
|
|
|
61, 161, 128, -1, 51, 35, 128, -1, 51, 63,
|
|
|
|
|
128, -1, 51, 103, 128, -1, 51, 103, 83, 128,
|
|
|
|
|
-1, 51, 64, 128, -1, 51, 110, 128, -1, 51,
|
|
|
|
|
110, 112, 108, 128, -1, 51, 110, 112, 108, 53,
|
|
|
|
|
108, 128, -1, 51, 111, 128, -1, 51, 115, 128,
|
|
|
|
|
-1, -1, 162, -1, 185, -1, 185, 185, -1, 53,
|
|
|
|
|
128, -1, 75, 128, -1, 48, 108, 128, -1, 49,
|
|
|
|
|
108, 128, -1, 50, 108, 128, -1, 52, 128, -1,
|
|
|
|
|
65, 66, 185, 128, -1, 65, 66, 128, -1, 65,
|
|
|
|
|
185, 128, -1, 65, 128, -1, 68, 108, 108, 108,
|
|
|
|
|
128, -1, 70, 71, 128, -1, 72, 73, 128, -1,
|
|
|
|
|
72, 73, 108, 128, -1, 72, 74, 128, -1, 76,
|
|
|
|
|
128, -1, 77, 161, 128, -1, 77, 67, 161, 128,
|
|
|
|
|
-1, 77, 88, 128, -1, 77, 89, 129, 108, 128,
|
|
|
|
|
-1, 78, 138, 128, -1, 84, 108, 128, -1, 85,
|
|
|
|
|
108, 108, 128, -1, 113, 52, 128, -1, 113, 38,
|
|
|
|
|
128, -1, 113, 39, 128, -1, 113, 40, 128, -1,
|
|
|
|
|
113, 45, 128, -1, 113, 46, 128, -1, 113, 48,
|
|
|
|
|
128, -1, 113, 49, 128, -1, 113, 50, 128, -1,
|
|
|
|
|
113, 44, 128, -1, 113, 95, 128, -1, 113, 85,
|
|
|
|
|
128, -1, 113, 86, 128, -1, 113, 87, 128, -1,
|
|
|
|
|
113, 75, 128, -1, 113, 76, 128, -1, 113, 90,
|
|
|
|
|
128, -1, 113, 92, 128, -1, 113, 91, 128, -1,
|
|
|
|
|
113, 96, 128, -1, 113, 93, 128, -1, 113, 94,
|
|
|
|
|
128, -1, 113, 102, 128, -1, 113, 104, 128, -1,
|
|
|
|
|
113, 53, 128, -1, 113, 68, 128, -1, 113, 77,
|
|
|
|
|
128, -1, 113, 97, 128, -1, 113, 98, 128, -1,
|
|
|
|
|
113, 65, 128, -1, 113, 78, 128, -1, 113, 42,
|
|
|
|
|
128, -1, 113, 51, 128, -1, 113, 101, 128, -1,
|
|
|
|
|
113, 114, 128, -1, 113, 113, 128, -1, 113, 128,
|
|
|
|
|
-1, 114, 185, 128, -1, 7, -1, 8, -1, 9,
|
|
|
|
|
-1, 10, -1, 3, -1, 4, -1, 5, -1, 6,
|
|
|
|
|
-1, 11, -1, 12, -1, 13, -1, 14, -1, 19,
|
|
|
|
|
-1, 20, -1, 21, -1, 22, -1, 15, -1, 16,
|
|
|
|
|
-1, 17, -1, 18, -1, 24, -1, 25, -1, 26,
|
|
|
|
|
-1, 27, -1, 108, -1, 109, -1, 181, -1, 180,
|
|
|
|
|
-1, 182, -1, 183, -1, 139, -1, 23, -1, 28,
|
|
|
|
|
-1, 184, 119, 184, -1, 184, 120, 184, -1, 184,
|
|
|
|
|
123, 184, -1, 184, 124, 184, -1, 184, 116, 184,
|
|
|
|
|
-1, 184, 117, 184, -1, 184, 121, 184, -1, 184,
|
|
|
|
|
122, 184, -1, 184, 125, 184, -1, 131, 184, -1,
|
|
|
|
|
120, 184, -1, 132, 184, 133, -1, 108, -1, 109,
|
|
|
|
|
-1, 83, -1, 181, -1, 180, -1, 182, -1, 183,
|
|
|
|
|
-1, 139, -1, 23, -1, 28, -1, 185, 130, 185,
|
|
|
|
|
-1, 185, 119, 185, -1, 185, 120, 185, -1, 185,
|
|
|
|
|
123, 185, -1, 185, 124, 185, -1, 185, 116, 185,
|
|
|
|
|
-1, 185, 117, 185, -1, 185, 121, 185, -1, 185,
|
|
|
|
|
122, 185, -1, 185, 125, 185, -1, 131, 185, -1,
|
|
|
|
|
120, 185, -1, 132, 185, 133, -1
|
2006-01-24 00:44:44 +03:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
|
|
|
|
|
static const unsigned short yyrline[] =
|
|
|
|
|
{
|
2006-02-01 21:12:08 +03:00
|
|
|
|
0, 166, 166, 167, 171, 172, 173, 174, 175, 176,
|
|
|
|
|
177, 178, 179, 180, 181, 182, 183, 184, 185, 186,
|
|
|
|
|
187, 188, 189, 190, 191, 192, 193, 194, 195, 196,
|
|
|
|
|
197, 198, 199, 200, 201, 202, 203, 204, 205, 206,
|
|
|
|
|
207, 208, 209, 210, 216, 217, 222, 223, 224, 225,
|
|
|
|
|
230, 231, 232, 233, 234, 235, 240, 245, 253, 261,
|
|
|
|
|
269, 277, 282, 290, 298, 306, 314, 319, 327, 333,
|
|
|
|
|
339, 344, 349, 354, 359, 364, 372, 377, 382, 390,
|
|
|
|
|
398, 406, 414, 419, 427, 435, 440, 445, 449, 453,
|
|
|
|
|
457, 464, 469, 474, 479, 484, 489, 494, 499, 507,
|
|
|
|
|
515, 520, 528, 533, 538, 543, 548, 553, 558, 563,
|
|
|
|
|
568, 573, 578, 583, 588, 593, 598, 603, 608, 613,
|
|
|
|
|
618, 623, 628, 633, 645, 646, 649, 653, 659, 667,
|
|
|
|
|
675, 683, 690, 698, 706, 711, 716, 721, 729, 737,
|
|
|
|
|
745, 750, 755, 763, 771, 776, 781, 786, 794, 802,
|
|
|
|
|
810, 818, 823, 828, 833, 838, 843, 848, 853, 858,
|
|
|
|
|
863, 868, 873, 878, 884, 890, 895, 900, 905, 910,
|
|
|
|
|
915, 920, 925, 930, 935, 940, 945, 950, 959, 968,
|
|
|
|
|
975, 988, 996, 1006, 1026, 1040, 1050, 1055, 1063, 1071,
|
|
|
|
|
1072, 1073, 1074, 1079, 1080, 1081, 1082, 1087, 1088, 1089,
|
|
|
|
|
1090, 1091, 1092, 1093, 1094, 1099, 1100, 1101, 1102, 1103,
|
|
|
|
|
1104, 1105, 1106, 1120, 1121, 1122, 1123, 1124, 1125, 1126,
|
|
|
|
|
1127, 1128, 1129, 1130, 1131, 1132, 1133, 1134, 1135, 1136,
|
|
|
|
|
1137, 1138, 1139, 1140, 1145, 1146, 1147, 1148, 1149, 1150,
|
|
|
|
|
1151, 1152, 1153, 1154, 1155, 1156, 1157, 1158, 1159, 1160,
|
|
|
|
|
1161, 1162, 1163, 1164, 1165, 1166, 1167
|
2006-01-24 00:44:44 +03:00
|
|
|
|
};
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#if YYDEBUG || YYERROR_VERBOSE
|
|
|
|
|
/* YYTNME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
|
|
|
|
|
First, the terminals, then, starting at YYNTOKENS, nonterminals. */
|
|
|
|
|
static const char *const yytname[] =
|
|
|
|
|
{
|
|
|
|
|
"$end", "error", "$undefined", "BX_TOKEN_REG_AL", "BX_TOKEN_REG_BL",
|
|
|
|
|
"BX_TOKEN_REG_CL", "BX_TOKEN_REG_DL", "BX_TOKEN_REG_AH",
|
|
|
|
|
"BX_TOKEN_REG_BH", "BX_TOKEN_REG_CH", "BX_TOKEN_REG_DH",
|
|
|
|
|
"BX_TOKEN_REG_AX", "BX_TOKEN_REG_BX", "BX_TOKEN_REG_CX",
|
|
|
|
|
"BX_TOKEN_REG_DX", "BX_TOKEN_REG_EAX", "BX_TOKEN_REG_EBX",
|
|
|
|
|
"BX_TOKEN_REG_ECX", "BX_TOKEN_REG_EDX", "BX_TOKEN_REG_SI",
|
|
|
|
|
"BX_TOKEN_REG_DI", "BX_TOKEN_REG_BP", "BX_TOKEN_REG_SP",
|
|
|
|
|
"BX_TOKEN_REG_IP", "BX_TOKEN_REG_ESI", "BX_TOKEN_REG_EDI",
|
|
|
|
|
"BX_TOKEN_REG_EBP", "BX_TOKEN_REG_ESP", "BX_TOKEN_REG_EIP",
|
2006-01-25 21:13:44 +03:00
|
|
|
|
"BX_TOKEN_CS", "BX_TOKEN_ES", "BX_TOKEN_SS", "BX_TOKEN_DS",
|
|
|
|
|
"BX_TOKEN_FS", "BX_TOKEN_GS", "BX_TOKEN_FLAGS", "BX_TOKEN_ON",
|
|
|
|
|
"BX_TOKEN_OFF", "BX_TOKEN_CONTINUE", "BX_TOKEN_STEPN",
|
|
|
|
|
"BX_TOKEN_STEP_OVER", "BX_TOKEN_NEXT_STEP", "BX_TOKEN_SET",
|
|
|
|
|
"BX_TOKEN_DEBUGGER", "BX_TOKEN_LIST_BREAK", "BX_TOKEN_VBREAKPOINT",
|
|
|
|
|
"BX_TOKEN_LBREAKPOINT", "BX_TOKEN_PBREAKPOINT",
|
|
|
|
|
"BX_TOKEN_DEL_BREAKPOINT", "BX_TOKEN_ENABLE_BREAKPOINT",
|
|
|
|
|
"BX_TOKEN_DISABLE_BREAKPOINT", "BX_TOKEN_INFO", "BX_TOKEN_QUIT",
|
|
|
|
|
"BX_TOKEN_REGISTERS", "BX_TOKEN_CPU", "BX_TOKEN_FPU", "BX_TOKEN_SSE",
|
|
|
|
|
"BX_TOKEN_ALL", "BX_TOKEN_IDT", "BX_TOKEN_GDT", "BX_TOKEN_LDT",
|
|
|
|
|
"BX_TOKEN_TSS", "BX_TOKEN_DIRTY", "BX_TOKEN_LINUX",
|
|
|
|
|
"BX_TOKEN_CONTROL_REGS", "BX_TOKEN_EXAMINE", "BX_TOKEN_XFORMAT",
|
|
|
|
|
"BX_TOKEN_DISFORMAT", "BX_TOKEN_SETPMEM", "BX_TOKEN_SYMBOLNAME",
|
|
|
|
|
"BX_TOKEN_QUERY", "BX_TOKEN_PENDING", "BX_TOKEN_TAKE", "BX_TOKEN_DMA",
|
|
|
|
|
"BX_TOKEN_IRQ", "BX_TOKEN_DUMP_CPU", "BX_TOKEN_SET_CPU",
|
2006-01-24 22:03:55 +03:00
|
|
|
|
"BX_TOKEN_DISASSEMBLE", "BX_TOKEN_INSTRUMENT", "BX_TOKEN_START",
|
2006-01-26 01:20:00 +03:00
|
|
|
|
"BX_TOKEN_STOP", "BX_TOKEN_RESET", "BX_TOKEN_PRINT", "BX_TOKEN_STRING",
|
2006-01-31 22:45:34 +03:00
|
|
|
|
"BX_TOKEN_DOIT", "BX_TOKEN_CRC", "BX_TOKEN_TRACE", "BX_TOKEN_TRACEREG",
|
|
|
|
|
"BX_TOKEN_SWITCH_MODE", "BX_TOKEN_SIZE", "BX_TOKEN_PTIME",
|
|
|
|
|
"BX_TOKEN_TIMEBP_ABSOLUTE", "BX_TOKEN_TIMEBP", "BX_TOKEN_RECORD",
|
|
|
|
|
"BX_TOKEN_PLAYBACK", "BX_TOKEN_MODEBP", "BX_TOKEN_PRINT_STACK",
|
|
|
|
|
"BX_TOKEN_WATCH", "BX_TOKEN_UNWATCH", "BX_TOKEN_READ", "BX_TOKEN_WRITE",
|
|
|
|
|
"BX_TOKEN_SHOW", "BX_TOKEN_LOAD_SYMBOLS", "BX_TOKEN_SYMBOLS",
|
|
|
|
|
"BX_TOKEN_LIST_SYMBOLS", "BX_TOKEN_GLOBAL", "BX_TOKEN_WHERE",
|
|
|
|
|
"BX_TOKEN_PRINT_STRING", "BX_TOKEN_NUMERIC", "BX_TOKEN_LONG_NUMERIC",
|
|
|
|
|
"BX_TOKEN_NE2000", "BX_TOKEN_PIC", "BX_TOKEN_PAGE", "BX_TOKEN_HELP",
|
|
|
|
|
"BX_TOKEN_CALC", "BX_TOKEN_VGA", "BX_TOKEN_RSHIFT", "BX_TOKEN_LSHIFT",
|
|
|
|
|
"BX_TOKEN_IVT", "'+'", "'-'", "'|'", "'^'", "'*'", "'/'", "'&'", "NEG",
|
|
|
|
|
"NOT", "'\\n'", "'='", "':'", "'!'", "'('", "')'", "$accept",
|
2006-02-01 21:12:08 +03:00
|
|
|
|
"commands", "command", "BX_TOKEN_TOGGLE_ON_OFF",
|
|
|
|
|
"BX_TOKEN_INSTRUMENT_COMMAND", "BX_TOKEN_SEGREG", "timebp_command",
|
2006-01-31 22:45:34 +03:00
|
|
|
|
"record_command", "playback_command", "modebp_command", "show_command",
|
|
|
|
|
"ptime_command", "trace_command", "trace_reg_command",
|
|
|
|
|
"print_stack_command", "watch_point_command", "symbol_command",
|
|
|
|
|
"where_command", "print_string_command", "continue_command",
|
|
|
|
|
"stepN_command", "step_over_command", "set_command",
|
|
|
|
|
"breakpoint_command", "blist_command", "slist_command", "info_command",
|
2006-01-25 00:37:37 +03:00
|
|
|
|
"optional_numeric_range", "numeric_range", "regs_command",
|
|
|
|
|
"dump_cpu_command", "delete_command", "bpe_command", "bpd_command",
|
|
|
|
|
"quit_command", "examine_command", "setpmem_command", "query_command",
|
|
|
|
|
"take_command", "set_cpu_command", "disassemble_command",
|
2006-01-31 22:45:34 +03:00
|
|
|
|
"instrument_command", "doit_command", "crc_command", "help_command",
|
2006-01-25 21:13:44 +03:00
|
|
|
|
"calc_command", "BX_TOKEN_8BH_REG", "BX_TOKEN_8BL_REG",
|
|
|
|
|
"BX_TOKEN_16B_REG", "BX_TOKEN_32B_REG", "vexpression", "expression", 0
|
2003-11-28 18:07:29 +03:00
|
|
|
|
};
|
2006-01-24 00:44:44 +03:00
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
# ifdef YYPRINT
|
|
|
|
|
/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
|
|
|
|
|
token YYLEX-NUM. */
|
|
|
|
|
static const unsigned short yytoknum[] =
|
|
|
|
|
{
|
|
|
|
|
0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
|
|
|
|
|
265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
|
|
|
|
|
275, 276, 277, 278, 279, 280, 281, 282, 283, 284,
|
|
|
|
|
285, 286, 287, 288, 289, 290, 291, 292, 293, 294,
|
|
|
|
|
295, 296, 297, 298, 299, 300, 301, 302, 303, 304,
|
|
|
|
|
305, 306, 307, 308, 309, 310, 311, 312, 313, 314,
|
|
|
|
|
315, 316, 317, 318, 319, 320, 321, 322, 323, 324,
|
|
|
|
|
325, 326, 327, 328, 329, 330, 331, 332, 333, 334,
|
|
|
|
|
335, 336, 337, 338, 339, 340, 341, 342, 343, 344,
|
|
|
|
|
345, 346, 347, 348, 349, 350, 351, 352, 353, 354,
|
|
|
|
|
355, 356, 357, 358, 359, 360, 361, 362, 363, 364,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
365, 366, 367, 368, 369, 370, 371, 372, 373, 43,
|
|
|
|
|
45, 124, 94, 42, 47, 38, 374, 375, 10, 61,
|
|
|
|
|
58, 33, 40, 41
|
2003-11-28 18:07:29 +03:00
|
|
|
|
};
|
2006-01-24 00:44:44 +03:00
|
|
|
|
# endif
|
|
|
|
|
|
|
|
|
|
/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
|
|
|
|
|
static const unsigned char yyr1[] =
|
|
|
|
|
{
|
2006-01-31 22:45:34 +03:00
|
|
|
|
0, 134, 135, 135, 136, 136, 136, 136, 136, 136,
|
|
|
|
|
136, 136, 136, 136, 136, 136, 136, 136, 136, 136,
|
|
|
|
|
136, 136, 136, 136, 136, 136, 136, 136, 136, 136,
|
|
|
|
|
136, 136, 136, 136, 136, 136, 136, 136, 136, 136,
|
2006-02-01 21:12:08 +03:00
|
|
|
|
136, 136, 136, 136, 137, 137, 138, 138, 138, 138,
|
|
|
|
|
139, 139, 139, 139, 139, 139, 140, 140, 141, 142,
|
|
|
|
|
143, 144, 144, 145, 146, 147, 148, 148, 149, 149,
|
|
|
|
|
149, 149, 149, 149, 149, 149, 150, 150, 150, 151,
|
|
|
|
|
152, 153, 154, 154, 155, 156, 156, 156, 156, 156,
|
|
|
|
|
156, 157, 157, 157, 157, 157, 157, 157, 157, 158,
|
|
|
|
|
159, 159, 160, 160, 160, 160, 160, 160, 160, 160,
|
|
|
|
|
160, 160, 160, 160, 160, 160, 160, 160, 160, 160,
|
|
|
|
|
160, 160, 160, 160, 161, 161, 162, 162, 163, 164,
|
|
|
|
|
165, 166, 167, 168, 169, 169, 169, 169, 170, 171,
|
|
|
|
|
172, 172, 172, 173, 174, 174, 174, 174, 175, 176,
|
|
|
|
|
177, 178, 178, 178, 178, 178, 178, 178, 178, 178,
|
|
|
|
|
178, 178, 178, 178, 178, 178, 178, 178, 178, 178,
|
|
|
|
|
178, 178, 178, 178, 178, 178, 178, 178, 178, 178,
|
|
|
|
|
178, 178, 178, 178, 178, 178, 178, 178, 179, 180,
|
|
|
|
|
180, 180, 180, 181, 181, 181, 181, 182, 182, 182,
|
|
|
|
|
182, 182, 182, 182, 182, 183, 183, 183, 183, 183,
|
|
|
|
|
183, 183, 183, 184, 184, 184, 184, 184, 184, 184,
|
|
|
|
|
184, 184, 184, 184, 184, 184, 184, 184, 184, 184,
|
|
|
|
|
184, 184, 184, 184, 185, 185, 185, 185, 185, 185,
|
|
|
|
|
185, 185, 185, 185, 185, 185, 185, 185, 185, 185,
|
|
|
|
|
185, 185, 185, 185, 185, 185, 185
|
2003-11-28 18:07:29 +03:00
|
|
|
|
};
|
2006-01-24 00:44:44 +03:00
|
|
|
|
|
|
|
|
|
/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
|
|
|
|
|
static const unsigned char yyr2[] =
|
|
|
|
|
{
|
|
|
|
|
0, 2, 2, 1, 1, 1, 1, 1, 1, 1,
|
|
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
1, 1, 0, 1, 1, 1, 1, 1, 1, 1,
|
2006-02-01 21:12:08 +03:00
|
|
|
|
1, 1, 1, 1, 1, 1, 3, 3, 3, 3,
|
|
|
|
|
2, 3, 2, 2, 3, 3, 2, 3, 3, 3,
|
|
|
|
|
2, 2, 4, 4, 4, 4, 3, 4, 5, 2,
|
|
|
|
|
3, 2, 2, 3, 2, 4, 5, 5, 5, 5,
|
|
|
|
|
5, 2, 5, 2, 3, 3, 2, 3, 4, 2,
|
|
|
|
|
2, 3, 3, 3, 3, 3, 3, 3, 3, 4,
|
|
|
|
|
4, 4, 4, 4, 3, 3, 3, 4, 3, 3,
|
|
|
|
|
5, 7, 3, 3, 0, 1, 1, 2, 2, 2,
|
|
|
|
|
3, 3, 3, 2, 4, 3, 3, 2, 5, 3,
|
|
|
|
|
3, 4, 3, 2, 3, 4, 3, 5, 3, 3,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
4, 3, 3, 3, 3, 3, 3, 3, 3, 3,
|
2006-01-24 22:03:55 +03:00
|
|
|
|
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
|
|
|
|
|
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
3, 3, 3, 3, 3, 3, 3, 2, 3, 1,
|
2006-01-24 00:44:44 +03:00
|
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
|
|
|
1, 1, 3, 3, 3, 3, 3, 3, 3, 3,
|
|
|
|
|
3, 2, 2, 3, 1, 1, 1, 1, 1, 1,
|
2006-01-26 01:20:00 +03:00
|
|
|
|
1, 1, 1, 1, 3, 3, 3, 3, 3, 3,
|
|
|
|
|
3, 3, 3, 3, 2, 2, 3
|
2003-11-28 18:07:29 +03:00
|
|
|
|
};
|
2006-01-24 00:44:44 +03:00
|
|
|
|
|
|
|
|
|
/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
|
|
|
|
|
STATE-NUM when YYTABLE doesn't specify something else to do. Zero
|
|
|
|
|
means the default is an error. */
|
2006-01-24 22:03:55 +03:00
|
|
|
|
static const unsigned short yydefact[] =
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2006-01-31 22:45:34 +03:00
|
|
|
|
42, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
2006-01-24 00:44:44 +03:00
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
2006-02-01 21:12:08 +03:00
|
|
|
|
0, 124, 0, 0, 0, 0, 0, 0, 0, 0,
|
2006-01-24 00:44:44 +03:00
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
0, 0, 0, 43, 0, 3, 30, 31, 32, 33,
|
|
|
|
|
36, 29, 27, 28, 34, 35, 37, 38, 39, 4,
|
|
|
|
|
5, 6, 7, 8, 11, 12, 9, 10, 13, 14,
|
|
|
|
|
15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
|
2006-02-01 21:12:08 +03:00
|
|
|
|
25, 26, 40, 41, 81, 0, 82, 84, 193, 194,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
195, 196, 189, 190, 191, 192, 197, 198, 199, 200,
|
|
|
|
|
205, 206, 207, 208, 201, 202, 203, 204, 209, 210,
|
2006-02-01 21:12:08 +03:00
|
|
|
|
211, 212, 0, 0, 0, 0, 0, 0, 99, 220,
|
|
|
|
|
221, 50, 51, 52, 53, 54, 55, 213, 214, 0,
|
|
|
|
|
91, 0, 0, 219, 216, 215, 217, 218, 0, 242,
|
|
|
|
|
243, 236, 234, 235, 0, 93, 0, 0, 241, 238,
|
|
|
|
|
237, 239, 240, 0, 236, 0, 96, 0, 0, 0,
|
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 124, 124,
|
|
|
|
|
124, 124, 0, 0, 0, 0, 0, 0, 0, 124,
|
|
|
|
|
133, 128, 0, 137, 0, 0, 0, 0, 0, 129,
|
|
|
|
|
143, 124, 0, 0, 0, 125, 126, 46, 47, 48,
|
|
|
|
|
49, 0, 0, 0, 44, 45, 0, 0, 63, 0,
|
|
|
|
|
0, 0, 0, 60, 0, 66, 0, 0, 0, 0,
|
|
|
|
|
70, 0, 0, 71, 0, 62, 0, 0, 0, 100,
|
|
|
|
|
79, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
2006-01-24 22:03:55 +03:00
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
2006-02-01 21:12:08 +03:00
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 187, 0,
|
|
|
|
|
1, 2, 83, 0, 0, 0, 0, 0, 0, 232,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
231, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
2006-02-01 21:12:08 +03:00
|
|
|
|
0, 0, 95, 255, 254, 0, 0, 0, 0, 0,
|
|
|
|
|
0, 0, 0, 0, 0, 94, 0, 0, 97, 130,
|
|
|
|
|
131, 132, 114, 102, 104, 103, 105, 106, 107, 0,
|
|
|
|
|
0, 0, 0, 108, 115, 118, 0, 116, 0, 119,
|
|
|
|
|
122, 123, 0, 135, 0, 136, 0, 139, 0, 140,
|
|
|
|
|
142, 0, 146, 0, 144, 0, 127, 148, 149, 0,
|
|
|
|
|
64, 65, 57, 56, 58, 59, 67, 69, 68, 0,
|
|
|
|
|
0, 0, 0, 61, 0, 76, 0, 101, 80, 152,
|
|
|
|
|
153, 154, 182, 160, 155, 156, 157, 158, 159, 183,
|
|
|
|
|
151, 175, 180, 176, 165, 166, 177, 181, 162, 163,
|
|
|
|
|
164, 167, 169, 168, 171, 172, 161, 170, 178, 179,
|
|
|
|
|
184, 173, 174, 186, 185, 188, 0, 85, 0, 0,
|
|
|
|
|
0, 0, 233, 226, 227, 222, 223, 228, 229, 224,
|
|
|
|
|
225, 230, 0, 256, 249, 250, 245, 246, 251, 252,
|
|
|
|
|
247, 248, 253, 244, 98, 109, 111, 112, 113, 117,
|
|
|
|
|
0, 110, 134, 0, 141, 145, 0, 246, 150, 72,
|
|
|
|
|
74, 73, 75, 77, 0, 86, 88, 87, 89, 90,
|
|
|
|
|
92, 0, 120, 138, 147, 78, 0, 121
|
2003-11-28 18:07:29 +03:00
|
|
|
|
};
|
2006-01-24 00:44:44 +03:00
|
|
|
|
|
|
|
|
|
/* YYDEFGOTO[NTERM-NUM]. */
|
|
|
|
|
static const short yydefgoto[] =
|
|
|
|
|
{
|
2006-02-01 21:12:08 +03:00
|
|
|
|
-1, 44, 45, 206, 201, 148, 46, 47, 48, 49,
|
|
|
|
|
50, 51, 52, 53, 54, 55, 56, 57, 58, 59,
|
|
|
|
|
60, 61, 62, 63, 64, 65, 66, 194, 195, 67,
|
|
|
|
|
68, 69, 70, 71, 72, 73, 74, 75, 76, 77,
|
|
|
|
|
78, 79, 80, 81, 82, 83, 149, 150, 151, 152,
|
|
|
|
|
138, 196
|
2003-11-28 18:07:29 +03:00
|
|
|
|
};
|
2006-01-24 00:44:44 +03:00
|
|
|
|
|
|
|
|
|
/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
|
|
|
|
|
STATE-NUM. */
|
2006-01-31 22:45:34 +03:00
|
|
|
|
#define YYPACT_NINF -151
|
2006-01-24 00:44:44 +03:00
|
|
|
|
static const short yypact[] =
|
|
|
|
|
{
|
2006-01-31 22:45:34 +03:00
|
|
|
|
1045, -122, -96, -117, 1171, -115, 801, 639, 379, -93,
|
2006-02-01 21:12:08 +03:00
|
|
|
|
-69, -53, 386, -62, -57, 509, -36, 2, -10, -52,
|
|
|
|
|
-44, 347, -35, 15, 16, 32, 32, -3, 19, 29,
|
|
|
|
|
53, 61, 17, -92, 42, -90, -80, -79, -78, 23,
|
|
|
|
|
38, 508, 833, -151, 960, -151, -151, -151, -151, -151,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
-151, -151, -151, -151, -151, -151, -151, -151, -151, -151,
|
|
|
|
|
-151, -151, -151, -151, -151, -151, -151, -151, -151, -151,
|
|
|
|
|
-151, -151, -151, -151, -151, -151, -151, -151, -151, -151,
|
2006-02-01 21:12:08 +03:00
|
|
|
|
-151, -151, -151, -151, -151, 24, -151, -151, -151, -151,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
-151, -151, -151, -151, -151, -151, -151, -151, -151, -151,
|
|
|
|
|
-151, -151, -151, -151, -151, -151, -151, -151, -151, -151,
|
2006-02-01 21:12:08 +03:00
|
|
|
|
-151, -151, 25, 32, 26, 28, 31, 33, -151, -151,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
-151, -151, -151, -151, -151, -151, -151, -151, -151, 865,
|
|
|
|
|
-151, 865, 865, -151, -151, -151, -151, -151, 447, -151,
|
2006-02-01 21:12:08 +03:00
|
|
|
|
-151, 35, -151, -151, 833, -151, 833, 833, -151, -151,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
-151, -151, -151, 103, -151, 833, -151, 118, 43, 44,
|
|
|
|
|
64, 65, 68, 69, 70, 71, 72, 73, 833, 833,
|
2006-02-01 21:12:08 +03:00
|
|
|
|
833, 833, 76, 84, 85, -76, -98, 87, 93, 833,
|
|
|
|
|
-151, -151, 671, -151, 133, 56, 101, -91, 102, -151,
|
|
|
|
|
-151, 833, 104, 37, 108, -151, 86, -151, -151, -151,
|
|
|
|
|
-151, 116, 117, 79, -151, -151, 119, 123, -151, 131,
|
|
|
|
|
132, 134, 136, -151, 137, -151, 138, 139, 106, 164,
|
|
|
|
|
-151, 167, 175, -151, 158, -151, -85, 78, 160, -151,
|
|
|
|
|
-151, 170, 208, 209, 211, 212, 287, 288, 289, 290,
|
|
|
|
|
291, 292, 294, 295, 296, 297, 298, 299, 300, 301,
|
|
|
|
|
303, 304, 306, 309, 310, 323, 324, 325, 326, 329,
|
|
|
|
|
330, 331, 332, 333, 335, 336, 337, 338, -151, 157,
|
|
|
|
|
-151, -151, -151, 362, 353, 833, 833, 833, 833, -151,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
-151, 10, 865, 865, 865, 865, 865, 865, 865, 865,
|
2006-02-01 21:12:08 +03:00
|
|
|
|
865, 833, -151, 354, 354, -63, 833, 833, 833, 833,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
833, 833, 833, 833, 833, -151, 833, 352, -151, -151,
|
2006-02-01 21:12:08 +03:00
|
|
|
|
-151, -151, -151, -151, -151, -151, -151, -151, -151, 355,
|
|
|
|
|
357, 358, 363, -151, -151, -151, 364, -151, 382, -151,
|
|
|
|
|
-151, -151, 365, -151, 590, -151, 387, -151, 366, -151,
|
|
|
|
|
-151, 370, -151, 392, -151, 833, 984, -151, -151, 375,
|
|
|
|
|
-151, -151, -151, -151, -151, -151, -151, -151, -151, 377,
|
|
|
|
|
378, 380, 381, -151, 416, -151, 437, -151, -151, -151,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
-151, -151, -151, -151, -151, -151, -151, -151, -151, -151,
|
|
|
|
|
-151, -151, -151, -151, -151, -151, -151, -151, -151, -151,
|
|
|
|
|
-151, -151, -151, -151, -151, -151, -151, -151, -151, -151,
|
2006-02-01 21:12:08 +03:00
|
|
|
|
-151, -151, -151, -151, -151, -151, 421, -151, 607, 665,
|
|
|
|
|
827, 859, -151, -151, -151, -38, -38, -38, -38, -151,
|
|
|
|
|
-151, -151, 899, -151, 354, 354, -42, -42, -42, -42,
|
|
|
|
|
354, 354, 354, 984, -151, -151, -151, -151, -151, -151,
|
|
|
|
|
-51, -151, -151, 423, -151, -151, 427, -42, -151, -151,
|
|
|
|
|
-151, -151, -151, -151, 434, -151, -151, -151, -151, -151,
|
|
|
|
|
-151, 457, -151, -151, -151, -151, 446, -151
|
2003-11-28 18:07:29 +03:00
|
|
|
|
};
|
2006-01-24 00:44:44 +03:00
|
|
|
|
|
|
|
|
|
/* YYPGOTO[NTERM-NUM]. */
|
|
|
|
|
static const short yypgoto[] =
|
|
|
|
|
{
|
2006-02-01 21:12:08 +03:00
|
|
|
|
-151, -151, 109, 8, -151, 59, -151, -151, -151, -151,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
-151, -151, -151, -151, -151, -151, -151, -151, -151, -151,
|
2006-02-01 21:12:08 +03:00
|
|
|
|
-151, -151, -151, -151, -151, -151, -151, -150, -151, -151,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
-151, -151, -151, -151, -151, -151, -151, -151, -151, -151,
|
2006-02-01 21:12:08 +03:00
|
|
|
|
-151, -151, -151, -151, -151, -151, 18, 27, 36, 45,
|
|
|
|
|
-104, -7
|
2003-11-28 18:07:29 +03:00
|
|
|
|
};
|
2006-01-24 00:44:44 +03:00
|
|
|
|
|
|
|
|
|
/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
|
|
|
|
|
positive, shift that token. If negative, reduce the rule which
|
|
|
|
|
number is the opposite. If zero, do what YYDEFACT says.
|
|
|
|
|
If YYTABLE_NINF, syntax error. */
|
|
|
|
|
#define YYTABLE_NINF -1
|
|
|
|
|
static const unsigned short yytable[] =
|
|
|
|
|
{
|
2006-02-01 21:12:08 +03:00
|
|
|
|
153, 157, 461, 224, 226, 228, 84, 326, 184, 221,
|
|
|
|
|
222, 87, 85, 118, 328, 158, 214, 338, 319, 320,
|
|
|
|
|
321, 322, 114, 364, 134, 279, 227, 280, 281, 332,
|
|
|
|
|
329, 115, 86, 135, 207, 269, 215, 339, 223, 159,
|
|
|
|
|
116, 341, 136, 365, 197, 198, 199, 200, 225, 117,
|
|
|
|
|
229, 137, 327, 296, 297, 160, 298, 299, 300, 301,
|
|
|
|
|
302, 303, 304, 187, 188, 133, 180, 306, 204, 205,
|
|
|
|
|
423, 181, 185, 186, 296, 297, 189, 462, 282, 283,
|
|
|
|
|
216, 302, 303, 304, 190, 288, 289, 290, 306, 88,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
89, 90, 91, 92, 93, 94, 95, 96, 97, 98,
|
|
|
|
|
99, 100, 101, 102, 103, 104, 105, 106, 107, 139,
|
|
|
|
|
108, 109, 110, 111, 140, 121, 122, 123, 124, 125,
|
2006-02-01 21:12:08 +03:00
|
|
|
|
126, 274, 217, 202, 203, 208, 282, 283, 209, 284,
|
|
|
|
|
285, 286, 287, 288, 289, 290, 211, 293, 210, 294,
|
|
|
|
|
295, 218, 219, 412, 212, 213, 231, 134, 307, 134,
|
|
|
|
|
134, 230, 272, 271, 273, 275, 135, 276, 135, 135,
|
|
|
|
|
277, 366, 278, 292, 336, 136, 343, 136, 136, 154,
|
|
|
|
|
220, 309, 310, 0, 137, 334, 137, 137, 413, 414,
|
|
|
|
|
415, 416, 417, 418, 419, 420, 421, 349, 133, 346,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
133, 133, 311, 312, 142, 143, 313, 314, 315, 316,
|
|
|
|
|
317, 318, 296, 297, 323, 298, 345, 300, 301, 302,
|
2006-02-01 21:12:08 +03:00
|
|
|
|
303, 304, 324, 325, 359, 330, 306, 146, 147, 296,
|
|
|
|
|
297, 331, 298, 299, 300, 301, 302, 303, 304, 337,
|
|
|
|
|
340, 305, 342, 306, 296, 297, 344, 298, 299, 300,
|
|
|
|
|
301, 302, 303, 304, 347, 348, 308, 350, 306, 296,
|
|
|
|
|
297, 351, 298, 299, 300, 301, 302, 303, 304, 352,
|
|
|
|
|
353, 335, 354, 306, 355, 356, 357, 358, 408, 409,
|
|
|
|
|
410, 411, 360, 296, 297, 361, 298, 299, 300, 301,
|
|
|
|
|
302, 303, 304, 362, 422, 405, 363, 306, 367, 424,
|
|
|
|
|
425, 426, 427, 428, 429, 430, 431, 432, 368, 433,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
134, 134, 134, 134, 134, 134, 134, 134, 134, 135,
|
|
|
|
|
135, 135, 135, 135, 135, 135, 135, 135, 136, 136,
|
|
|
|
|
136, 136, 136, 136, 136, 136, 136, 137, 137, 137,
|
2006-02-01 21:12:08 +03:00
|
|
|
|
137, 137, 137, 137, 137, 137, 369, 370, 447, 371,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
372, 133, 133, 133, 133, 133, 133, 133, 133, 133,
|
|
|
|
|
88, 89, 90, 91, 92, 93, 94, 95, 96, 97,
|
2006-01-26 01:20:00 +03:00
|
|
|
|
98, 99, 100, 101, 102, 103, 104, 105, 106, 107,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
139, 108, 109, 110, 111, 140, 121, 122, 123, 124,
|
|
|
|
|
125, 126, 88, 89, 90, 91, 92, 93, 94, 95,
|
2006-01-26 01:20:00 +03:00
|
|
|
|
96, 97, 98, 99, 100, 101, 102, 103, 104, 105,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
106, 107, 139, 108, 109, 110, 111, 140, 121, 122,
|
|
|
|
|
123, 124, 125, 126, 191, 373, 374, 375, 376, 377,
|
|
|
|
|
378, 161, 379, 380, 381, 382, 383, 384, 385, 386,
|
|
|
|
|
154, 387, 388, 162, 389, 192, 193, 390, 391, 163,
|
|
|
|
|
164, 165, 166, 167, 168, 169, 170, 171, 172, 173,
|
|
|
|
|
174, 392, 393, 394, 395, 142, 143, 396, 397, 398,
|
|
|
|
|
399, 400, 154, 401, 402, 403, 404, 144, 296, 297,
|
2006-02-01 21:12:08 +03:00
|
|
|
|
406, 298, 299, 300, 301, 302, 303, 304, 146, 147,
|
|
|
|
|
434, 407, 306, 435, 306, 436, 437, 142, 143, 175,
|
|
|
|
|
440, 438, 439, 441, 444, 443, 176, 177, 445, 144,
|
|
|
|
|
446, 178, 155, 448, 179, 449, 450, 156, 451, 452,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
146, 147, 88, 89, 90, 91, 92, 93, 94, 95,
|
|
|
|
|
96, 97, 98, 99, 100, 101, 102, 103, 104, 105,
|
|
|
|
|
106, 107, 139, 108, 109, 110, 111, 140, 121, 122,
|
2006-02-01 21:12:08 +03:00
|
|
|
|
123, 124, 125, 126, 453, 454, 232, 233, 234, 455,
|
|
|
|
|
235, 463, 236, 237, 238, 464, 239, 240, 241, 242,
|
|
|
|
|
243, 244, 465, 282, 283, 466, 284, 285, 286, 287,
|
|
|
|
|
288, 289, 290, 245, 467, 182, 246, 291, 0, 0,
|
|
|
|
|
0, 0, 0, 247, 248, 249, 250, 0, 0, 0,
|
|
|
|
|
0, 0, 154, 251, 252, 253, 0, 0, 254, 255,
|
|
|
|
|
256, 257, 258, 259, 260, 261, 262, 0, 0, 263,
|
|
|
|
|
264, 0, 265, 0, 0, 0, 0, 142, 143, 0,
|
|
|
|
|
0, 266, 267, 0, 0, 0, 0, 0, 0, 144,
|
|
|
|
|
0, 0, 0, 0, 0, 0, 268, 183, 0, 0,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
146, 147, 88, 89, 90, 91, 92, 93, 94, 95,
|
|
|
|
|
96, 97, 98, 99, 100, 101, 102, 103, 104, 105,
|
|
|
|
|
106, 107, 139, 108, 109, 110, 111, 140, 121, 122,
|
|
|
|
|
123, 124, 125, 126, 88, 89, 90, 91, 92, 93,
|
2006-01-26 01:20:00 +03:00
|
|
|
|
94, 95, 96, 97, 98, 99, 100, 101, 102, 103,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
104, 105, 106, 107, 139, 108, 109, 110, 111, 140,
|
|
|
|
|
121, 122, 123, 124, 125, 126, 296, 297, 0, 298,
|
2006-02-01 21:12:08 +03:00
|
|
|
|
299, 300, 301, 302, 303, 304, 0, 0, 442, 0,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
306, 0, 141, 296, 297, 0, 298, 299, 300, 301,
|
2006-02-01 21:12:08 +03:00
|
|
|
|
302, 303, 304, 0, 0, 456, 0, 306, 0, 0,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 142, 143, 0,
|
|
|
|
|
0, 0, 0, 0, 154, 0, 0, 0, 0, 144,
|
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 145, 0, 0,
|
|
|
|
|
146, 147, 0, 0, 0, 0, 0, 0, 0, 142,
|
|
|
|
|
143, 296, 297, 0, 298, 299, 300, 301, 302, 303,
|
2006-02-01 21:12:08 +03:00
|
|
|
|
304, 144, 0, 457, 0, 306, 0, 0, 0, 333,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
0, 0, 146, 147, 88, 89, 90, 91, 92, 93,
|
|
|
|
|
94, 95, 96, 97, 98, 99, 100, 101, 102, 103,
|
|
|
|
|
104, 105, 106, 107, 119, 108, 109, 110, 111, 120,
|
|
|
|
|
121, 122, 123, 124, 125, 126, 88, 89, 90, 91,
|
2006-01-26 01:20:00 +03:00
|
|
|
|
92, 93, 94, 95, 96, 97, 98, 99, 100, 101,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
102, 103, 104, 105, 106, 107, 139, 108, 109, 110,
|
|
|
|
|
111, 140, 121, 122, 123, 124, 125, 126, 88, 89,
|
|
|
|
|
90, 91, 92, 93, 94, 95, 96, 97, 98, 99,
|
|
|
|
|
100, 101, 102, 103, 104, 105, 106, 107, 119, 108,
|
|
|
|
|
109, 110, 111, 120, 121, 122, 123, 124, 125, 126,
|
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 127,
|
|
|
|
|
128, 0, 0, 0, 0, 0, 154, 0, 0, 0,
|
|
|
|
|
0, 129, 0, 0, 0, 0, 0, 0, 0, 130,
|
|
|
|
|
0, 0, 131, 132, 0, 0, 0, 0, 0, 0,
|
|
|
|
|
0, 142, 143, 296, 297, 0, 298, 299, 300, 301,
|
2006-02-01 21:12:08 +03:00
|
|
|
|
302, 303, 304, 144, 0, 458, 0, 306, 0, 0,
|
|
|
|
|
270, 0, 0, 0, 146, 147, 0, 0, 0, 0,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
0, 0, 0, 127, 128, 296, 297, 0, 298, 299,
|
2006-02-01 21:12:08 +03:00
|
|
|
|
300, 301, 302, 303, 304, 129, 0, 459, 0, 306,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
0, 0, 0, 0, 0, 0, 131, 132, 1, 2,
|
|
|
|
|
3, 0, 4, 0, 5, 6, 7, 8, 9, 10,
|
|
|
|
|
11, 12, 13, 14, 0, 296, 297, 0, 298, 299,
|
2006-02-01 21:12:08 +03:00
|
|
|
|
300, 301, 302, 303, 304, 15, 0, 460, 16, 306,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
17, 0, 18, 0, 0, 19, 20, 21, 22, 0,
|
|
|
|
|
0, 0, 0, 0, 23, 24, 25, 26, 0, 0,
|
|
|
|
|
27, 28, 29, 30, 31, 32, 33, 34, 35, 0,
|
|
|
|
|
0, 36, 37, 0, 38, 0, 39, 40, 0, 0,
|
|
|
|
|
0, 0, 0, 41, 42, 0, 0, 0, 0, 0,
|
|
|
|
|
0, 0, 0, 1, 2, 3, 0, 4, 43, 5,
|
|
|
|
|
6, 7, 8, 9, 10, 11, 12, 13, 14, 0,
|
|
|
|
|
296, 297, 0, 298, 299, 300, 301, 302, 303, 304,
|
|
|
|
|
15, 0, 0, 16, 306, 17, 0, 18, 0, 0,
|
|
|
|
|
19, 20, 21, 22, 0, 0, 0, 0, 0, 23,
|
|
|
|
|
24, 25, 26, 0, 0, 27, 28, 29, 30, 31,
|
|
|
|
|
32, 33, 34, 35, 0, 0, 36, 37, 0, 38,
|
|
|
|
|
0, 39, 40, 0, 0, 0, 0, 0, 41, 42,
|
2006-01-26 01:20:00 +03:00
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
0, 0, 0, 43, 88, 89, 90, 91, 92, 93,
|
|
|
|
|
94, 95, 96, 97, 98, 99, 100, 101, 102, 103,
|
|
|
|
|
104, 105, 106, 107, 0, 108, 109, 110, 111, 0,
|
2006-01-26 01:20:00 +03:00
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
112, 0, 0, 0, 0, 0, 0, 0, 113
|
2003-11-28 18:07:29 +03:00
|
|
|
|
};
|
2006-01-24 00:44:44 +03:00
|
|
|
|
|
|
|
|
|
static const short yycheck[] =
|
|
|
|
|
{
|
2006-01-31 22:45:34 +03:00
|
|
|
|
7, 8, 53, 83, 83, 83, 128, 83, 15, 99,
|
2006-02-01 21:12:08 +03:00
|
|
|
|
100, 128, 108, 128, 112, 108, 108, 108, 168, 169,
|
|
|
|
|
170, 171, 4, 108, 6, 129, 105, 131, 132, 179,
|
|
|
|
|
128, 4, 128, 6, 26, 42, 128, 128, 128, 108,
|
|
|
|
|
4, 191, 6, 128, 79, 80, 81, 82, 128, 4,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
128, 6, 128, 116, 117, 108, 119, 120, 121, 122,
|
|
|
|
|
123, 124, 125, 73, 74, 6, 128, 130, 36, 37,
|
2006-02-01 21:12:08 +03:00
|
|
|
|
133, 128, 108, 71, 116, 117, 128, 128, 116, 117,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
38, 123, 124, 125, 128, 123, 124, 125, 130, 3,
|
|
|
|
|
4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
|
|
|
|
|
14, 15, 16, 17, 18, 19, 20, 21, 22, 23,
|
|
|
|
|
24, 25, 26, 27, 28, 29, 30, 31, 32, 33,
|
2006-02-01 21:12:08 +03:00
|
|
|
|
34, 113, 80, 108, 108, 128, 116, 117, 109, 119,
|
|
|
|
|
120, 121, 122, 123, 124, 125, 83, 144, 109, 146,
|
|
|
|
|
147, 99, 100, 133, 83, 128, 108, 129, 155, 131,
|
|
|
|
|
132, 128, 128, 44, 129, 129, 129, 129, 131, 132,
|
|
|
|
|
129, 83, 129, 128, 108, 129, 129, 131, 132, 83,
|
|
|
|
|
128, 128, 128, -1, 129, 182, 131, 132, 282, 283,
|
|
|
|
|
284, 285, 286, 287, 288, 289, 290, 108, 129, 196,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
131, 132, 128, 128, 108, 109, 128, 128, 128, 128,
|
|
|
|
|
128, 128, 116, 117, 128, 119, 120, 121, 122, 123,
|
2006-02-01 21:12:08 +03:00
|
|
|
|
124, 125, 128, 128, 108, 128, 130, 131, 132, 116,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
117, 128, 119, 120, 121, 122, 123, 124, 125, 128,
|
|
|
|
|
128, 128, 128, 130, 116, 117, 128, 119, 120, 121,
|
|
|
|
|
122, 123, 124, 125, 128, 128, 128, 128, 130, 116,
|
|
|
|
|
117, 128, 119, 120, 121, 122, 123, 124, 125, 128,
|
|
|
|
|
128, 128, 128, 130, 128, 128, 128, 128, 275, 276,
|
2006-02-01 21:12:08 +03:00
|
|
|
|
277, 278, 108, 116, 117, 108, 119, 120, 121, 122,
|
|
|
|
|
123, 124, 125, 108, 291, 128, 128, 130, 128, 296,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
297, 298, 299, 300, 301, 302, 303, 304, 128, 306,
|
|
|
|
|
282, 283, 284, 285, 286, 287, 288, 289, 290, 282,
|
|
|
|
|
283, 284, 285, 286, 287, 288, 289, 290, 282, 283,
|
|
|
|
|
284, 285, 286, 287, 288, 289, 290, 282, 283, 284,
|
2006-02-01 21:12:08 +03:00
|
|
|
|
285, 286, 287, 288, 289, 290, 128, 128, 345, 128,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
128, 282, 283, 284, 285, 286, 287, 288, 289, 290,
|
2006-01-26 01:20:00 +03:00
|
|
|
|
3, 4, 5, 6, 7, 8, 9, 10, 11, 12,
|
|
|
|
|
13, 14, 15, 16, 17, 18, 19, 20, 21, 22,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
|
2006-01-25 21:13:44 +03:00
|
|
|
|
33, 34, 3, 4, 5, 6, 7, 8, 9, 10,
|
2006-01-25 00:37:37 +03:00
|
|
|
|
11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
|
|
|
|
|
31, 32, 33, 34, 67, 128, 128, 128, 128, 128,
|
|
|
|
|
128, 35, 128, 128, 128, 128, 128, 128, 128, 128,
|
|
|
|
|
83, 128, 128, 47, 128, 88, 89, 128, 128, 53,
|
2006-01-25 21:13:44 +03:00
|
|
|
|
54, 55, 56, 57, 58, 59, 60, 61, 62, 63,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
64, 128, 128, 128, 128, 108, 109, 128, 128, 128,
|
|
|
|
|
128, 128, 83, 128, 128, 128, 128, 120, 116, 117,
|
2006-02-01 21:12:08 +03:00
|
|
|
|
108, 119, 120, 121, 122, 123, 124, 125, 131, 132,
|
|
|
|
|
128, 128, 130, 128, 130, 128, 128, 108, 109, 103,
|
|
|
|
|
108, 128, 128, 128, 128, 108, 110, 111, 128, 120,
|
|
|
|
|
108, 115, 123, 128, 118, 128, 128, 128, 128, 128,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
131, 132, 3, 4, 5, 6, 7, 8, 9, 10,
|
|
|
|
|
11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
|
|
|
|
|
21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
|
2006-02-01 21:12:08 +03:00
|
|
|
|
31, 32, 33, 34, 128, 108, 38, 39, 40, 128,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
42, 128, 44, 45, 46, 128, 48, 49, 50, 51,
|
2006-02-01 21:12:08 +03:00
|
|
|
|
52, 53, 128, 116, 117, 108, 119, 120, 121, 122,
|
|
|
|
|
123, 124, 125, 65, 128, 66, 68, 130, -1, -1,
|
|
|
|
|
-1, -1, -1, 75, 76, 77, 78, -1, -1, -1,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
-1, -1, 83, 85, 86, 87, -1, -1, 90, 91,
|
|
|
|
|
92, 93, 94, 95, 96, 97, 98, -1, -1, 101,
|
|
|
|
|
102, -1, 104, -1, -1, -1, -1, 108, 109, -1,
|
|
|
|
|
-1, 113, 114, -1, -1, -1, -1, -1, -1, 120,
|
|
|
|
|
-1, -1, -1, -1, -1, -1, 128, 128, -1, -1,
|
|
|
|
|
131, 132, 3, 4, 5, 6, 7, 8, 9, 10,
|
2006-01-25 00:37:37 +03:00
|
|
|
|
11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
|
|
|
|
|
31, 32, 33, 34, 3, 4, 5, 6, 7, 8,
|
2006-01-25 21:13:44 +03:00
|
|
|
|
9, 10, 11, 12, 13, 14, 15, 16, 17, 18,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
19, 20, 21, 22, 23, 24, 25, 26, 27, 28,
|
|
|
|
|
29, 30, 31, 32, 33, 34, 116, 117, -1, 119,
|
|
|
|
|
120, 121, 122, 123, 124, 125, -1, -1, 128, -1,
|
|
|
|
|
130, -1, 83, 116, 117, -1, 119, 120, 121, 122,
|
|
|
|
|
123, 124, 125, -1, -1, 128, -1, 130, -1, -1,
|
|
|
|
|
-1, -1, -1, -1, -1, -1, -1, 108, 109, -1,
|
|
|
|
|
-1, -1, -1, -1, 83, -1, -1, -1, -1, 120,
|
|
|
|
|
-1, -1, -1, -1, -1, -1, -1, 128, -1, -1,
|
|
|
|
|
131, 132, -1, -1, -1, -1, -1, -1, -1, 108,
|
|
|
|
|
109, 116, 117, -1, 119, 120, 121, 122, 123, 124,
|
|
|
|
|
125, 120, -1, 128, -1, 130, -1, -1, -1, 128,
|
|
|
|
|
-1, -1, 131, 132, 3, 4, 5, 6, 7, 8,
|
|
|
|
|
9, 10, 11, 12, 13, 14, 15, 16, 17, 18,
|
|
|
|
|
19, 20, 21, 22, 23, 24, 25, 26, 27, 28,
|
2006-01-26 01:20:00 +03:00
|
|
|
|
29, 30, 31, 32, 33, 34, 3, 4, 5, 6,
|
|
|
|
|
7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
17, 18, 19, 20, 21, 22, 23, 24, 25, 26,
|
|
|
|
|
27, 28, 29, 30, 31, 32, 33, 34, 3, 4,
|
2006-01-26 01:20:00 +03:00
|
|
|
|
5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
|
|
|
|
|
25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
|
|
|
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, 108,
|
|
|
|
|
109, -1, -1, -1, -1, -1, 83, -1, -1, -1,
|
|
|
|
|
-1, 120, -1, -1, -1, -1, -1, -1, -1, 128,
|
|
|
|
|
-1, -1, 131, 132, -1, -1, -1, -1, -1, -1,
|
|
|
|
|
-1, 108, 109, 116, 117, -1, 119, 120, 121, 122,
|
|
|
|
|
123, 124, 125, 120, -1, 128, -1, 130, -1, -1,
|
|
|
|
|
0, -1, -1, -1, 131, 132, -1, -1, -1, -1,
|
|
|
|
|
-1, -1, -1, 108, 109, 116, 117, -1, 119, 120,
|
|
|
|
|
121, 122, 123, 124, 125, 120, -1, 128, -1, 130,
|
|
|
|
|
-1, -1, -1, -1, -1, -1, 131, 132, 38, 39,
|
|
|
|
|
40, -1, 42, -1, 44, 45, 46, 47, 48, 49,
|
|
|
|
|
50, 51, 52, 53, -1, 116, 117, -1, 119, 120,
|
|
|
|
|
121, 122, 123, 124, 125, 65, -1, 128, 68, 130,
|
|
|
|
|
70, -1, 72, -1, -1, 75, 76, 77, 78, -1,
|
|
|
|
|
-1, -1, -1, -1, 84, 85, 86, 87, -1, -1,
|
|
|
|
|
90, 91, 92, 93, 94, 95, 96, 97, 98, -1,
|
|
|
|
|
-1, 101, 102, -1, 104, -1, 106, 107, -1, -1,
|
|
|
|
|
-1, -1, -1, 113, 114, -1, -1, -1, -1, -1,
|
|
|
|
|
-1, -1, -1, 38, 39, 40, -1, 42, 128, 44,
|
|
|
|
|
45, 46, 47, 48, 49, 50, 51, 52, 53, -1,
|
|
|
|
|
116, 117, -1, 119, 120, 121, 122, 123, 124, 125,
|
|
|
|
|
65, -1, -1, 68, 130, 70, -1, 72, -1, -1,
|
|
|
|
|
75, 76, 77, 78, -1, -1, -1, -1, -1, 84,
|
|
|
|
|
85, 86, 87, -1, -1, 90, 91, 92, 93, 94,
|
|
|
|
|
95, 96, 97, 98, -1, -1, 101, 102, -1, 104,
|
|
|
|
|
-1, 106, 107, -1, -1, -1, -1, -1, 113, 114,
|
2006-01-26 01:20:00 +03:00
|
|
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
-1, -1, -1, 128, 3, 4, 5, 6, 7, 8,
|
|
|
|
|
9, 10, 11, 12, 13, 14, 15, 16, 17, 18,
|
|
|
|
|
19, 20, 21, 22, -1, 24, 25, 26, 27, -1,
|
2006-01-26 01:20:00 +03:00
|
|
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
|
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
|
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
|
|
|
|
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
69, -1, -1, -1, -1, -1, -1, -1, 77
|
2003-11-28 18:07:29 +03:00
|
|
|
|
};
|
2006-01-24 00:44:44 +03:00
|
|
|
|
|
|
|
|
|
/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
|
|
|
|
|
symbol of state STATE-NUM. */
|
|
|
|
|
static const unsigned char yystos[] =
|
|
|
|
|
{
|
2006-01-25 21:13:44 +03:00
|
|
|
|
0, 38, 39, 40, 42, 44, 45, 46, 47, 48,
|
|
|
|
|
49, 50, 51, 52, 53, 65, 68, 70, 72, 75,
|
2006-01-26 01:20:00 +03:00
|
|
|
|
76, 77, 78, 84, 85, 86, 87, 90, 91, 92,
|
|
|
|
|
93, 94, 95, 96, 97, 98, 101, 102, 104, 106,
|
2006-02-01 21:12:08 +03:00
|
|
|
|
107, 113, 114, 128, 135, 136, 140, 141, 142, 143,
|
|
|
|
|
144, 145, 146, 147, 148, 149, 150, 151, 152, 153,
|
|
|
|
|
154, 155, 156, 157, 158, 159, 160, 163, 164, 165,
|
|
|
|
|
166, 167, 168, 169, 170, 171, 172, 173, 174, 175,
|
|
|
|
|
176, 177, 178, 179, 128, 108, 128, 128, 3, 4,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
|
|
|
|
|
15, 16, 17, 18, 19, 20, 21, 22, 24, 25,
|
2006-02-01 21:12:08 +03:00
|
|
|
|
26, 27, 69, 77, 180, 181, 182, 183, 128, 23,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
28, 29, 30, 31, 32, 33, 34, 108, 109, 120,
|
2006-02-01 21:12:08 +03:00
|
|
|
|
128, 131, 132, 139, 180, 181, 182, 183, 184, 23,
|
|
|
|
|
28, 83, 108, 109, 120, 128, 131, 132, 139, 180,
|
|
|
|
|
181, 182, 183, 185, 83, 123, 128, 185, 108, 108,
|
2006-01-26 01:20:00 +03:00
|
|
|
|
108, 35, 47, 53, 54, 55, 56, 57, 58, 59,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
60, 61, 62, 63, 64, 103, 110, 111, 115, 118,
|
2006-02-01 21:12:08 +03:00
|
|
|
|
128, 128, 66, 128, 185, 108, 71, 73, 74, 128,
|
|
|
|
|
128, 67, 88, 89, 161, 162, 185, 79, 80, 81,
|
|
|
|
|
82, 138, 108, 108, 36, 37, 137, 137, 128, 109,
|
|
|
|
|
109, 83, 83, 128, 108, 128, 38, 80, 99, 100,
|
|
|
|
|
128, 99, 100, 128, 83, 128, 83, 105, 83, 128,
|
|
|
|
|
128, 108, 38, 39, 40, 42, 44, 45, 46, 48,
|
|
|
|
|
49, 50, 51, 52, 53, 65, 68, 75, 76, 77,
|
|
|
|
|
78, 85, 86, 87, 90, 91, 92, 93, 94, 95,
|
|
|
|
|
96, 97, 98, 101, 102, 104, 113, 114, 128, 185,
|
|
|
|
|
0, 136, 128, 129, 137, 129, 129, 129, 129, 184,
|
|
|
|
|
184, 184, 116, 117, 119, 120, 121, 122, 123, 124,
|
|
|
|
|
125, 130, 128, 185, 185, 185, 116, 117, 119, 120,
|
|
|
|
|
121, 122, 123, 124, 125, 128, 130, 185, 128, 128,
|
|
|
|
|
128, 128, 128, 128, 128, 128, 128, 128, 128, 161,
|
|
|
|
|
161, 161, 161, 128, 128, 128, 83, 128, 112, 128,
|
|
|
|
|
128, 128, 161, 128, 185, 128, 108, 128, 108, 128,
|
|
|
|
|
128, 161, 128, 129, 128, 120, 185, 128, 128, 108,
|
|
|
|
|
128, 128, 128, 128, 128, 128, 128, 128, 128, 108,
|
|
|
|
|
108, 108, 108, 128, 108, 128, 83, 128, 128, 128,
|
2006-01-31 22:45:34 +03:00
|
|
|
|
128, 128, 128, 128, 128, 128, 128, 128, 128, 128,
|
|
|
|
|
128, 128, 128, 128, 128, 128, 128, 128, 128, 128,
|
|
|
|
|
128, 128, 128, 128, 128, 128, 128, 128, 128, 128,
|
2006-02-01 21:12:08 +03:00
|
|
|
|
128, 128, 128, 128, 128, 128, 108, 128, 185, 185,
|
|
|
|
|
185, 185, 133, 184, 184, 184, 184, 184, 184, 184,
|
|
|
|
|
184, 184, 185, 133, 185, 185, 185, 185, 185, 185,
|
|
|
|
|
185, 185, 185, 185, 128, 128, 128, 128, 128, 128,
|
|
|
|
|
108, 128, 128, 108, 128, 128, 108, 185, 128, 128,
|
|
|
|
|
128, 128, 128, 128, 108, 128, 128, 128, 128, 128,
|
|
|
|
|
128, 53, 128, 128, 128, 128, 108, 128
|
2003-11-28 18:07:29 +03:00
|
|
|
|
};
|
2006-01-24 00:44:44 +03:00
|
|
|
|
|
|
|
|
|
#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)
|
|
|
|
|
# define YYSIZE_T __SIZE_TYPE__
|
|
|
|
|
#endif
|
|
|
|
|
#if ! defined (YYSIZE_T) && defined (size_t)
|
|
|
|
|
# define YYSIZE_T size_t
|
|
|
|
|
#endif
|
|
|
|
|
#if ! defined (YYSIZE_T)
|
|
|
|
|
# if defined (__STDC__) || defined (__cplusplus)
|
|
|
|
|
# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
|
|
|
|
|
# define YYSIZE_T size_t
|
|
|
|
|
# endif
|
|
|
|
|
#endif
|
|
|
|
|
#if ! defined (YYSIZE_T)
|
|
|
|
|
# define YYSIZE_T unsigned int
|
2003-11-28 18:07:29 +03:00
|
|
|
|
#endif
|
2006-01-24 00:44:44 +03:00
|
|
|
|
|
|
|
|
|
#define yyerrok (yyerrstatus = 0)
|
|
|
|
|
#define yyclearin (yychar = YYEMPTY)
|
|
|
|
|
#define YYEMPTY (-2)
|
|
|
|
|
#define YYEOF 0
|
|
|
|
|
|
|
|
|
|
#define YYACCEPT goto yyacceptlab
|
|
|
|
|
#define YYABORT goto yyabortlab
|
|
|
|
|
#define YYERROR goto yyerrlab1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Like YYERROR except do call yyerror. This remains here temporarily
|
|
|
|
|
to ease the transition to the new meaning of YYERROR, for GCC.
|
|
|
|
|
Once GCC version 2 has supplanted version 1, this can go. */
|
|
|
|
|
|
|
|
|
|
#define YYFAIL goto yyerrlab
|
|
|
|
|
|
|
|
|
|
#define YYRECOVERING() (!!yyerrstatus)
|
|
|
|
|
|
|
|
|
|
#define YYBACKUP(Token, Value) \
|
|
|
|
|
do \
|
|
|
|
|
if (yychar == YYEMPTY && yylen == 1) \
|
|
|
|
|
{ \
|
|
|
|
|
yychar = (Token); \
|
|
|
|
|
yylval = (Value); \
|
|
|
|
|
yytoken = YYTRANSLATE (yychar); \
|
|
|
|
|
YYPOPSTACK; \
|
|
|
|
|
goto yybackup; \
|
|
|
|
|
} \
|
|
|
|
|
else \
|
|
|
|
|
{ \
|
|
|
|
|
yyerror ("syntax error: cannot back up");\
|
|
|
|
|
YYERROR; \
|
|
|
|
|
} \
|
|
|
|
|
while (0)
|
|
|
|
|
|
|
|
|
|
#define YYTERROR 1
|
|
|
|
|
#define YYERRCODE 256
|
|
|
|
|
|
|
|
|
|
/* YYLLOC_DEFAULT -- Compute the default location (before the actions
|
|
|
|
|
are run). */
|
|
|
|
|
|
|
|
|
|
#ifndef YYLLOC_DEFAULT
|
|
|
|
|
# define YYLLOC_DEFAULT(Current, Rhs, N) \
|
|
|
|
|
Current.first_line = Rhs[1].first_line; \
|
|
|
|
|
Current.first_column = Rhs[1].first_column; \
|
|
|
|
|
Current.last_line = Rhs[N].last_line; \
|
|
|
|
|
Current.last_column = Rhs[N].last_column;
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/* YYLEX -- calling `yylex' with the right arguments. */
|
|
|
|
|
|
|
|
|
|
#ifdef YYLEX_PARAM
|
|
|
|
|
# define YYLEX yylex (YYLEX_PARAM)
|
2003-11-28 18:07:29 +03:00
|
|
|
|
#else
|
2006-01-24 00:44:44 +03:00
|
|
|
|
# define YYLEX yylex ()
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/* Enable debugging if requested. */
|
|
|
|
|
#if YYDEBUG
|
|
|
|
|
|
|
|
|
|
# ifndef YYFPRINTF
|
|
|
|
|
# include <stdio.h> /* INFRINGES ON USER NAME SPACE */
|
|
|
|
|
# define YYFPRINTF fprintf
|
|
|
|
|
# endif
|
|
|
|
|
|
|
|
|
|
# define YYDPRINTF(Args) \
|
|
|
|
|
do { \
|
|
|
|
|
if (yydebug) \
|
|
|
|
|
YYFPRINTF Args; \
|
|
|
|
|
} while (0)
|
|
|
|
|
|
|
|
|
|
# define YYDSYMPRINT(Args) \
|
|
|
|
|
do { \
|
|
|
|
|
if (yydebug) \
|
|
|
|
|
yysymprint Args; \
|
|
|
|
|
} while (0)
|
|
|
|
|
|
|
|
|
|
# define YYDSYMPRINTF(Title, Token, Value, Location) \
|
|
|
|
|
do { \
|
|
|
|
|
if (yydebug) \
|
|
|
|
|
{ \
|
|
|
|
|
YYFPRINTF (stderr, "%s ", Title); \
|
|
|
|
|
yysymprint (stderr, \
|
|
|
|
|
Token, Value); \
|
|
|
|
|
YYFPRINTF (stderr, "\n"); \
|
|
|
|
|
} \
|
|
|
|
|
} while (0)
|
|
|
|
|
|
|
|
|
|
/*------------------------------------------------------------------.
|
|
|
|
|
| yy_stack_print -- Print the state stack from its BOTTOM up to its |
|
|
|
|
|
| TOP (cinluded). |
|
|
|
|
|
`------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
#if defined (__STDC__) || defined (__cplusplus)
|
|
|
|
|
static void
|
|
|
|
|
yy_stack_print (short *bottom, short *top)
|
2003-11-28 18:07:29 +03:00
|
|
|
|
#else
|
2006-01-24 00:44:44 +03:00
|
|
|
|
static void
|
|
|
|
|
yy_stack_print (bottom, top)
|
|
|
|
|
short *bottom;
|
|
|
|
|
short *top;
|
2003-11-28 18:07:29 +03:00
|
|
|
|
#endif
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
|
|
|
|
YYFPRINTF (stderr, "Stack now");
|
|
|
|
|
for (/* Nothing. */; bottom <= top; ++bottom)
|
|
|
|
|
YYFPRINTF (stderr, " %d", *bottom);
|
|
|
|
|
YYFPRINTF (stderr, "\n");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# define YY_STACK_PRINT(Bottom, Top) \
|
|
|
|
|
do { \
|
|
|
|
|
if (yydebug) \
|
|
|
|
|
yy_stack_print ((Bottom), (Top)); \
|
|
|
|
|
} while (0)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*------------------------------------------------.
|
|
|
|
|
| Report that the YYRULE is going to be reduced. |
|
|
|
|
|
`------------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
#if defined (__STDC__) || defined (__cplusplus)
|
|
|
|
|
static void
|
|
|
|
|
yy_reduce_print (int yyrule)
|
|
|
|
|
#else
|
|
|
|
|
static void
|
|
|
|
|
yy_reduce_print (yyrule)
|
|
|
|
|
int yyrule;
|
2003-11-28 18:07:29 +03:00
|
|
|
|
#endif
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
|
|
|
|
int yyi;
|
|
|
|
|
unsigned int yylno = yyrline[yyrule];
|
|
|
|
|
YYFPRINTF (stderr, "Reducing stack by rule %d (line %u), ",
|
|
|
|
|
yyrule - 1, yylno);
|
|
|
|
|
/* Print the symbols being reduced, and their result. */
|
|
|
|
|
for (yyi = yyprhs[yyrule]; 0 <= yyrhs[yyi]; yyi++)
|
|
|
|
|
YYFPRINTF (stderr, "%s ", yytname [yyrhs[yyi]]);
|
|
|
|
|
YYFPRINTF (stderr, "-> %s\n", yytname [yyr1[yyrule]]);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# define YY_REDUCE_PRINT(Rule) \
|
|
|
|
|
do { \
|
|
|
|
|
if (yydebug) \
|
|
|
|
|
yy_reduce_print (Rule); \
|
|
|
|
|
} while (0)
|
|
|
|
|
|
|
|
|
|
/* Nonzero means print parse trace. It is left uninitialized so that
|
|
|
|
|
multiple parsers can coexist. */
|
2003-11-28 18:07:29 +03:00
|
|
|
|
int yydebug;
|
2006-01-24 00:44:44 +03:00
|
|
|
|
#else /* !YYDEBUG */
|
|
|
|
|
# define YYDPRINTF(Args)
|
|
|
|
|
# define YYDSYMPRINT(Args)
|
|
|
|
|
# define YYDSYMPRINTF(Title, Token, Value, Location)
|
|
|
|
|
# define YY_STACK_PRINT(Bottom, Top)
|
|
|
|
|
# define YY_REDUCE_PRINT(Rule)
|
|
|
|
|
#endif /* !YYDEBUG */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* YYINITDEPTH -- initial size of the parser's stacks. */
|
|
|
|
|
#ifndef YYINITDEPTH
|
|
|
|
|
# define YYINITDEPTH 200
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
|
|
|
|
|
if the built-in stack extension method is used).
|
|
|
|
|
|
|
|
|
|
Do not make this value too large; the results are undefined if
|
|
|
|
|
SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH)
|
|
|
|
|
evaluated with infinite-precision integer arithmetic. */
|
|
|
|
|
|
|
|
|
|
#if YYMAXDEPTH == 0
|
|
|
|
|
# undef YYMAXDEPTH
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifndef YYMAXDEPTH
|
|
|
|
|
# define YYMAXDEPTH 10000
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if YYERROR_VERBOSE
|
|
|
|
|
|
|
|
|
|
# ifndef yystrlen
|
|
|
|
|
# if defined (__GLIBC__) && defined (_STRING_H)
|
|
|
|
|
# define yystrlen strlen
|
|
|
|
|
# else
|
|
|
|
|
/* Return the length of YYSTR. */
|
|
|
|
|
static YYSIZE_T
|
|
|
|
|
# if defined (__STDC__) || defined (__cplusplus)
|
|
|
|
|
yystrlen (const char *yystr)
|
|
|
|
|
# else
|
|
|
|
|
yystrlen (yystr)
|
|
|
|
|
const char *yystr;
|
|
|
|
|
# endif
|
|
|
|
|
{
|
|
|
|
|
register const char *yys = yystr;
|
|
|
|
|
|
|
|
|
|
while (*yys++ != '\0')
|
|
|
|
|
continue;
|
|
|
|
|
|
|
|
|
|
return yys - yystr - 1;
|
|
|
|
|
}
|
|
|
|
|
# endif
|
|
|
|
|
# endif
|
|
|
|
|
|
|
|
|
|
# ifndef yystpcpy
|
|
|
|
|
# if defined (__GLIBC__) && defined (_STRING_H) && defined (_GNU_SOURCE)
|
|
|
|
|
# define yystpcpy stpcpy
|
|
|
|
|
# else
|
|
|
|
|
/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
|
|
|
|
|
YYDEST. */
|
|
|
|
|
static char *
|
|
|
|
|
# if defined (__STDC__) || defined (__cplusplus)
|
|
|
|
|
yystpcpy (char *yydest, const char *yysrc)
|
|
|
|
|
# else
|
|
|
|
|
yystpcpy (yydest, yysrc)
|
|
|
|
|
char *yydest;
|
|
|
|
|
const char *yysrc;
|
|
|
|
|
# endif
|
|
|
|
|
{
|
|
|
|
|
register char *yyd = yydest;
|
|
|
|
|
register const char *yys = yysrc;
|
|
|
|
|
|
|
|
|
|
while ((*yyd++ = *yys++) != '\0')
|
|
|
|
|
continue;
|
|
|
|
|
|
|
|
|
|
return yyd - 1;
|
|
|
|
|
}
|
|
|
|
|
# endif
|
|
|
|
|
# endif
|
|
|
|
|
|
|
|
|
|
#endif /* !YYERROR_VERBOSE */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if YYDEBUG
|
|
|
|
|
/*--------------------------------.
|
|
|
|
|
| Print this symbol on YYOUTPUT. |
|
|
|
|
|
`--------------------------------*/
|
|
|
|
|
|
|
|
|
|
#if defined (__STDC__) || defined (__cplusplus)
|
|
|
|
|
static void
|
|
|
|
|
yysymprint (FILE *yyoutput, int yytype, YYSTYPE *yyvaluep)
|
2004-08-24 14:15:56 +04:00
|
|
|
|
#else
|
2006-01-24 00:44:44 +03:00
|
|
|
|
static void
|
|
|
|
|
yysymprint (yyoutput, yytype, yyvaluep)
|
|
|
|
|
FILE *yyoutput;
|
|
|
|
|
int yytype;
|
|
|
|
|
YYSTYPE *yyvaluep;
|
2004-08-24 14:15:56 +04:00
|
|
|
|
#endif
|
2003-11-28 18:07:29 +03:00
|
|
|
|
{
|
2006-01-24 00:44:44 +03:00
|
|
|
|
/* Pacify ``unused variable'' warnings. */
|
|
|
|
|
(void) yyvaluep;
|
2003-11-28 18:07:29 +03:00
|
|
|
|
|
2006-01-24 00:44:44 +03:00
|
|
|
|
if (yytype < YYNTOKENS)
|
2003-11-28 18:07:29 +03:00
|
|
|
|
{
|
2006-01-24 00:44:44 +03:00
|
|
|
|
YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
|
|
|
|
|
# ifdef YYPRINT
|
|
|
|
|
YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
|
|
|
|
|
# endif
|
2003-11-28 18:07:29 +03:00
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
else
|
|
|
|
|
YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
|
2003-11-28 18:07:29 +03:00
|
|
|
|
|
2006-01-24 00:44:44 +03:00
|
|
|
|
switch (yytype)
|
|
|
|
|
{
|
|
|
|
|
default:
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
YYFPRINTF (yyoutput, ")");
|
|
|
|
|
}
|
2003-11-28 18:07:29 +03:00
|
|
|
|
|
2006-01-24 00:44:44 +03:00
|
|
|
|
#endif /* ! YYDEBUG */
|
|
|
|
|
/*-----------------------------------------------.
|
|
|
|
|
| Release the memory associated to this symbol. |
|
|
|
|
|
`-----------------------------------------------*/
|
2003-11-28 18:07:29 +03:00
|
|
|
|
|
2006-01-24 00:44:44 +03:00
|
|
|
|
#if defined (__STDC__) || defined (__cplusplus)
|
|
|
|
|
static void
|
|
|
|
|
yydestruct (int yytype, YYSTYPE *yyvaluep)
|
|
|
|
|
#else
|
|
|
|
|
static void
|
|
|
|
|
yydestruct (yytype, yyvaluep)
|
|
|
|
|
int yytype;
|
|
|
|
|
YYSTYPE *yyvaluep;
|
|
|
|
|
#endif
|
|
|
|
|
{
|
|
|
|
|
/* Pacify ``unused variable'' warnings. */
|
|
|
|
|
(void) yyvaluep;
|
|
|
|
|
|
|
|
|
|
switch (yytype)
|
2003-11-28 18:07:29 +03:00
|
|
|
|
{
|
2006-01-24 00:44:44 +03:00
|
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Prevent warnings from -Wmissing-prototypes. */
|
|
|
|
|
|
|
|
|
|
#ifdef YYPARSE_PARAM
|
|
|
|
|
# if defined (__STDC__) || defined (__cplusplus)
|
|
|
|
|
int yyparse (void *YYPARSE_PARAM);
|
|
|
|
|
# else
|
|
|
|
|
int yyparse ();
|
|
|
|
|
# endif
|
|
|
|
|
#else /* ! YYPARSE_PARAM */
|
|
|
|
|
#if defined (__STDC__) || defined (__cplusplus)
|
|
|
|
|
int yyparse (void);
|
|
|
|
|
#else
|
|
|
|
|
int yyparse ();
|
2003-11-28 18:07:29 +03:00
|
|
|
|
#endif
|
2006-01-24 00:44:44 +03:00
|
|
|
|
#endif /* ! YYPARSE_PARAM */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* The lookahead symbol. */
|
|
|
|
|
int yychar;
|
|
|
|
|
|
|
|
|
|
/* The semantic value of the lookahead symbol. */
|
|
|
|
|
YYSTYPE yylval;
|
|
|
|
|
|
|
|
|
|
/* Number of syntax errors so far. */
|
|
|
|
|
int yynerrs;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*----------.
|
|
|
|
|
| yyparse. |
|
|
|
|
|
`----------*/
|
|
|
|
|
|
|
|
|
|
#ifdef YYPARSE_PARAM
|
|
|
|
|
# if defined (__STDC__) || defined (__cplusplus)
|
|
|
|
|
int yyparse (void *YYPARSE_PARAM)
|
|
|
|
|
# else
|
|
|
|
|
int yyparse (YYPARSE_PARAM)
|
|
|
|
|
void *YYPARSE_PARAM;
|
|
|
|
|
# endif
|
|
|
|
|
#else /* ! YYPARSE_PARAM */
|
|
|
|
|
#if defined (__STDC__) || defined (__cplusplus)
|
|
|
|
|
int
|
|
|
|
|
yyparse (void)
|
|
|
|
|
#else
|
|
|
|
|
int
|
|
|
|
|
yyparse ()
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
#endif
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
register int yystate;
|
|
|
|
|
register int yyn;
|
|
|
|
|
int yyresult;
|
|
|
|
|
/* Number of tokens to shift before error messages enabled. */
|
|
|
|
|
int yyerrstatus;
|
|
|
|
|
/* Lookahead token as an internal (translated) token number. */
|
|
|
|
|
int yytoken = 0;
|
|
|
|
|
|
|
|
|
|
/* Three stacks and their tools:
|
|
|
|
|
`yyss': related to states,
|
|
|
|
|
`yyvs': related to semantic values,
|
|
|
|
|
`yyls': related to locations.
|
|
|
|
|
|
|
|
|
|
Refer to the stacks thru separate pointers, to allow yyoverflow
|
|
|
|
|
to reallocate them elsewhere. */
|
|
|
|
|
|
|
|
|
|
/* The state stack. */
|
|
|
|
|
short yyssa[YYINITDEPTH];
|
|
|
|
|
short *yyss = yyssa;
|
|
|
|
|
register short *yyssp;
|
|
|
|
|
|
|
|
|
|
/* The semantic value stack. */
|
|
|
|
|
YYSTYPE yyvsa[YYINITDEPTH];
|
|
|
|
|
YYSTYPE *yyvs = yyvsa;
|
|
|
|
|
register YYSTYPE *yyvsp;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define YYPOPSTACK (yyvsp--, yyssp--)
|
|
|
|
|
|
|
|
|
|
YYSIZE_T yystacksize = YYINITDEPTH;
|
|
|
|
|
|
|
|
|
|
/* The variables used to return semantic value and location from the
|
|
|
|
|
action routines. */
|
|
|
|
|
YYSTYPE yyval;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* When reducing, the number of symbols on the RHS of the reduced
|
|
|
|
|
rule. */
|
|
|
|
|
int yylen;
|
|
|
|
|
|
|
|
|
|
YYDPRINTF ((stderr, "Starting parse\n"));
|
|
|
|
|
|
|
|
|
|
yystate = 0;
|
|
|
|
|
yyerrstatus = 0;
|
|
|
|
|
yynerrs = 0;
|
|
|
|
|
yychar = YYEMPTY; /* Cause a token to be read. */
|
|
|
|
|
|
|
|
|
|
/* Initialize stack pointers.
|
|
|
|
|
Waste one element of value and location stack
|
|
|
|
|
so that they stay on the same level as the state stack.
|
|
|
|
|
The wasted elements are never initialized. */
|
|
|
|
|
|
|
|
|
|
yyssp = yyss;
|
|
|
|
|
yyvsp = yyvs;
|
|
|
|
|
|
|
|
|
|
goto yysetstate;
|
|
|
|
|
|
|
|
|
|
/*------------------------------------------------------------.
|
|
|
|
|
| yynewstate -- Push a new state, which is found in yystate. |
|
|
|
|
|
`------------------------------------------------------------*/
|
|
|
|
|
yynewstate:
|
|
|
|
|
/* In all cases, when you get here, the value and location stacks
|
|
|
|
|
have just been pushed. so pushing a state here evens the stacks.
|
|
|
|
|
*/
|
|
|
|
|
yyssp++;
|
|
|
|
|
|
|
|
|
|
yysetstate:
|
|
|
|
|
*yyssp = yystate;
|
|
|
|
|
|
|
|
|
|
if (yyss + yystacksize - 1 <= yyssp)
|
|
|
|
|
{
|
|
|
|
|
/* Get the current used size of the three stacks, in elements. */
|
|
|
|
|
YYSIZE_T yysize = yyssp - yyss + 1;
|
|
|
|
|
|
|
|
|
|
#ifdef yyoverflow
|
|
|
|
|
{
|
|
|
|
|
/* Give user a chance to reallocate the stack. Use copies of
|
|
|
|
|
these so that the &'s don't force the real ones into
|
|
|
|
|
memory. */
|
|
|
|
|
YYSTYPE *yyvs1 = yyvs;
|
|
|
|
|
short *yyss1 = yyss;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Each stack pointer address is followed by the size of the
|
|
|
|
|
data in use in that stack, in bytes. This used to be a
|
|
|
|
|
conditional around just the two extra args, but that might
|
|
|
|
|
be undefined if yyoverflow is a macro. */
|
|
|
|
|
yyoverflow ("parser stack overflow",
|
|
|
|
|
&yyss1, yysize * sizeof (*yyssp),
|
|
|
|
|
&yyvs1, yysize * sizeof (*yyvsp),
|
|
|
|
|
|
|
|
|
|
&yystacksize);
|
|
|
|
|
|
|
|
|
|
yyss = yyss1;
|
|
|
|
|
yyvs = yyvs1;
|
|
|
|
|
}
|
|
|
|
|
#else /* no yyoverflow */
|
|
|
|
|
# ifndef YYSTACK_RELOCATE
|
|
|
|
|
goto yyoverflowlab;
|
|
|
|
|
# else
|
|
|
|
|
/* Extend the stack our own way. */
|
|
|
|
|
if (YYMAXDEPTH <= yystacksize)
|
|
|
|
|
goto yyoverflowlab;
|
|
|
|
|
yystacksize *= 2;
|
|
|
|
|
if (YYMAXDEPTH < yystacksize)
|
|
|
|
|
yystacksize = YYMAXDEPTH;
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
short *yyss1 = yyss;
|
|
|
|
|
union yyalloc *yyptr =
|
|
|
|
|
(union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
|
|
|
|
|
if (! yyptr)
|
|
|
|
|
goto yyoverflowlab;
|
|
|
|
|
YYSTACK_RELOCATE (yyss);
|
|
|
|
|
YYSTACK_RELOCATE (yyvs);
|
|
|
|
|
|
|
|
|
|
# undef YYSTACK_RELOCATE
|
|
|
|
|
if (yyss1 != yyssa)
|
|
|
|
|
YYSTACK_FREE (yyss1);
|
|
|
|
|
}
|
|
|
|
|
# endif
|
|
|
|
|
#endif /* no yyoverflow */
|
|
|
|
|
|
|
|
|
|
yyssp = yyss + yysize - 1;
|
|
|
|
|
yyvsp = yyvs + yysize - 1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
YYDPRINTF ((stderr, "Stack size increased to %lu\n",
|
|
|
|
|
(unsigned long int) yystacksize));
|
|
|
|
|
|
|
|
|
|
if (yyss + yystacksize - 1 <= yyssp)
|
|
|
|
|
YYABORT;
|
2003-11-28 18:07:29 +03:00
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
|
|
|
|
|
YYDPRINTF ((stderr, "Entering state %d\n", yystate));
|
|
|
|
|
|
|
|
|
|
goto yybackup;
|
|
|
|
|
|
|
|
|
|
/*-----------.
|
|
|
|
|
| yybackup. |
|
|
|
|
|
`-----------*/
|
|
|
|
|
yybackup:
|
|
|
|
|
|
|
|
|
|
/* Do appropriate processing given the current state. */
|
|
|
|
|
/* Read a lookahead token if we need one and don't already have one. */
|
|
|
|
|
/* yyresume: */
|
|
|
|
|
|
|
|
|
|
/* First try to decide what to do without reference to lookahead token. */
|
|
|
|
|
|
|
|
|
|
yyn = yypact[yystate];
|
|
|
|
|
if (yyn == YYPACT_NINF)
|
|
|
|
|
goto yydefault;
|
|
|
|
|
|
|
|
|
|
/* Not known => get a lookahead token if don't already have one. */
|
|
|
|
|
|
|
|
|
|
/* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */
|
|
|
|
|
if (yychar == YYEMPTY)
|
2003-11-28 18:07:29 +03:00
|
|
|
|
{
|
2006-01-24 00:44:44 +03:00
|
|
|
|
YYDPRINTF ((stderr, "Reading a token: "));
|
|
|
|
|
yychar = YYLEX;
|
2003-11-28 18:07:29 +03:00
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
|
|
|
|
|
if (yychar <= YYEOF)
|
2003-11-28 18:07:29 +03:00
|
|
|
|
{
|
2006-01-24 00:44:44 +03:00
|
|
|
|
yychar = yytoken = YYEOF;
|
|
|
|
|
YYDPRINTF ((stderr, "Now at end of input.\n"));
|
2003-11-28 18:07:29 +03:00
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
else
|
2003-11-28 18:07:29 +03:00
|
|
|
|
{
|
2006-01-24 00:44:44 +03:00
|
|
|
|
yytoken = YYTRANSLATE (yychar);
|
|
|
|
|
YYDSYMPRINTF ("Next token is", yytoken, &yylval, &yylloc);
|
2003-11-28 18:07:29 +03:00
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
|
|
|
|
|
/* If the proper action on seeing token YYTOKEN is to reduce or to
|
|
|
|
|
detect an error, take that action. */
|
|
|
|
|
yyn += yytoken;
|
|
|
|
|
if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
|
|
|
|
|
goto yydefault;
|
|
|
|
|
yyn = yytable[yyn];
|
|
|
|
|
if (yyn <= 0)
|
2003-11-28 18:07:29 +03:00
|
|
|
|
{
|
2006-01-24 00:44:44 +03:00
|
|
|
|
if (yyn == 0 || yyn == YYTABLE_NINF)
|
|
|
|
|
goto yyerrlab;
|
|
|
|
|
yyn = -yyn;
|
|
|
|
|
goto yyreduce;
|
2003-11-28 18:07:29 +03:00
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
|
|
|
|
|
if (yyn == YYFINAL)
|
|
|
|
|
YYACCEPT;
|
|
|
|
|
|
|
|
|
|
/* Shift the lookahead token. */
|
|
|
|
|
YYDPRINTF ((stderr, "Shifting token %s, ", yytname[yytoken]));
|
|
|
|
|
|
|
|
|
|
/* Discard the token being shifted unless it is eof. */
|
|
|
|
|
if (yychar != YYEOF)
|
|
|
|
|
yychar = YYEMPTY;
|
|
|
|
|
|
|
|
|
|
*++yyvsp = yylval;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Count tokens shifted since error; after three, turn off error
|
|
|
|
|
status. */
|
|
|
|
|
if (yyerrstatus)
|
|
|
|
|
yyerrstatus--;
|
|
|
|
|
|
|
|
|
|
yystate = yyn;
|
|
|
|
|
goto yynewstate;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*-----------------------------------------------------------.
|
|
|
|
|
| yydefault -- do the default action for the current state. |
|
|
|
|
|
`-----------------------------------------------------------*/
|
|
|
|
|
yydefault:
|
|
|
|
|
yyn = yydefact[yystate];
|
|
|
|
|
if (yyn == 0)
|
|
|
|
|
goto yyerrlab;
|
|
|
|
|
goto yyreduce;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*-----------------------------.
|
|
|
|
|
| yyreduce -- Do a reduction. |
|
|
|
|
|
`-----------------------------*/
|
2003-11-28 18:07:29 +03:00
|
|
|
|
yyreduce:
|
2006-01-24 00:44:44 +03:00
|
|
|
|
/* yyn is the number of a rule to reduce with. */
|
|
|
|
|
yylen = yyr2[yyn];
|
|
|
|
|
|
|
|
|
|
/* If YYLEN is nonzero, implement the default value of the action:
|
|
|
|
|
`$$ = $1'.
|
|
|
|
|
|
|
|
|
|
Otherwise, the following line sets YYVAL to garbage.
|
|
|
|
|
This behavior is undocumented and Bison
|
|
|
|
|
users should not rely upon it. Assigning to YYVAL
|
|
|
|
|
unconditionally makes the parser a bit smaller, and it avoids a
|
|
|
|
|
GCC warning that YYVAL may be used uninitialized. */
|
|
|
|
|
yyval = yyvsp[1-yylen];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
YY_REDUCE_PRINT (yyn);
|
|
|
|
|
switch (yyn)
|
2003-11-28 18:07:29 +03:00
|
|
|
|
{
|
2006-01-31 22:45:34 +03:00
|
|
|
|
case 43:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 211 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2003-11-28 18:07:29 +03:00
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 45:
|
|
|
|
|
#line 218 "parser.y"
|
|
|
|
|
{ yyval.bval=yyvsp[0].bval; }
|
|
|
|
|
break;
|
|
|
|
|
|
2006-01-31 22:45:34 +03:00
|
|
|
|
case 49:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 226 "parser.y"
|
|
|
|
|
{ yyval.sval=yyvsp[0].sval; }
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case 55:
|
|
|
|
|
#line 236 "parser.y"
|
2006-01-25 21:13:44 +03:00
|
|
|
|
{ yyval.uval=yyvsp[0].uval; }
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 56:
|
|
|
|
|
#line 241 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2003-11-28 18:07:29 +03:00
|
|
|
|
bx_dbg_timebp_command(0, yyvsp[-1].ulval);
|
|
|
|
|
free(yyvsp[-2].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 57:
|
|
|
|
|
#line 246 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2003-11-28 18:07:29 +03:00
|
|
|
|
bx_dbg_timebp_command(1, yyvsp[-1].ulval);
|
|
|
|
|
free(yyvsp[-2].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 58:
|
|
|
|
|
#line 254 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2003-11-28 18:07:29 +03:00
|
|
|
|
bx_dbg_record_command(yyvsp[-1].sval);
|
|
|
|
|
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 59:
|
|
|
|
|
#line 262 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2003-11-28 18:07:29 +03:00
|
|
|
|
bx_dbg_playback_command(yyvsp[-1].sval);
|
|
|
|
|
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 60:
|
|
|
|
|
#line 270 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
|
|
|
|
bx_dbg_modebp_command();
|
2003-11-28 18:07:29 +03:00
|
|
|
|
free(yyvsp[-1].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 61:
|
|
|
|
|
#line 278 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2003-11-28 18:07:29 +03:00
|
|
|
|
bx_dbg_show_command(yyvsp[-1].sval);
|
|
|
|
|
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 62:
|
|
|
|
|
#line 283 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2003-11-28 18:07:29 +03:00
|
|
|
|
bx_dbg_show_command(0);
|
|
|
|
|
free(yyvsp[-1].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 63:
|
|
|
|
|
#line 291 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2003-11-28 18:07:29 +03:00
|
|
|
|
bx_dbg_ptime_command();
|
|
|
|
|
free(yyvsp[-1].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 64:
|
|
|
|
|
#line 299 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2006-01-31 22:45:34 +03:00
|
|
|
|
bx_dbg_trace_command(yyvsp[-1].bval);
|
|
|
|
|
free(yyvsp[-2].sval);
|
2003-11-28 18:07:29 +03:00
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 65:
|
|
|
|
|
#line 307 "parser.y"
|
2006-01-31 22:45:34 +03:00
|
|
|
|
{
|
|
|
|
|
bx_dbg_trace_reg_command(yyvsp[-1].bval);
|
|
|
|
|
free(yyvsp[-2].sval);
|
2003-11-28 18:07:29 +03:00
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 66:
|
|
|
|
|
#line 315 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2003-11-28 18:07:29 +03:00
|
|
|
|
bx_dbg_print_stack_command(16);
|
|
|
|
|
free(yyvsp[-1].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 67:
|
|
|
|
|
#line 320 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2003-11-28 18:07:29 +03:00
|
|
|
|
bx_dbg_print_stack_command(yyvsp[-1].uval);
|
|
|
|
|
free(yyvsp[-2].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 68:
|
|
|
|
|
#line 328 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2003-11-28 18:07:29 +03:00
|
|
|
|
watchpoint_continue = 0;
|
2006-01-25 21:13:44 +03:00
|
|
|
|
dbg_printf("Will stop on watch points\n");
|
2003-11-28 18:07:29 +03:00
|
|
|
|
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 69:
|
|
|
|
|
#line 334 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2003-11-28 18:07:29 +03:00
|
|
|
|
watchpoint_continue = 1;
|
2006-01-25 21:13:44 +03:00
|
|
|
|
dbg_printf("Will not stop on watch points (they will still be logged)\n");
|
2003-11-28 18:07:29 +03:00
|
|
|
|
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 70:
|
|
|
|
|
#line 340 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2003-11-28 18:07:29 +03:00
|
|
|
|
bx_dbg_watch(-1, 0);
|
|
|
|
|
free(yyvsp[-1].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 71:
|
|
|
|
|
#line 345 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2003-11-28 18:07:29 +03:00
|
|
|
|
bx_dbg_unwatch(-1, 0);
|
|
|
|
|
free(yyvsp[-1].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 72:
|
|
|
|
|
#line 350 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2003-11-28 18:07:29 +03:00
|
|
|
|
bx_dbg_watch(1, yyvsp[-1].uval);
|
|
|
|
|
free(yyvsp[-3].sval); free(yyvsp[-2].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 73:
|
|
|
|
|
#line 355 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2003-11-28 18:07:29 +03:00
|
|
|
|
bx_dbg_unwatch(1, yyvsp[-1].uval);
|
|
|
|
|
free(yyvsp[-3].sval); free(yyvsp[-2].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 74:
|
|
|
|
|
#line 360 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2003-11-28 18:07:29 +03:00
|
|
|
|
bx_dbg_watch(0, yyvsp[-1].uval);
|
|
|
|
|
free(yyvsp[-3].sval); free(yyvsp[-2].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 75:
|
|
|
|
|
#line 365 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2003-11-28 18:07:29 +03:00
|
|
|
|
bx_dbg_unwatch(0, yyvsp[-1].uval);
|
|
|
|
|
free(yyvsp[-3].sval); free(yyvsp[-2].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 76:
|
|
|
|
|
#line 373 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2003-11-28 18:07:29 +03:00
|
|
|
|
bx_dbg_symbol_command(yyvsp[-1].sval, 0, 0);
|
|
|
|
|
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 77:
|
|
|
|
|
#line 378 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2003-11-28 18:07:29 +03:00
|
|
|
|
bx_dbg_symbol_command(yyvsp[-2].sval, 0, yyvsp[-1].uval);
|
|
|
|
|
free(yyvsp[-3].sval); free(yyvsp[-2].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 78:
|
|
|
|
|
#line 383 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2003-11-28 18:07:29 +03:00
|
|
|
|
bx_dbg_symbol_command(yyvsp[-2].sval, 1, yyvsp[-1].uval);
|
|
|
|
|
free(yyvsp[-4].sval); free(yyvsp[-3].sval); free(yyvsp[-2].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 79:
|
|
|
|
|
#line 391 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2003-11-28 18:07:29 +03:00
|
|
|
|
bx_dbg_where_command();
|
|
|
|
|
free(yyvsp[-1].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 80:
|
|
|
|
|
#line 399 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2003-11-28 18:07:29 +03:00
|
|
|
|
bx_dbg_print_string_command(yyvsp[-1].uval);
|
|
|
|
|
free(yyvsp[-2].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 81:
|
|
|
|
|
#line 407 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2003-11-28 18:07:29 +03:00
|
|
|
|
bx_dbg_continue_command();
|
|
|
|
|
free(yyvsp[-1].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 82:
|
|
|
|
|
#line 415 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2003-11-28 18:07:29 +03:00
|
|
|
|
bx_dbg_stepN_command(1);
|
|
|
|
|
free(yyvsp[-1].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 83:
|
|
|
|
|
#line 420 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2003-11-28 18:07:29 +03:00
|
|
|
|
bx_dbg_stepN_command(yyvsp[-1].uval);
|
|
|
|
|
free(yyvsp[-2].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 84:
|
|
|
|
|
#line 428 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2003-11-28 18:07:29 +03:00
|
|
|
|
bx_dbg_step_over_command();
|
|
|
|
|
free(yyvsp[-1].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 85:
|
|
|
|
|
#line 436 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2006-01-25 21:13:44 +03:00
|
|
|
|
bx_dbg_set_auto_disassemble(yyvsp[-1].bval);
|
|
|
|
|
free(yyvsp[-3].sval); free(yyvsp[-2].sval);
|
2003-11-28 18:07:29 +03:00
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 86:
|
|
|
|
|
#line 441 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2003-11-28 18:07:29 +03:00
|
|
|
|
bx_dbg_set_symbol_command(yyvsp[-3].sval, yyvsp[-1].uval);
|
|
|
|
|
free(yyvsp[-4].sval); free(yyvsp[-3].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 87:
|
|
|
|
|
#line 446 "parser.y"
|
2006-01-25 00:37:37 +03:00
|
|
|
|
{
|
2006-01-25 21:13:44 +03:00
|
|
|
|
bx_dbg_set_reg8l_value(yyvsp[-3].uval, yyvsp[-1].ulval);
|
2003-11-28 18:07:29 +03:00
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 88:
|
|
|
|
|
#line 450 "parser.y"
|
2006-01-25 21:13:44 +03:00
|
|
|
|
{
|
|
|
|
|
bx_dbg_set_reg8h_value(yyvsp[-3].uval, yyvsp[-1].ulval);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 89:
|
|
|
|
|
#line 454 "parser.y"
|
2006-01-25 21:13:44 +03:00
|
|
|
|
{
|
|
|
|
|
bx_dbg_set_reg16_value(yyvsp[-3].uval, yyvsp[-1].ulval);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 90:
|
|
|
|
|
#line 458 "parser.y"
|
2006-01-25 21:13:44 +03:00
|
|
|
|
{
|
|
|
|
|
bx_dbg_set_reg32_value(yyvsp[-3].uval, yyvsp[-1].ulval);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 91:
|
|
|
|
|
#line 465 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2006-01-25 00:37:37 +03:00
|
|
|
|
bx_dbg_vbreakpoint_command(bkAtIP, 0, 0);
|
|
|
|
|
free(yyvsp[-1].sval);
|
2003-11-28 18:07:29 +03:00
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 92:
|
|
|
|
|
#line 470 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2006-01-25 00:37:37 +03:00
|
|
|
|
bx_dbg_vbreakpoint_command(bkRegular, yyvsp[-3].ulval, yyvsp[-1].ulval);
|
|
|
|
|
free(yyvsp[-4].sval);
|
2003-11-28 18:07:29 +03:00
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 93:
|
|
|
|
|
#line 475 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2006-01-25 00:37:37 +03:00
|
|
|
|
bx_dbg_lbreakpoint_command(bkAtIP, 0);
|
|
|
|
|
free(yyvsp[-1].sval);
|
2003-11-28 18:07:29 +03:00
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 94:
|
|
|
|
|
#line 480 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2006-01-25 00:37:37 +03:00
|
|
|
|
bx_dbg_lbreakpoint_command(bkRegular, yyvsp[-1].ulval);
|
|
|
|
|
free(yyvsp[-2].sval);
|
2003-11-28 18:07:29 +03:00
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 95:
|
|
|
|
|
#line 485 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2006-01-25 00:37:37 +03:00
|
|
|
|
bx_dbg_lbreakpoint_symbol_command(yyvsp[-1].sval);
|
|
|
|
|
free(yyvsp[-2].sval);free(yyvsp[-1].sval);
|
2003-11-28 18:07:29 +03:00
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 96:
|
|
|
|
|
#line 490 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2006-01-25 00:37:37 +03:00
|
|
|
|
bx_dbg_pbreakpoint_command(bkAtIP, 0);
|
|
|
|
|
free(yyvsp[-1].sval);
|
2003-11-28 18:07:29 +03:00
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 97:
|
|
|
|
|
#line 495 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2003-11-28 18:07:29 +03:00
|
|
|
|
bx_dbg_pbreakpoint_command(bkRegular, yyvsp[-1].ulval);
|
2006-01-25 00:37:37 +03:00
|
|
|
|
free(yyvsp[-2].sval);
|
2003-11-28 18:07:29 +03:00
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 98:
|
|
|
|
|
#line 500 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2006-01-25 00:37:37 +03:00
|
|
|
|
bx_dbg_pbreakpoint_command(bkRegular, yyvsp[-1].ulval);
|
|
|
|
|
free(yyvsp[-3].sval);
|
2003-11-28 18:07:29 +03:00
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 99:
|
|
|
|
|
#line 508 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2006-01-25 00:37:37 +03:00
|
|
|
|
bx_dbg_info_bpoints_command();
|
2003-11-28 18:07:29 +03:00
|
|
|
|
free(yyvsp[-1].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 100:
|
|
|
|
|
#line 516 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2006-01-25 00:37:37 +03:00
|
|
|
|
bx_dbg_info_symbols_command(0);
|
|
|
|
|
free(yyvsp[-1].sval);
|
2003-11-28 18:07:29 +03:00
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 101:
|
|
|
|
|
#line 521 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2006-01-25 00:37:37 +03:00
|
|
|
|
bx_dbg_info_symbols_command(yyvsp[-1].sval);
|
|
|
|
|
free(yyvsp[-2].sval);free(yyvsp[-1].sval);
|
2003-11-28 18:07:29 +03:00
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 102:
|
|
|
|
|
#line 529 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2006-01-25 00:37:37 +03:00
|
|
|
|
bx_dbg_info_bpoints_command();
|
2003-11-28 18:07:29 +03:00
|
|
|
|
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 103:
|
|
|
|
|
#line 534 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2006-01-25 00:37:37 +03:00
|
|
|
|
bx_dbg_dump_cpu_command();
|
2003-11-28 18:07:29 +03:00
|
|
|
|
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 104:
|
|
|
|
|
#line 539 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2006-01-25 00:37:37 +03:00
|
|
|
|
bx_dbg_info_registers_command(BX_INFO_CPU_REGS);
|
2003-11-28 18:07:29 +03:00
|
|
|
|
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 105:
|
|
|
|
|
#line 544 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2006-01-25 00:37:37 +03:00
|
|
|
|
bx_dbg_info_registers_command(BX_INFO_FPU_REGS);
|
2003-11-28 18:07:29 +03:00
|
|
|
|
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 106:
|
|
|
|
|
#line 549 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2006-01-25 00:37:37 +03:00
|
|
|
|
bx_dbg_info_registers_command(BX_INFO_SSE_REGS);
|
2003-11-28 18:07:29 +03:00
|
|
|
|
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 107:
|
|
|
|
|
#line 554 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2006-01-25 00:37:37 +03:00
|
|
|
|
bx_dbg_info_registers_command(BX_INFO_CPU_REGS | BX_INFO_FPU_REGS | BX_INFO_SSE_REGS);
|
2003-11-28 18:07:29 +03:00
|
|
|
|
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
|
2006-01-25 00:37:37 +03:00
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 108:
|
|
|
|
|
#line 559 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2006-01-25 00:37:37 +03:00
|
|
|
|
bx_dbg_info_dirty_command();
|
|
|
|
|
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 109:
|
|
|
|
|
#line 564 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2006-01-25 00:37:37 +03:00
|
|
|
|
bx_dbg_info_idt_command(yyvsp[-1].uval_range);
|
|
|
|
|
free(yyvsp[-3].sval); free(yyvsp[-2].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 110:
|
|
|
|
|
#line 569 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2006-01-25 00:37:37 +03:00
|
|
|
|
bx_dbg_info_ivt_command(yyvsp[-1].uval_range);
|
|
|
|
|
free(yyvsp[-3].sval); free(yyvsp[-2].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 111:
|
|
|
|
|
#line 574 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2006-01-25 00:37:37 +03:00
|
|
|
|
bx_dbg_info_gdt_command(yyvsp[-1].uval_range);
|
2003-11-28 18:07:29 +03:00
|
|
|
|
free(yyvsp[-3].sval); free(yyvsp[-2].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 112:
|
|
|
|
|
#line 579 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2006-01-25 00:37:37 +03:00
|
|
|
|
bx_dbg_info_ldt_command(yyvsp[-1].uval_range);
|
2003-11-28 18:07:29 +03:00
|
|
|
|
free(yyvsp[-3].sval); free(yyvsp[-2].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 113:
|
|
|
|
|
#line 584 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2006-01-25 00:37:37 +03:00
|
|
|
|
bx_dbg_info_tss_command(yyvsp[-1].uval_range);
|
|
|
|
|
free(yyvsp[-3].sval); free(yyvsp[-2].sval);
|
2003-11-28 18:07:29 +03:00
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 114:
|
|
|
|
|
#line 589 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2006-01-25 00:37:37 +03:00
|
|
|
|
bx_dbg_info_flags();
|
2006-01-25 21:13:44 +03:00
|
|
|
|
free(yyvsp[-2].sval);
|
2003-11-28 18:07:29 +03:00
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 115:
|
|
|
|
|
#line 594 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2006-01-25 00:37:37 +03:00
|
|
|
|
bx_dbg_info_linux_command();
|
2003-11-28 18:07:29 +03:00
|
|
|
|
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 116:
|
|
|
|
|
#line 599 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2006-01-25 00:37:37 +03:00
|
|
|
|
bx_dbg_info_symbols_command(0);
|
|
|
|
|
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
|
2003-11-28 18:07:29 +03:00
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 117:
|
|
|
|
|
#line 604 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2006-01-25 00:37:37 +03:00
|
|
|
|
bx_dbg_info_symbols_command(yyvsp[-1].sval);
|
|
|
|
|
free(yyvsp[-3].sval); free(yyvsp[-2].sval); free(yyvsp[-1].sval);
|
2003-11-28 18:07:29 +03:00
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 118:
|
|
|
|
|
#line 609 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2006-01-25 00:37:37 +03:00
|
|
|
|
bx_dbg_info_control_regs_command();
|
2003-11-28 18:07:29 +03:00
|
|
|
|
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 119:
|
|
|
|
|
#line 614 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2006-01-25 00:37:37 +03:00
|
|
|
|
bx_dbg_info_ne2k(-1, -1);
|
|
|
|
|
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
|
2003-11-28 18:07:29 +03:00
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 120:
|
|
|
|
|
#line 619 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2006-01-25 00:37:37 +03:00
|
|
|
|
free(yyvsp[-4].sval); free(yyvsp[-3].sval); free(yyvsp[-2].sval);
|
|
|
|
|
bx_dbg_info_ne2k(yyvsp[-1].uval, -1);
|
2003-11-28 18:07:29 +03:00
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 121:
|
|
|
|
|
#line 624 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2006-01-25 00:37:37 +03:00
|
|
|
|
free(yyvsp[-6].sval); free(yyvsp[-5].sval); free(yyvsp[-4].sval); free(yyvsp[-2].sval);
|
|
|
|
|
bx_dbg_info_ne2k(yyvsp[-3].uval, yyvsp[-1].uval);
|
2003-11-28 18:07:29 +03:00
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 122:
|
|
|
|
|
#line 629 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2006-01-25 00:37:37 +03:00
|
|
|
|
bx_dbg_info_pic();
|
2004-08-24 14:15:56 +04:00
|
|
|
|
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 123:
|
|
|
|
|
#line 634 "parser.y"
|
2006-01-25 00:37:37 +03:00
|
|
|
|
{
|
|
|
|
|
bx_dbg_info_vga();
|
|
|
|
|
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 124:
|
|
|
|
|
#line 645 "parser.y"
|
2006-01-25 00:37:37 +03:00
|
|
|
|
{ yyval.uval_range = make_num_range (EMPTY_ARG, EMPTY_ARG); }
|
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 126:
|
|
|
|
|
#line 650 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2006-01-25 21:13:44 +03:00
|
|
|
|
yyval.uval_range = make_num_range (yyvsp[0].ulval, yyvsp[0].ulval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 127:
|
|
|
|
|
#line 654 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2006-01-25 21:13:44 +03:00
|
|
|
|
yyval.uval_range = make_num_range (yyvsp[-1].ulval, yyvsp[0].ulval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 128:
|
|
|
|
|
#line 660 "parser.y"
|
2006-01-25 00:37:37 +03:00
|
|
|
|
{
|
|
|
|
|
bx_dbg_info_registers_command(BX_INFO_CPU_REGS);
|
|
|
|
|
free(yyvsp[-1].sval);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 129:
|
|
|
|
|
#line 668 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2003-11-28 18:07:29 +03:00
|
|
|
|
bx_dbg_dump_cpu_command();
|
|
|
|
|
free(yyvsp[-1].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 130:
|
|
|
|
|
#line 676 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2003-11-28 18:07:29 +03:00
|
|
|
|
bx_dbg_del_breakpoint_command(yyvsp[-1].uval);
|
|
|
|
|
free(yyvsp[-2].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 131:
|
|
|
|
|
#line 684 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2003-11-28 18:07:29 +03:00
|
|
|
|
bx_dbg_en_dis_breakpoint_command(yyvsp[-1].uval, 1);
|
|
|
|
|
free(yyvsp[-2].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 132:
|
|
|
|
|
#line 691 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2003-11-28 18:07:29 +03:00
|
|
|
|
bx_dbg_en_dis_breakpoint_command(yyvsp[-1].uval, 0);
|
|
|
|
|
free(yyvsp[-2].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 133:
|
|
|
|
|
#line 699 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2003-11-28 18:07:29 +03:00
|
|
|
|
bx_dbg_quit_command();
|
|
|
|
|
free(yyvsp[-1].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 134:
|
|
|
|
|
#line 707 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2006-01-26 01:20:00 +03:00
|
|
|
|
bx_dbg_examine_command(yyvsp[-3].sval, yyvsp[-2].sval,1, yyvsp[-1].ulval, 1);
|
2003-11-28 18:07:29 +03:00
|
|
|
|
free(yyvsp[-3].sval); free(yyvsp[-2].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 135:
|
|
|
|
|
#line 712 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2006-01-26 01:20:00 +03:00
|
|
|
|
bx_dbg_examine_command(yyvsp[-2].sval, yyvsp[-1].sval,1, 0, 0);
|
2003-11-28 18:07:29 +03:00
|
|
|
|
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 136:
|
|
|
|
|
#line 717 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2006-01-26 01:20:00 +03:00
|
|
|
|
bx_dbg_examine_command(yyvsp[-2].sval, NULL,0, yyvsp[-1].ulval, 1);
|
2003-11-28 18:07:29 +03:00
|
|
|
|
free(yyvsp[-2].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 137:
|
|
|
|
|
#line 722 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2006-01-26 01:20:00 +03:00
|
|
|
|
bx_dbg_examine_command(yyvsp[-1].sval, NULL,0, 0, 0);
|
2003-11-28 18:07:29 +03:00
|
|
|
|
free(yyvsp[-1].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 138:
|
|
|
|
|
#line 730 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2003-11-28 18:07:29 +03:00
|
|
|
|
bx_dbg_setpmem_command(yyvsp[-3].uval, yyvsp[-2].uval, yyvsp[-1].uval);
|
|
|
|
|
free(yyvsp[-4].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 139:
|
|
|
|
|
#line 738 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2003-11-28 18:07:29 +03:00
|
|
|
|
bx_dbg_query_command(yyvsp[-1].sval);
|
|
|
|
|
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 140:
|
|
|
|
|
#line 746 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2003-11-28 18:07:29 +03:00
|
|
|
|
bx_dbg_take_command(yyvsp[-1].sval, 1);
|
|
|
|
|
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 141:
|
|
|
|
|
#line 751 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2003-11-28 18:07:29 +03:00
|
|
|
|
bx_dbg_take_command(yyvsp[-2].sval, yyvsp[-1].uval);
|
|
|
|
|
free(yyvsp[-3].sval); free(yyvsp[-2].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 142:
|
|
|
|
|
#line 756 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2003-11-28 18:07:29 +03:00
|
|
|
|
bx_dbg_take_command(yyvsp[-1].sval, 1);
|
|
|
|
|
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 143:
|
|
|
|
|
#line 764 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2003-11-28 18:07:29 +03:00
|
|
|
|
bx_dbg_set_cpu_command();
|
|
|
|
|
free(yyvsp[-1].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 144:
|
|
|
|
|
#line 772 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2003-11-28 18:07:29 +03:00
|
|
|
|
bx_dbg_disassemble_command(NULL, yyvsp[-1].uval_range);
|
|
|
|
|
free(yyvsp[-2].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 145:
|
|
|
|
|
#line 777 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2003-11-28 18:07:29 +03:00
|
|
|
|
bx_dbg_disassemble_command(yyvsp[-2].sval, yyvsp[-1].uval_range);
|
|
|
|
|
free(yyvsp[-3].sval); free(yyvsp[-2].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 146:
|
|
|
|
|
#line 782 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2006-01-25 00:37:37 +03:00
|
|
|
|
bx_dbg_disassemble_switch_mode();
|
|
|
|
|
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
|
2003-11-28 18:07:29 +03:00
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
case 147:
|
|
|
|
|
#line 787 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2006-01-25 00:37:37 +03:00
|
|
|
|
bx_dbg_set_disassemble_size(yyvsp[-1].uval);
|
|
|
|
|
free(yyvsp[-4].sval); free(yyvsp[-3].sval);
|
2003-11-28 18:07:29 +03:00
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-01-26 01:20:00 +03:00
|
|
|
|
case 148:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 795 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2003-11-28 18:07:29 +03:00
|
|
|
|
bx_dbg_instrument_command(yyvsp[-1].sval);
|
|
|
|
|
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-01-26 01:20:00 +03:00
|
|
|
|
case 149:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 803 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2003-11-28 18:07:29 +03:00
|
|
|
|
bx_dbg_doit_command(yyvsp[-1].uval);
|
|
|
|
|
free(yyvsp[-2].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-01-26 01:20:00 +03:00
|
|
|
|
case 150:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 811 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2003-11-28 18:07:29 +03:00
|
|
|
|
bx_dbg_crc_command(yyvsp[-2].uval, yyvsp[-1].uval);
|
|
|
|
|
free(yyvsp[-3].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-01-26 01:20:00 +03:00
|
|
|
|
case 151:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 819 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2006-01-24 22:03:55 +03:00
|
|
|
|
dbg_printf("q|quit|exit - quit debugger and emulator execution\n");
|
2003-11-28 18:07:29 +03:00
|
|
|
|
free(yyvsp[-2].sval);free(yyvsp[-1].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-01-31 22:45:34 +03:00
|
|
|
|
case 152:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 824 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2006-01-24 22:03:55 +03:00
|
|
|
|
dbg_printf("c|cont|continue - continue executing\n");
|
|
|
|
|
free(yyvsp[-2].sval);free(yyvsp[-1].sval);
|
2003-11-28 18:07:29 +03:00
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-01-31 22:45:34 +03:00
|
|
|
|
case 153:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 829 "parser.y"
|
2006-01-24 22:03:55 +03:00
|
|
|
|
{
|
2006-01-25 00:37:37 +03:00
|
|
|
|
dbg_printf("s|step|stepi [count] - execute #count instructions (default is one instruction)\n");
|
2006-01-24 22:03:55 +03:00
|
|
|
|
free(yyvsp[-2].sval);free(yyvsp[-1].sval);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
2006-01-31 22:45:34 +03:00
|
|
|
|
case 154:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 834 "parser.y"
|
2006-01-24 22:03:55 +03:00
|
|
|
|
{
|
|
|
|
|
dbg_printf("n|next|p - execute instruction stepping over subroutines\n");
|
|
|
|
|
free(yyvsp[-2].sval);free(yyvsp[-1].sval);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
2006-01-31 22:45:34 +03:00
|
|
|
|
case 155:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 839 "parser.y"
|
2006-01-24 22:03:55 +03:00
|
|
|
|
{
|
|
|
|
|
dbg_printf("vb|vbreak <seg:offset> - set a virtual address instruction breakpoint\n");
|
|
|
|
|
free(yyvsp[-2].sval);free(yyvsp[-1].sval);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
2006-01-31 22:45:34 +03:00
|
|
|
|
case 156:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 844 "parser.y"
|
2006-01-24 22:03:55 +03:00
|
|
|
|
{
|
|
|
|
|
dbg_printf("p|pb|break|pbreak <addr> - set a physical address instruction breakpoint\n");
|
|
|
|
|
free(yyvsp[-2].sval);free(yyvsp[-1].sval);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
2006-01-31 22:45:34 +03:00
|
|
|
|
case 157:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 849 "parser.y"
|
2006-01-24 22:03:55 +03:00
|
|
|
|
{
|
|
|
|
|
dbg_printf("d|del|delete <n> - delete a breakpoint\n");
|
|
|
|
|
free(yyvsp[-2].sval);free(yyvsp[-1].sval);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
2006-01-31 22:45:34 +03:00
|
|
|
|
case 158:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 854 "parser.y"
|
2006-01-24 22:03:55 +03:00
|
|
|
|
{
|
|
|
|
|
dbg_printf("bpe <n> - enable a breakpoint\n");
|
|
|
|
|
free(yyvsp[-2].sval);free(yyvsp[-1].sval);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
2006-01-31 22:45:34 +03:00
|
|
|
|
case 159:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 859 "parser.y"
|
2006-01-24 22:03:55 +03:00
|
|
|
|
{
|
|
|
|
|
dbg_printf("bpd <n> - disable a breakpoint\n");
|
|
|
|
|
free(yyvsp[-2].sval);free(yyvsp[-1].sval);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
2006-01-31 22:45:34 +03:00
|
|
|
|
case 160:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 864 "parser.y"
|
2006-01-24 22:03:55 +03:00
|
|
|
|
{
|
|
|
|
|
dbg_printf("blist - list all breakpoints (same as 'info break')\n");
|
|
|
|
|
free(yyvsp[-2].sval);free(yyvsp[-1].sval);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
2006-01-31 22:45:34 +03:00
|
|
|
|
case 161:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 869 "parser.y"
|
2006-01-24 22:03:55 +03:00
|
|
|
|
{
|
|
|
|
|
dbg_printf("modebp - toggles mode switch breakpoint\n");
|
|
|
|
|
free(yyvsp[-2].sval);free(yyvsp[-1].sval);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
2006-01-31 22:45:34 +03:00
|
|
|
|
case 162:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 874 "parser.y"
|
2006-01-24 22:03:55 +03:00
|
|
|
|
{
|
|
|
|
|
dbg_printf("crc <addr1> <addr2> - show CRC32 for physical memory range addr1..addr2\n");
|
|
|
|
|
free(yyvsp[-2].sval);free(yyvsp[-1].sval);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
2006-01-31 22:45:34 +03:00
|
|
|
|
case 163:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 879 "parser.y"
|
2006-01-24 22:03:55 +03:00
|
|
|
|
{
|
2006-01-31 22:45:34 +03:00
|
|
|
|
dbg_printf("trace on - print disassembly for every executed instruction\n");
|
|
|
|
|
dbg_printf("trace off - disable instruction tracing\n");
|
2006-01-24 22:03:55 +03:00
|
|
|
|
free(yyvsp[-2].sval);free(yyvsp[-1].sval);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
2006-01-31 22:45:34 +03:00
|
|
|
|
case 164:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 885 "parser.y"
|
2006-01-24 22:03:55 +03:00
|
|
|
|
{
|
2006-01-31 22:45:34 +03:00
|
|
|
|
dbg_printf("trace-reg on - print all registers before every executed instruction\n");
|
|
|
|
|
dbg_printf("trace-reg off - disable registers state tracing\n");
|
2006-01-24 22:03:55 +03:00
|
|
|
|
free(yyvsp[-2].sval);free(yyvsp[-1].sval);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
2006-01-31 22:45:34 +03:00
|
|
|
|
case 165:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 891 "parser.y"
|
2006-01-24 22:03:55 +03:00
|
|
|
|
{
|
|
|
|
|
dbg_printf("dump_cpu - dump complete cpu state\n");
|
|
|
|
|
free(yyvsp[-2].sval);free(yyvsp[-1].sval);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
2006-01-31 22:45:34 +03:00
|
|
|
|
case 166:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 896 "parser.y"
|
2006-01-24 22:03:55 +03:00
|
|
|
|
{
|
|
|
|
|
dbg_printf("set_cpu - set complete cpu state\n");
|
|
|
|
|
free(yyvsp[-2].sval);free(yyvsp[-1].sval);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
2006-01-31 22:45:34 +03:00
|
|
|
|
case 167:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 901 "parser.y"
|
2006-01-24 22:03:55 +03:00
|
|
|
|
{
|
|
|
|
|
dbg_printf("ptime - print current time (number of ticks since start of simulation)\n");
|
|
|
|
|
free(yyvsp[-2].sval);free(yyvsp[-1].sval);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
2006-01-31 22:45:34 +03:00
|
|
|
|
case 168:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 906 "parser.y"
|
2006-01-24 22:03:55 +03:00
|
|
|
|
{
|
|
|
|
|
dbg_printf("sb <delta> - insert a time breakpoint delta instructions into the future\n");
|
|
|
|
|
free(yyvsp[-2].sval);free(yyvsp[-1].sval);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
2006-01-31 22:45:34 +03:00
|
|
|
|
case 169:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 911 "parser.y"
|
2006-01-24 22:03:55 +03:00
|
|
|
|
{
|
|
|
|
|
dbg_printf("sba <time> - insert breakpoint at specific time\n");
|
|
|
|
|
free(yyvsp[-2].sval);free(yyvsp[-1].sval);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
2006-01-31 22:45:34 +03:00
|
|
|
|
case 170:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 916 "parser.y"
|
2006-01-24 22:03:55 +03:00
|
|
|
|
{
|
|
|
|
|
dbg_printf("print-stack [num_words] - print the num_words top 16 bit words on the stack\n");
|
|
|
|
|
free(yyvsp[-2].sval);free(yyvsp[-1].sval);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
2006-01-31 22:45:34 +03:00
|
|
|
|
case 171:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 921 "parser.y"
|
2006-01-24 22:03:55 +03:00
|
|
|
|
{
|
|
|
|
|
dbg_printf("record <filename> - record console input to file filename\n");
|
|
|
|
|
free(yyvsp[-2].sval);free(yyvsp[-1].sval);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
2006-01-31 22:45:34 +03:00
|
|
|
|
case 172:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 926 "parser.y"
|
2006-01-24 22:03:55 +03:00
|
|
|
|
{
|
|
|
|
|
dbg_printf("playback <filename> - playback console input from file filename\n");
|
|
|
|
|
free(yyvsp[-2].sval);free(yyvsp[-1].sval);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
2006-01-31 22:45:34 +03:00
|
|
|
|
case 173:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 931 "parser.y"
|
2006-01-24 22:03:55 +03:00
|
|
|
|
{
|
|
|
|
|
dbg_printf("load-symbols [global] <filename> [offset] - load symbols from file\n");
|
|
|
|
|
free(yyvsp[-2].sval);free(yyvsp[-1].sval);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
2006-01-31 22:45:34 +03:00
|
|
|
|
case 174:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 936 "parser.y"
|
2006-01-24 22:03:55 +03:00
|
|
|
|
{
|
|
|
|
|
dbg_printf("slist [string] - list symbols whose preffix is string (same as 'info symbols')\n");
|
|
|
|
|
free(yyvsp[-2].sval);free(yyvsp[-1].sval);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
2006-01-31 22:45:34 +03:00
|
|
|
|
case 175:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 941 "parser.y"
|
2006-01-24 22:03:55 +03:00
|
|
|
|
{
|
2006-01-25 21:13:44 +03:00
|
|
|
|
dbg_printf("r|reg|regs|registers - list of CPU registers and their contents (same as 'info registers')\n");
|
2006-01-24 22:03:55 +03:00
|
|
|
|
free(yyvsp[-2].sval);free(yyvsp[-1].sval);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
2006-01-31 22:45:34 +03:00
|
|
|
|
case 176:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 946 "parser.y"
|
2006-01-24 22:03:55 +03:00
|
|
|
|
{
|
|
|
|
|
dbg_printf("setpmem <addr> <datasize> <val> - set physical memory location of size 'datasize' to value 'val'\n");
|
|
|
|
|
free(yyvsp[-2].sval);free(yyvsp[-1].sval);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
2006-01-31 22:45:34 +03:00
|
|
|
|
case 177:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 951 "parser.y"
|
2006-01-24 22:03:55 +03:00
|
|
|
|
{
|
|
|
|
|
dbg_printf("u|disasm|disassemble [/count] <start> <end> - disassemble instructions for given linear address\n");
|
|
|
|
|
dbg_printf(" Optional 'count' is the number of disassembled instructions\n");
|
2006-01-25 00:37:37 +03:00
|
|
|
|
dbg_printf("u|disasm|disassemble switch-mode - switch between Intel and AT&T disassembler syntax\n");
|
|
|
|
|
dbg_printf("u|disasm|disassemble size = n - tell debugger what segment size [16|32|64] to use\n");
|
|
|
|
|
dbg_printf(" when \"disassemble\" command is used.\n");
|
2006-01-24 22:03:55 +03:00
|
|
|
|
free(yyvsp[-2].sval);free(yyvsp[-1].sval);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
2006-01-31 22:45:34 +03:00
|
|
|
|
case 178:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 960 "parser.y"
|
2006-01-24 22:03:55 +03:00
|
|
|
|
{
|
|
|
|
|
dbg_printf("watch - print current watch point status\n");
|
|
|
|
|
dbg_printf("watch stop - stop simulation when a watchpoint is encountred\n");
|
|
|
|
|
dbg_printf("watch continue - do not stop the simulation when watch point is encountred\n");
|
|
|
|
|
dbg_printf("watch read addr - insert a read watch point at physical address addr\n");
|
|
|
|
|
dbg_printf("watch write addr - insert a write watch point at physical address addr\n");
|
|
|
|
|
free(yyvsp[-2].sval);free(yyvsp[-1].sval);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
2006-01-31 22:45:34 +03:00
|
|
|
|
case 179:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 969 "parser.y"
|
2006-01-24 22:03:55 +03:00
|
|
|
|
{
|
|
|
|
|
dbg_printf("unwatch - remove all watch points\n");
|
|
|
|
|
dbg_printf("unwatch read addr - remove a read watch point at physical address addr\n");
|
|
|
|
|
dbg_printf("unwatch write addr - remove a write watch point at physical address addr\n");
|
|
|
|
|
free(yyvsp[-2].sval);free(yyvsp[-1].sval);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
2006-01-31 22:45:34 +03:00
|
|
|
|
case 180:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 976 "parser.y"
|
2006-01-24 22:03:55 +03:00
|
|
|
|
{
|
|
|
|
|
dbg_printf("x /nuf <addr> - examine memory at linear address\n");
|
|
|
|
|
dbg_printf("xp /nuf <addr> - examine memory at physical address\n");
|
|
|
|
|
dbg_printf(" nuf is a sequence of numbers (how much values to display)\n");
|
|
|
|
|
dbg_printf(" and one or more of the [mxduotcsibhwg] format specificators:\n");
|
|
|
|
|
dbg_printf(" x,d,u,o,t,c,s,i select the format of the output (they stand for\n");
|
|
|
|
|
dbg_printf(" hex, decimal, unsigned, octal, binary, char, asciiz, instr)\n");
|
|
|
|
|
dbg_printf(" b,h,w,g select the size of a data element (for byte, half-word,\n");
|
|
|
|
|
dbg_printf(" word and giant word)\n");
|
|
|
|
|
dbg_printf(" m selects an alternative output format (memory dump)\n");
|
|
|
|
|
free(yyvsp[-2].sval);free(yyvsp[-1].sval);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
2006-01-31 22:45:34 +03:00
|
|
|
|
case 181:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 989 "parser.y"
|
2006-01-24 22:03:55 +03:00
|
|
|
|
{
|
|
|
|
|
dbg_printf("instrument start - calls bx_instr_start() callback\n");
|
|
|
|
|
dbg_printf("instrument stop - calls bx_instr_stop() callback\n");
|
|
|
|
|
dbg_printf("instrument reset - calls bx_instr_reset() callback\n");
|
|
|
|
|
dbg_printf("instrument print - calls bx_instr_print() callback\n");
|
|
|
|
|
free(yyvsp[-2].sval);free(yyvsp[-1].sval);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
2006-01-31 22:45:34 +03:00
|
|
|
|
case 182:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 997 "parser.y"
|
2006-01-25 00:37:37 +03:00
|
|
|
|
{
|
|
|
|
|
dbg_printf("set <regname> = <expr> - set register value to expression\n");
|
|
|
|
|
dbg_printf("set $reg = val - set CPU register to value val\n");
|
|
|
|
|
dbg_printf("set $auto_disassemble = 1 - cause debugger to disassemble current instruction\n");
|
|
|
|
|
dbg_printf(" every time execution stops\n");
|
|
|
|
|
dbg_printf("set u|disasm|disassemble on - same as 'set $auto_disassemble = 1'\n");
|
|
|
|
|
dbg_printf("set u|disasm|disassemble off - same as 'set $auto_disassemble = 0'\n");
|
2006-01-24 22:03:55 +03:00
|
|
|
|
free(yyvsp[-2].sval);free(yyvsp[-1].sval);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
2006-01-31 22:45:34 +03:00
|
|
|
|
case 183:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1007 "parser.y"
|
2006-01-24 22:03:55 +03:00
|
|
|
|
{
|
|
|
|
|
dbg_printf("info break - show information about current breakpoint status\n");
|
|
|
|
|
dbg_printf("info dirty - show physical pages dirtied (written to) since last display\n");
|
|
|
|
|
dbg_printf("info r|reg|regs|registers - list of CPU integer registers and their contents\n");
|
|
|
|
|
dbg_printf("info cpu - list of CPU registers and their contents\n");
|
|
|
|
|
dbg_printf("info fpu - list of FPU registers and their contents\n");
|
|
|
|
|
dbg_printf("info sse - list of SSE registers and their contents\n");
|
|
|
|
|
dbg_printf("info idt - show interrupt descriptor table\n");
|
|
|
|
|
dbg_printf("info ivt - show interrupt vector table\n");
|
|
|
|
|
dbg_printf("info gdt - show global descriptor table\n");
|
|
|
|
|
dbg_printf("info tss - show current task state segment\n");
|
|
|
|
|
dbg_printf("info cr - show CR0-4 registers\n");
|
|
|
|
|
dbg_printf("info eflags - show decoded EFLAGS register\n");
|
|
|
|
|
dbg_printf("info symbols [string] - list symbols whose prefix is string\n");
|
|
|
|
|
dbg_printf("info pic - show PICs registers\n");
|
|
|
|
|
dbg_printf("info ne2000 - show NE2000 registers\n");
|
|
|
|
|
dbg_printf("info vga - show vga registers\n");
|
|
|
|
|
free(yyvsp[-2].sval);free(yyvsp[-1].sval);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
2006-01-31 22:45:34 +03:00
|
|
|
|
case 184:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1027 "parser.y"
|
2006-01-24 22:03:55 +03:00
|
|
|
|
{
|
|
|
|
|
dbg_printf("show \"string\" - toggles show symbolic info (calls to begin with)\n");
|
|
|
|
|
dbg_printf("show - shows current show mode\n");
|
|
|
|
|
dbg_printf("show \"mode\" - show, when processor switch mode\n");
|
|
|
|
|
dbg_printf("show \"int\" - show, when interrupt is happens\n");
|
|
|
|
|
dbg_printf("show \"call\" - show, when call is happens\n");
|
|
|
|
|
dbg_printf("show \"ret\" - show, when iret is happens\n");
|
|
|
|
|
dbg_printf("show \"off\" - toggles off symbolic info\n");
|
|
|
|
|
dbg_printf("show \"dbg-all\" - turn on all show flags\n");
|
|
|
|
|
dbg_printf("show \"none\" - turn off all show flags\n");
|
|
|
|
|
dbg_printf("show \"tab\" - show page tables\n");
|
|
|
|
|
free(yyvsp[-2].sval);free(yyvsp[-1].sval);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
2006-01-31 22:45:34 +03:00
|
|
|
|
case 185:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1041 "parser.y"
|
2006-01-24 22:03:55 +03:00
|
|
|
|
{
|
|
|
|
|
dbg_printf("calc|? <expr> - calculate a expression and display the result.\n");
|
|
|
|
|
dbg_printf(" 'expr' can reference any general-purpose and segment\n");
|
|
|
|
|
dbg_printf(" registers, use any arithmetic and logic operations, and\n");
|
|
|
|
|
dbg_printf(" also the special ':' operator which computes the linear\n");
|
|
|
|
|
dbg_printf(" address for a segment:offset (in real and v86 mode) or\n");
|
|
|
|
|
dbg_printf(" of a selector:offset (in protected mode) pair.\n");
|
|
|
|
|
free(yyvsp[-2].sval);free(yyvsp[-1].sval);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
2006-01-31 22:45:34 +03:00
|
|
|
|
case 186:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1051 "parser.y"
|
2006-01-24 22:03:55 +03:00
|
|
|
|
{
|
|
|
|
|
bx_dbg_print_help();
|
|
|
|
|
free(yyvsp[-2].sval);free(yyvsp[-1].sval);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
2006-01-31 22:45:34 +03:00
|
|
|
|
case 187:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1056 "parser.y"
|
2006-01-24 22:03:55 +03:00
|
|
|
|
{
|
|
|
|
|
bx_dbg_print_help();
|
|
|
|
|
free(yyvsp[-1].sval);
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
2006-01-31 22:45:34 +03:00
|
|
|
|
case 188:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1064 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{
|
2003-11-28 18:07:29 +03:00
|
|
|
|
bx_dbg_calc_command(yyvsp[-1].ulval);
|
|
|
|
|
free(yyvsp[-2].sval);
|
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-01-31 22:45:34 +03:00
|
|
|
|
case 192:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1075 "parser.y"
|
2006-01-31 22:45:34 +03:00
|
|
|
|
{ yyval.uval=yyvsp[0].uval; }
|
|
|
|
|
break;
|
|
|
|
|
|
2006-01-26 01:20:00 +03:00
|
|
|
|
case 196:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1083 "parser.y"
|
2006-01-25 21:13:44 +03:00
|
|
|
|
{ yyval.uval=yyvsp[0].uval; }
|
|
|
|
|
break;
|
|
|
|
|
|
2006-01-31 22:45:34 +03:00
|
|
|
|
case 204:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1095 "parser.y"
|
2006-01-25 21:13:44 +03:00
|
|
|
|
{ yyval.uval=yyvsp[0].uval; }
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-01-31 22:45:34 +03:00
|
|
|
|
case 212:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1107 "parser.y"
|
2006-01-25 21:13:44 +03:00
|
|
|
|
{ yyval.uval=yyvsp[0].uval; }
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-01-31 22:45:34 +03:00
|
|
|
|
case 213:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1120 "parser.y"
|
2006-01-31 22:45:34 +03:00
|
|
|
|
{ yyval.ulval = yyvsp[0].uval; }
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case 214:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1121 "parser.y"
|
2006-01-31 22:45:34 +03:00
|
|
|
|
{ yyval.ulval = yyvsp[0].ulval; }
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case 215:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1122 "parser.y"
|
2006-01-31 22:45:34 +03:00
|
|
|
|
{ yyval.ulval = bx_dbg_get_reg8l_value(yyvsp[0].uval); }
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case 216:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1123 "parser.y"
|
2006-01-31 22:45:34 +03:00
|
|
|
|
{ yyval.ulval = bx_dbg_get_reg8h_value(yyvsp[0].uval); }
|
2006-01-25 21:13:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-01-26 01:20:00 +03:00
|
|
|
|
case 217:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1124 "parser.y"
|
2006-01-31 22:45:34 +03:00
|
|
|
|
{ yyval.ulval = bx_dbg_get_reg16_value(yyvsp[0].uval); }
|
2006-01-25 21:13:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-01-26 01:20:00 +03:00
|
|
|
|
case 218:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1125 "parser.y"
|
2006-01-31 22:45:34 +03:00
|
|
|
|
{ yyval.ulval = bx_dbg_get_reg32_value(yyvsp[0].uval); }
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-01-26 01:20:00 +03:00
|
|
|
|
case 219:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1126 "parser.y"
|
2006-01-31 22:45:34 +03:00
|
|
|
|
{ yyval.ulval = bx_dbg_get_selector_value(yyvsp[0].uval); }
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-01-26 01:20:00 +03:00
|
|
|
|
case 220:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1127 "parser.y"
|
2006-01-31 22:45:34 +03:00
|
|
|
|
{ yyval.ulval = bx_dbg_get_ip (); }
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-01-26 01:20:00 +03:00
|
|
|
|
case 221:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1128 "parser.y"
|
2006-01-31 22:45:34 +03:00
|
|
|
|
{ yyval.ulval = bx_dbg_get_eip(); }
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-01-26 01:20:00 +03:00
|
|
|
|
case 222:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1129 "parser.y"
|
2006-01-31 22:45:34 +03:00
|
|
|
|
{ yyval.ulval = yyvsp[-2].ulval + yyvsp[0].ulval; }
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-01-26 01:20:00 +03:00
|
|
|
|
case 223:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1130 "parser.y"
|
2006-01-31 22:45:34 +03:00
|
|
|
|
{ yyval.ulval = yyvsp[-2].ulval - yyvsp[0].ulval; }
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-01-26 01:20:00 +03:00
|
|
|
|
case 224:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1131 "parser.y"
|
2006-01-31 22:45:34 +03:00
|
|
|
|
{ yyval.ulval = yyvsp[-2].ulval * yyvsp[0].ulval; }
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-01-26 01:20:00 +03:00
|
|
|
|
case 225:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1132 "parser.y"
|
2006-01-31 22:45:34 +03:00
|
|
|
|
{ yyval.ulval = yyvsp[-2].ulval / yyvsp[0].ulval; }
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-01-26 01:20:00 +03:00
|
|
|
|
case 226:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1133 "parser.y"
|
2006-01-31 22:45:34 +03:00
|
|
|
|
{ yyval.ulval = yyvsp[-2].ulval >> yyvsp[0].ulval; }
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-01-26 01:20:00 +03:00
|
|
|
|
case 227:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1134 "parser.y"
|
2006-01-31 22:45:34 +03:00
|
|
|
|
{ yyval.ulval = yyvsp[-2].ulval << yyvsp[0].ulval; }
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-01-26 01:20:00 +03:00
|
|
|
|
case 228:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1135 "parser.y"
|
2006-01-31 22:45:34 +03:00
|
|
|
|
{ yyval.ulval = yyvsp[-2].ulval | yyvsp[0].ulval; }
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-01-26 01:20:00 +03:00
|
|
|
|
case 229:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1136 "parser.y"
|
2006-01-31 22:45:34 +03:00
|
|
|
|
{ yyval.ulval = yyvsp[-2].ulval ^ yyvsp[0].ulval; }
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-01-26 01:20:00 +03:00
|
|
|
|
case 230:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1137 "parser.y"
|
2006-01-31 22:45:34 +03:00
|
|
|
|
{ yyval.ulval = yyvsp[-2].ulval & yyvsp[0].ulval; }
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-01-26 01:20:00 +03:00
|
|
|
|
case 231:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1138 "parser.y"
|
2006-01-31 22:45:34 +03:00
|
|
|
|
{ yyval.ulval = !yyvsp[0].ulval; }
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-01-26 01:20:00 +03:00
|
|
|
|
case 232:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1139 "parser.y"
|
2006-01-31 22:45:34 +03:00
|
|
|
|
{ yyval.ulval = -yyvsp[0].ulval; }
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-01-26 01:20:00 +03:00
|
|
|
|
case 233:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1140 "parser.y"
|
2006-01-31 22:45:34 +03:00
|
|
|
|
{ yyval.ulval = yyvsp[-1].ulval; }
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-01-26 01:20:00 +03:00
|
|
|
|
case 234:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1145 "parser.y"
|
2006-01-31 22:45:34 +03:00
|
|
|
|
{ yyval.ulval = yyvsp[0].uval; }
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-01-26 01:20:00 +03:00
|
|
|
|
case 235:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1146 "parser.y"
|
2006-01-31 22:45:34 +03:00
|
|
|
|
{ yyval.ulval = yyvsp[0].ulval; }
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-01-26 01:20:00 +03:00
|
|
|
|
case 236:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1147 "parser.y"
|
2006-01-31 22:45:34 +03:00
|
|
|
|
{ yyval.ulval = bx_dbg_get_symbol_value(yyvsp[0].sval); free(yyvsp[0].sval);}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-01-26 01:20:00 +03:00
|
|
|
|
case 237:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1148 "parser.y"
|
2006-01-31 22:45:34 +03:00
|
|
|
|
{ yyval.ulval = bx_dbg_get_reg8l_value(yyvsp[0].uval); }
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-01-26 01:20:00 +03:00
|
|
|
|
case 238:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1149 "parser.y"
|
2006-01-31 22:45:34 +03:00
|
|
|
|
{ yyval.ulval = bx_dbg_get_reg8h_value(yyvsp[0].uval); }
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-01-26 01:20:00 +03:00
|
|
|
|
case 239:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1150 "parser.y"
|
2006-01-31 22:45:34 +03:00
|
|
|
|
{ yyval.ulval = bx_dbg_get_reg16_value(yyvsp[0].uval); }
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-01-26 01:20:00 +03:00
|
|
|
|
case 240:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1151 "parser.y"
|
2006-01-31 22:45:34 +03:00
|
|
|
|
{ yyval.ulval = bx_dbg_get_reg32_value(yyvsp[0].uval); }
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-01-26 01:20:00 +03:00
|
|
|
|
case 241:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1152 "parser.y"
|
2006-01-31 22:45:34 +03:00
|
|
|
|
{ yyval.ulval = bx_dbg_get_selector_value(yyvsp[0].uval); }
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-01-26 01:20:00 +03:00
|
|
|
|
case 242:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1153 "parser.y"
|
2006-01-31 22:45:34 +03:00
|
|
|
|
{ yyval.ulval = bx_dbg_get_ip (); }
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-01-26 01:20:00 +03:00
|
|
|
|
case 243:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1154 "parser.y"
|
2006-01-31 22:45:34 +03:00
|
|
|
|
{ yyval.ulval = bx_dbg_get_eip(); }
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-01-26 01:20:00 +03:00
|
|
|
|
case 244:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1155 "parser.y"
|
2006-01-25 21:13:44 +03:00
|
|
|
|
{ yyval.ulval = bx_dbg_get_laddr (yyvsp[-2].ulval, yyvsp[0].ulval); }
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-01-26 01:20:00 +03:00
|
|
|
|
case 245:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1156 "parser.y"
|
2006-01-25 21:13:44 +03:00
|
|
|
|
{ yyval.ulval = yyvsp[-2].ulval + yyvsp[0].ulval; }
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-01-26 01:20:00 +03:00
|
|
|
|
case 246:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1157 "parser.y"
|
2006-01-25 21:13:44 +03:00
|
|
|
|
{ yyval.ulval = yyvsp[-2].ulval - yyvsp[0].ulval; }
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-01-26 01:20:00 +03:00
|
|
|
|
case 247:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1158 "parser.y"
|
2006-01-25 21:13:44 +03:00
|
|
|
|
{ yyval.ulval = yyvsp[-2].ulval * yyvsp[0].ulval; }
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-01-26 01:20:00 +03:00
|
|
|
|
case 248:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1159 "parser.y"
|
2006-01-25 21:13:44 +03:00
|
|
|
|
{ yyval.ulval = (yyvsp[0].ulval != 0) ? yyvsp[-2].ulval / yyvsp[0].ulval : 0; }
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-01-26 01:20:00 +03:00
|
|
|
|
case 249:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1160 "parser.y"
|
2006-01-25 21:13:44 +03:00
|
|
|
|
{ yyval.ulval = yyvsp[-2].ulval >> yyvsp[0].ulval; }
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-01-26 01:20:00 +03:00
|
|
|
|
case 250:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1161 "parser.y"
|
2006-01-25 21:13:44 +03:00
|
|
|
|
{ yyval.ulval = yyvsp[-2].ulval << yyvsp[0].ulval; }
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-01-26 01:20:00 +03:00
|
|
|
|
case 251:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1162 "parser.y"
|
2006-01-25 21:13:44 +03:00
|
|
|
|
{ yyval.ulval = yyvsp[-2].ulval | yyvsp[0].ulval; }
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-01-26 01:20:00 +03:00
|
|
|
|
case 252:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1163 "parser.y"
|
2006-01-25 21:13:44 +03:00
|
|
|
|
{ yyval.ulval = yyvsp[-2].ulval ^ yyvsp[0].ulval; }
|
2006-01-24 00:44:44 +03:00
|
|
|
|
break;
|
|
|
|
|
|
2006-01-26 01:20:00 +03:00
|
|
|
|
case 253:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1164 "parser.y"
|
2006-01-25 21:13:44 +03:00
|
|
|
|
{ yyval.ulval = yyvsp[-2].ulval & yyvsp[0].ulval; }
|
|
|
|
|
break;
|
|
|
|
|
|
2006-01-26 01:20:00 +03:00
|
|
|
|
case 254:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1165 "parser.y"
|
2006-01-25 21:13:44 +03:00
|
|
|
|
{ yyval.ulval = !yyvsp[0].ulval; }
|
|
|
|
|
break;
|
|
|
|
|
|
2006-01-26 01:20:00 +03:00
|
|
|
|
case 255:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1166 "parser.y"
|
2006-01-25 21:13:44 +03:00
|
|
|
|
{ yyval.ulval = -yyvsp[0].ulval; }
|
|
|
|
|
break;
|
|
|
|
|
|
2006-01-26 01:20:00 +03:00
|
|
|
|
case 256:
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1167 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
{ yyval.ulval = yyvsp[-1].ulval; }
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
2003-11-28 18:07:29 +03:00
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
|
|
|
|
|
/* Line 999 of yacc.c. */
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 3241 "y.tab.c"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
|
|
|
|
|
yyvsp -= yylen;
|
|
|
|
|
yyssp -= yylen;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
YY_STACK_PRINT (yyss, yyssp);
|
|
|
|
|
|
|
|
|
|
*++yyvsp = yyval;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Now `shift' the result of the reduction. Determine what state
|
|
|
|
|
that goes to, based on the state we popped back to and the rule
|
|
|
|
|
number reduced by. */
|
|
|
|
|
|
|
|
|
|
yyn = yyr1[yyn];
|
|
|
|
|
|
|
|
|
|
yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
|
|
|
|
|
if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
|
|
|
|
|
yystate = yytable[yystate];
|
|
|
|
|
else
|
|
|
|
|
yystate = yydefgoto[yyn - YYNTOKENS];
|
|
|
|
|
|
|
|
|
|
goto yynewstate;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*------------------------------------.
|
|
|
|
|
| yyerrlab -- here on detecting error |
|
|
|
|
|
`------------------------------------*/
|
|
|
|
|
yyerrlab:
|
|
|
|
|
/* If not already recovering from an error, report this error. */
|
|
|
|
|
if (!yyerrstatus)
|
2003-11-28 18:07:29 +03:00
|
|
|
|
{
|
2006-01-24 00:44:44 +03:00
|
|
|
|
++yynerrs;
|
|
|
|
|
#if YYERROR_VERBOSE
|
|
|
|
|
yyn = yypact[yystate];
|
|
|
|
|
|
|
|
|
|
if (YYPACT_NINF < yyn && yyn < YYLAST)
|
|
|
|
|
{
|
|
|
|
|
YYSIZE_T yysize = 0;
|
|
|
|
|
int yytype = YYTRANSLATE (yychar);
|
|
|
|
|
const char* yyprefix;
|
|
|
|
|
char *yymsg;
|
|
|
|
|
int yyx;
|
|
|
|
|
|
|
|
|
|
/* Start YYX at -YYN if negative to avoid negative indexes in
|
|
|
|
|
YYCHECK. */
|
|
|
|
|
int yyxbegin = yyn < 0 ? -yyn : 0;
|
|
|
|
|
|
|
|
|
|
/* Stay within bounds of both yycheck and yytname. */
|
|
|
|
|
int yychecklim = YYLAST - yyn;
|
|
|
|
|
int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
|
|
|
|
|
int yycount = 0;
|
|
|
|
|
|
|
|
|
|
yyprefix = ", expecting ";
|
|
|
|
|
for (yyx = yyxbegin; yyx < yyxend; ++yyx)
|
|
|
|
|
if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
|
|
|
|
|
{
|
|
|
|
|
yysize += yystrlen (yyprefix) + yystrlen (yytname [yyx]);
|
|
|
|
|
yycount += 1;
|
|
|
|
|
if (yycount == 5)
|
|
|
|
|
{
|
|
|
|
|
yysize = 0;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
yysize += (sizeof ("syntax error, unexpected ")
|
|
|
|
|
+ yystrlen (yytname[yytype]));
|
|
|
|
|
yymsg = (char *) YYSTACK_ALLOC (yysize);
|
|
|
|
|
if (yymsg != 0)
|
|
|
|
|
{
|
|
|
|
|
char *yyp = yystpcpy (yymsg, "syntax error, unexpected ");
|
|
|
|
|
yyp = yystpcpy (yyp, yytname[yytype]);
|
|
|
|
|
|
|
|
|
|
if (yycount < 5)
|
|
|
|
|
{
|
|
|
|
|
yyprefix = ", expecting ";
|
|
|
|
|
for (yyx = yyxbegin; yyx < yyxend; ++yyx)
|
|
|
|
|
if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
|
|
|
|
|
{
|
|
|
|
|
yyp = yystpcpy (yyp, yyprefix);
|
|
|
|
|
yyp = yystpcpy (yyp, yytname[yyx]);
|
|
|
|
|
yyprefix = " or ";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
yyerror (yymsg);
|
|
|
|
|
YYSTACK_FREE (yymsg);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
yyerror ("syntax error; also virtual memory exhausted");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
#endif /* YYERROR_VERBOSE */
|
|
|
|
|
yyerror ("syntax error");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (yyerrstatus == 3)
|
|
|
|
|
{
|
|
|
|
|
/* If just tried and failed to reuse lookahead token after an
|
|
|
|
|
error, discard it. */
|
|
|
|
|
|
|
|
|
|
/* Return failure if at end of input. */
|
|
|
|
|
if (yychar == YYEOF)
|
2003-11-28 18:07:29 +03:00
|
|
|
|
{
|
2006-01-24 00:44:44 +03:00
|
|
|
|
/* Pop the error token. */
|
|
|
|
|
YYPOPSTACK;
|
|
|
|
|
/* Pop the rest of the stack. */
|
|
|
|
|
while (yyss < yyssp)
|
|
|
|
|
{
|
|
|
|
|
YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp);
|
|
|
|
|
yydestruct (yystos[*yyssp], yyvsp);
|
|
|
|
|
YYPOPSTACK;
|
|
|
|
|
}
|
|
|
|
|
YYABORT;
|
2003-11-28 18:07:29 +03:00
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
|
|
|
|
|
YYDSYMPRINTF ("Error: discarding", yytoken, &yylval, &yylloc);
|
|
|
|
|
yydestruct (yytoken, &yylval);
|
|
|
|
|
yychar = YYEMPTY;
|
|
|
|
|
|
2003-11-28 18:07:29 +03:00
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
|
|
|
|
|
/* Else will try to reuse lookahead token after shifting the error
|
|
|
|
|
token. */
|
|
|
|
|
goto yyerrlab1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*----------------------------------------------------.
|
|
|
|
|
| yyerrlab1 -- error raised explicitly by an action. |
|
|
|
|
|
`----------------------------------------------------*/
|
|
|
|
|
yyerrlab1:
|
|
|
|
|
yyerrstatus = 3; /* Each real token shifted decrements this. */
|
|
|
|
|
|
|
|
|
|
for (;;)
|
2003-11-28 18:07:29 +03:00
|
|
|
|
{
|
2006-01-24 00:44:44 +03:00
|
|
|
|
yyn = yypact[yystate];
|
|
|
|
|
if (yyn != YYPACT_NINF)
|
|
|
|
|
{
|
|
|
|
|
yyn += YYTERROR;
|
|
|
|
|
if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
|
|
|
|
|
{
|
|
|
|
|
yyn = yytable[yyn];
|
|
|
|
|
if (0 < yyn)
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Pop the current state because it cannot handle the error token. */
|
|
|
|
|
if (yyssp == yyss)
|
|
|
|
|
YYABORT;
|
|
|
|
|
|
|
|
|
|
YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp);
|
|
|
|
|
yydestruct (yystos[yystate], yyvsp);
|
|
|
|
|
yyvsp--;
|
|
|
|
|
yystate = *--yyssp;
|
|
|
|
|
|
|
|
|
|
YY_STACK_PRINT (yyss, yyssp);
|
2003-11-28 18:07:29 +03:00
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
|
|
|
|
|
if (yyn == YYFINAL)
|
|
|
|
|
YYACCEPT;
|
|
|
|
|
|
|
|
|
|
YYDPRINTF ((stderr, "Shifting error token, "));
|
|
|
|
|
|
|
|
|
|
*++yyvsp = yylval;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
yystate = yyn;
|
|
|
|
|
goto yynewstate;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*-------------------------------------.
|
|
|
|
|
| yyacceptlab -- YYACCEPT comes here. |
|
|
|
|
|
`-------------------------------------*/
|
|
|
|
|
yyacceptlab:
|
|
|
|
|
yyresult = 0;
|
|
|
|
|
goto yyreturn;
|
|
|
|
|
|
|
|
|
|
/*-----------------------------------.
|
|
|
|
|
| yyabortlab -- YYABORT comes here. |
|
|
|
|
|
`-----------------------------------*/
|
|
|
|
|
yyabortlab:
|
|
|
|
|
yyresult = 1;
|
|
|
|
|
goto yyreturn;
|
|
|
|
|
|
|
|
|
|
#ifndef yyoverflow
|
|
|
|
|
/*----------------------------------------------.
|
|
|
|
|
| yyoverflowlab -- parser overflow comes here. |
|
|
|
|
|
`----------------------------------------------*/
|
|
|
|
|
yyoverflowlab:
|
|
|
|
|
yyerror ("parser stack overflow");
|
|
|
|
|
yyresult = 2;
|
|
|
|
|
/* Fall through. */
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
yyreturn:
|
|
|
|
|
#ifndef yyoverflow
|
|
|
|
|
if (yyss != yyssa)
|
|
|
|
|
YYSTACK_FREE (yyss);
|
|
|
|
|
#endif
|
|
|
|
|
return yyresult;
|
2003-11-28 18:07:29 +03:00
|
|
|
|
}
|
2006-01-24 00:44:44 +03:00
|
|
|
|
|
|
|
|
|
|
2006-02-01 21:12:08 +03:00
|
|
|
|
#line 1170 "parser.y"
|
2006-01-24 00:44:44 +03:00
|
|
|
|
|
|
|
|
|
|
2003-11-28 18:07:29 +03:00
|
|
|
|
#endif /* if BX_DEBUGGER */
|
|
|
|
|
/* The #endif is appended by the makefile after running yacc. */
|