Bochs/bochs/bx_debug/parser.c
Stanislav Shwartsman 988ac41389 regen lex files
2011-05-02 17:20:38 +00:00

4496 lines
142 KiB
C
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* A Bison parser, made by GNU Bison 2.4.2. */
/* Skeleton implementation for Bison's Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2006, 2009-2010 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 3 of the License, 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, see <http://www.gnu.org/licenses/>. */
/* As a special exception, you may create a larger work that contains
part or all of the Bison parser skeleton and distribute that work
under terms of your choice, so long as that work isn't itself a
parser generator using the skeleton or a modified version thereof
as a parser skeleton. Alternatively, if you modify or redistribute
the parser skeleton itself, you may (at your option) remove this
special exception, which will cause the skeleton and the resulting
Bison output files to be licensed under the GNU General Public
License without this special exception.
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
/* C LALR(1) parser skeleton 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
/* Bison version. */
#define YYBISON_VERSION "2.4.2"
/* Skeleton name. */
#define YYSKELETON_NAME "yacc.c"
/* Pure parsers. */
#define YYPURE 0
/* Push parsers. */
#define YYPUSH 0
/* Pull parsers. */
#define YYPULL 1
/* Using locations. */
#define YYLSP_NEEDED 0
/* Substitute the variable and function names. */
#define yyparse bxparse
#define yylex bxlex
#define yyerror bxerror
#define yylval bxlval
#define yychar bxchar
#define yydebug bxdebug
#define yynerrs bxnerrs
/* Copy the first part of user declarations. */
/* Line 189 of yacc.c */
#line 5 "parser.y"
#include <stdio.h>
#include <stdlib.h>
#include "debug.h"
#if BX_DEBUGGER
/* Line 189 of yacc.c */
#line 89 "y.tab.c"
/* 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
/* Enabling the token table. */
#ifndef YYTOKEN_TABLE
# define YYTOKEN_TABLE 0
#endif
/* 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_8BH_REG = 258,
BX_TOKEN_8BL_REG = 259,
BX_TOKEN_16B_REG = 260,
BX_TOKEN_32B_REG = 261,
BX_TOKEN_64B_REG = 262,
BX_TOKEN_CS = 263,
BX_TOKEN_ES = 264,
BX_TOKEN_SS = 265,
BX_TOKEN_DS = 266,
BX_TOKEN_FS = 267,
BX_TOKEN_GS = 268,
BX_TOKEN_FLAGS = 269,
BX_TOKEN_ON = 270,
BX_TOKEN_OFF = 271,
BX_TOKEN_CONTINUE = 272,
BX_TOKEN_STEPN = 273,
BX_TOKEN_STEP_OVER = 274,
BX_TOKEN_NEXT_STEP = 275,
BX_TOKEN_SET = 276,
BX_TOKEN_DEBUGGER = 277,
BX_TOKEN_LIST_BREAK = 278,
BX_TOKEN_VBREAKPOINT = 279,
BX_TOKEN_LBREAKPOINT = 280,
BX_TOKEN_PBREAKPOINT = 281,
BX_TOKEN_DEL_BREAKPOINT = 282,
BX_TOKEN_ENABLE_BREAKPOINT = 283,
BX_TOKEN_DISABLE_BREAKPOINT = 284,
BX_TOKEN_INFO = 285,
BX_TOKEN_QUIT = 286,
BX_TOKEN_R = 287,
BX_TOKEN_REGS = 288,
BX_TOKEN_CPU = 289,
BX_TOKEN_FPU = 290,
BX_TOKEN_MMX = 291,
BX_TOKEN_SSE = 292,
BX_TOKEN_AVX = 293,
BX_TOKEN_IDT = 294,
BX_TOKEN_IVT = 295,
BX_TOKEN_GDT = 296,
BX_TOKEN_LDT = 297,
BX_TOKEN_TSS = 298,
BX_TOKEN_TAB = 299,
BX_TOKEN_ALL = 300,
BX_TOKEN_LINUX = 301,
BX_TOKEN_DEBUG_REGS = 302,
BX_TOKEN_CONTROL_REGS = 303,
BX_TOKEN_SEGMENT_REGS = 304,
BX_TOKEN_EXAMINE = 305,
BX_TOKEN_XFORMAT = 306,
BX_TOKEN_DISFORMAT = 307,
BX_TOKEN_RESTORE = 308,
BX_TOKEN_SETPMEM = 309,
BX_TOKEN_SYMBOLNAME = 310,
BX_TOKEN_QUERY = 311,
BX_TOKEN_PENDING = 312,
BX_TOKEN_TAKE = 313,
BX_TOKEN_DMA = 314,
BX_TOKEN_IRQ = 315,
BX_TOKEN_HEX = 316,
BX_TOKEN_DISASM = 317,
BX_TOKEN_INSTRUMENT = 318,
BX_TOKEN_STRING = 319,
BX_TOKEN_STOP = 320,
BX_TOKEN_DOIT = 321,
BX_TOKEN_CRC = 322,
BX_TOKEN_TRACE = 323,
BX_TOKEN_TRACEREG = 324,
BX_TOKEN_TRACEMEM = 325,
BX_TOKEN_SWITCH_MODE = 326,
BX_TOKEN_SIZE = 327,
BX_TOKEN_PTIME = 328,
BX_TOKEN_TIMEBP_ABSOLUTE = 329,
BX_TOKEN_TIMEBP = 330,
BX_TOKEN_RECORD = 331,
BX_TOKEN_PLAYBACK = 332,
BX_TOKEN_MODEBP = 333,
BX_TOKEN_PRINT_STACK = 334,
BX_TOKEN_WATCH = 335,
BX_TOKEN_UNWATCH = 336,
BX_TOKEN_READ = 337,
BX_TOKEN_WRITE = 338,
BX_TOKEN_SHOW = 339,
BX_TOKEN_LOAD_SYMBOLS = 340,
BX_TOKEN_SYMBOLS = 341,
BX_TOKEN_LIST_SYMBOLS = 342,
BX_TOKEN_GLOBAL = 343,
BX_TOKEN_WHERE = 344,
BX_TOKEN_PRINT_STRING = 345,
BX_TOKEN_NUMERIC = 346,
BX_TOKEN_NE2000 = 347,
BX_TOKEN_PIC = 348,
BX_TOKEN_PAGE = 349,
BX_TOKEN_HELP = 350,
BX_TOKEN_CALC = 351,
BX_TOKEN_VGA = 352,
BX_TOKEN_PCI = 353,
BX_TOKEN_COMMAND = 354,
BX_TOKEN_GENERIC = 355,
BX_TOKEN_RSHIFT = 356,
BX_TOKEN_LSHIFT = 357,
BX_TOKEN_REG_IP = 358,
BX_TOKEN_REG_EIP = 359,
BX_TOKEN_REG_RIP = 360,
INDIRECT = 361,
NEG = 362,
NOT = 363
};
#endif
/* Tokens. */
#define BX_TOKEN_8BH_REG 258
#define BX_TOKEN_8BL_REG 259
#define BX_TOKEN_16B_REG 260
#define BX_TOKEN_32B_REG 261
#define BX_TOKEN_64B_REG 262
#define BX_TOKEN_CS 263
#define BX_TOKEN_ES 264
#define BX_TOKEN_SS 265
#define BX_TOKEN_DS 266
#define BX_TOKEN_FS 267
#define BX_TOKEN_GS 268
#define BX_TOKEN_FLAGS 269
#define BX_TOKEN_ON 270
#define BX_TOKEN_OFF 271
#define BX_TOKEN_CONTINUE 272
#define BX_TOKEN_STEPN 273
#define BX_TOKEN_STEP_OVER 274
#define BX_TOKEN_NEXT_STEP 275
#define BX_TOKEN_SET 276
#define BX_TOKEN_DEBUGGER 277
#define BX_TOKEN_LIST_BREAK 278
#define BX_TOKEN_VBREAKPOINT 279
#define BX_TOKEN_LBREAKPOINT 280
#define BX_TOKEN_PBREAKPOINT 281
#define BX_TOKEN_DEL_BREAKPOINT 282
#define BX_TOKEN_ENABLE_BREAKPOINT 283
#define BX_TOKEN_DISABLE_BREAKPOINT 284
#define BX_TOKEN_INFO 285
#define BX_TOKEN_QUIT 286
#define BX_TOKEN_R 287
#define BX_TOKEN_REGS 288
#define BX_TOKEN_CPU 289
#define BX_TOKEN_FPU 290
#define BX_TOKEN_MMX 291
#define BX_TOKEN_SSE 292
#define BX_TOKEN_AVX 293
#define BX_TOKEN_IDT 294
#define BX_TOKEN_IVT 295
#define BX_TOKEN_GDT 296
#define BX_TOKEN_LDT 297
#define BX_TOKEN_TSS 298
#define BX_TOKEN_TAB 299
#define BX_TOKEN_ALL 300
#define BX_TOKEN_LINUX 301
#define BX_TOKEN_DEBUG_REGS 302
#define BX_TOKEN_CONTROL_REGS 303
#define BX_TOKEN_SEGMENT_REGS 304
#define BX_TOKEN_EXAMINE 305
#define BX_TOKEN_XFORMAT 306
#define BX_TOKEN_DISFORMAT 307
#define BX_TOKEN_RESTORE 308
#define BX_TOKEN_SETPMEM 309
#define BX_TOKEN_SYMBOLNAME 310
#define BX_TOKEN_QUERY 311
#define BX_TOKEN_PENDING 312
#define BX_TOKEN_TAKE 313
#define BX_TOKEN_DMA 314
#define BX_TOKEN_IRQ 315
#define BX_TOKEN_HEX 316
#define BX_TOKEN_DISASM 317
#define BX_TOKEN_INSTRUMENT 318
#define BX_TOKEN_STRING 319
#define BX_TOKEN_STOP 320
#define BX_TOKEN_DOIT 321
#define BX_TOKEN_CRC 322
#define BX_TOKEN_TRACE 323
#define BX_TOKEN_TRACEREG 324
#define BX_TOKEN_TRACEMEM 325
#define BX_TOKEN_SWITCH_MODE 326
#define BX_TOKEN_SIZE 327
#define BX_TOKEN_PTIME 328
#define BX_TOKEN_TIMEBP_ABSOLUTE 329
#define BX_TOKEN_TIMEBP 330
#define BX_TOKEN_RECORD 331
#define BX_TOKEN_PLAYBACK 332
#define BX_TOKEN_MODEBP 333
#define BX_TOKEN_PRINT_STACK 334
#define BX_TOKEN_WATCH 335
#define BX_TOKEN_UNWATCH 336
#define BX_TOKEN_READ 337
#define BX_TOKEN_WRITE 338
#define BX_TOKEN_SHOW 339
#define BX_TOKEN_LOAD_SYMBOLS 340
#define BX_TOKEN_SYMBOLS 341
#define BX_TOKEN_LIST_SYMBOLS 342
#define BX_TOKEN_GLOBAL 343
#define BX_TOKEN_WHERE 344
#define BX_TOKEN_PRINT_STRING 345
#define BX_TOKEN_NUMERIC 346
#define BX_TOKEN_NE2000 347
#define BX_TOKEN_PIC 348
#define BX_TOKEN_PAGE 349
#define BX_TOKEN_HELP 350
#define BX_TOKEN_CALC 351
#define BX_TOKEN_VGA 352
#define BX_TOKEN_PCI 353
#define BX_TOKEN_COMMAND 354
#define BX_TOKEN_GENERIC 355
#define BX_TOKEN_RSHIFT 356
#define BX_TOKEN_LSHIFT 357
#define BX_TOKEN_REG_IP 358
#define BX_TOKEN_REG_EIP 359
#define BX_TOKEN_REG_RIP 360
#define INDIRECT 361
#define NEG 362
#define NOT 363
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef union YYSTYPE
{
/* Line 214 of yacc.c */
#line 13 "parser.y"
char *sval;
Bit64u uval;
bx_bool bval;
/* Line 214 of yacc.c */
#line 349 "y.tab.c"
} YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
#endif
/* Copy the second part of user declarations. */
/* Line 264 of yacc.c */
#line 361 "y.tab.c"
#ifdef short
# undef short
#endif
#ifdef YYTYPE_UINT8
typedef YYTYPE_UINT8 yytype_uint8;
#else
typedef unsigned char yytype_uint8;
#endif
#ifdef YYTYPE_INT8
typedef YYTYPE_INT8 yytype_int8;
#elif (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
typedef signed char yytype_int8;
#else
typedef short int yytype_int8;
#endif
#ifdef YYTYPE_UINT16
typedef YYTYPE_UINT16 yytype_uint16;
#else
typedef unsigned short int yytype_uint16;
#endif
#ifdef YYTYPE_INT16
typedef YYTYPE_INT16 yytype_int16;
#else
typedef short int yytype_int16;
#endif
#ifndef YYSIZE_T
# ifdef __SIZE_TYPE__
# define YYSIZE_T __SIZE_TYPE__
# elif defined size_t
# define YYSIZE_T size_t
# elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
# define YYSIZE_T size_t
# else
# define YYSIZE_T unsigned int
# endif
#endif
#define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
#ifndef YY_
# if defined YYENABLE_NLS && YYENABLE_NLS
# if ENABLE_NLS
# include <libintl.h> /* INFRINGES ON USER NAME SPACE */
# define YY_(msgid) dgettext ("bison-runtime", msgid)
# endif
# endif
# ifndef YY_
# define YY_(msgid) msgid
# endif
#endif
/* Suppress unused-variable warnings by "using" E. */
#if ! defined lint || defined __GNUC__
# define YYUSE(e) ((void) (e))
#else
# define YYUSE(e) /* empty */
#endif
/* Identity function, used to suppress warnings about constant conditions. */
#ifndef lint
# define YYID(n) (n)
#else
#if (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
static int
YYID (int yyi)
#else
static int
YYID (yyi)
int yyi;
#endif
{
return yyi;
}
#endif
#if ! defined yyoverflow || YYERROR_VERBOSE
/* The parser invokes alloca or malloc; define the necessary symbols. */
# ifdef YYSTACK_USE_ALLOCA
# if YYSTACK_USE_ALLOCA
# ifdef __GNUC__
# define YYSTACK_ALLOC __builtin_alloca
# elif defined __BUILTIN_VA_ARG_INCR
# include <alloca.h> /* INFRINGES ON USER NAME SPACE */
# elif defined _AIX
# define YYSTACK_ALLOC __alloca
# elif defined _MSC_VER
# include <malloc.h> /* INFRINGES ON USER NAME SPACE */
# define alloca _alloca
# else
# define YYSTACK_ALLOC alloca
# if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
# ifndef _STDLIB_H
# define _STDLIB_H 1
# endif
# endif
# endif
# endif
# endif
# ifdef YYSTACK_ALLOC
/* Pacify GCC's `empty if-body' warning. */
# define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0))
# ifndef YYSTACK_ALLOC_MAXIMUM
/* The OS might guarantee only one guard page at the bottom of the stack,
and a page size can be as small as 4096 bytes. So we cannot safely
invoke alloca (N) if N exceeds 4096. Use a slightly smaller number
to allow for a few compiler-allocated temporary stack slots. */
# define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
# endif
# else
# define YYSTACK_ALLOC YYMALLOC
# define YYSTACK_FREE YYFREE
# ifndef YYSTACK_ALLOC_MAXIMUM
# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
# endif
# if (defined __cplusplus && ! defined _STDLIB_H \
&& ! ((defined YYMALLOC || defined malloc) \
&& (defined YYFREE || defined free)))
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
# ifndef _STDLIB_H
# define _STDLIB_H 1
# endif
# endif
# ifndef YYMALLOC
# define YYMALLOC malloc
# if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
# endif
# endif
# ifndef YYFREE
# define YYFREE free
# if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
void free (void *); /* INFRINGES ON USER NAME SPACE */
# endif
# endif
# endif
#endif /* ! defined yyoverflow || YYERROR_VERBOSE */
#if (! defined yyoverflow \
&& (! defined __cplusplus \
|| (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
/* A type that is properly aligned for any stack member. */
union yyalloc
{
yytype_int16 yyss_alloc;
YYSTYPE yyvs_alloc;
};
/* 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 (yytype_int16) + sizeof (YYSTYPE)) \
+ YYSTACK_GAP_MAXIMUM)
/* Copy COUNT objects from FROM to TO. The source and destination do
not overlap. */
# ifndef YYCOPY
# if defined __GNUC__ && 1 < __GNUC__
# define YYCOPY(To, From, Count) \
__builtin_memcpy (To, From, (Count) * sizeof (*(From)))
# else
# define YYCOPY(To, From, Count) \
do \
{ \
YYSIZE_T yyi; \
for (yyi = 0; yyi < (Count); yyi++) \
(To)[yyi] = (From)[yyi]; \
} \
while (YYID (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_alloc, Stack) \
do \
{ \
YYSIZE_T yynewbytes; \
YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
Stack = &yyptr->Stack_alloc; \
yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
yyptr += yynewbytes / sizeof (*yyptr); \
} \
while (YYID (0))
#endif
/* YYFINAL -- State number of the termination state. */
#define YYFINAL 282
/* YYLAST -- Last index in YYTABLE. */
#define YYLAST 1505
/* YYNTOKENS -- Number of terminals. */
#define YYNTOKENS 123
/* YYNNTS -- Number of nonterminals. */
#define YYNNTS 55
/* YYNRULES -- Number of rules. */
#define YYNRULES 269
/* YYNRULES -- Number of states. */
#define YYNSTATES 522
/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
#define YYUNDEFTOK 2
#define YYMAXUTOK 363
#define YYTRANSLATE(YYX) \
((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
static const yytype_uint8 yytranslate[] =
{
0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
116, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 119, 2, 2, 2, 2, 112, 2,
120, 121, 110, 106, 2, 107, 2, 111, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 118, 2,
2, 117, 2, 2, 122, 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, 109, 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, 108, 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, 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, 113, 114, 115
};
#if YYDEBUG
/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
YYRHS. */
static const yytype_uint16 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,
80, 82, 84, 86, 88, 90, 92, 94, 96, 98,
100, 101, 103, 105, 107, 109, 111, 113, 115, 117,
119, 121, 123, 127, 131, 135, 139, 142, 146, 150,
153, 157, 160, 164, 168, 172, 175, 179, 183, 187,
190, 195, 200, 205, 211, 217, 223, 226, 230, 234,
239, 244, 250, 253, 257, 260, 263, 267, 272, 277,
280, 285, 291, 297, 303, 309, 315, 321, 327, 330,
336, 339, 343, 347, 350, 354, 359, 362, 365, 369,
373, 377, 383, 389, 395, 401, 405, 409, 413, 417,
421, 426, 430, 436, 444, 448, 452, 456, 457, 459,
462, 465, 468, 471, 474, 477, 480, 483, 487, 491,
495, 498, 503, 507, 511, 514, 519, 525, 529, 533,
538, 542, 545, 549, 554, 558, 563, 569, 573, 578,
584, 588, 592, 596, 601, 605, 609, 613, 617, 621,
625, 629, 633, 637, 641, 645, 649, 653, 657, 661,
665, 669, 673, 677, 681, 685, 689, 693, 697, 701,
705, 709, 713, 717, 721, 725, 729, 733, 737, 741,
745, 749, 753, 757, 761, 765, 769, 773, 777, 781,
784, 788, 790, 792, 794, 796, 798, 800, 802, 804,
806, 808, 810, 814, 818, 822, 826, 830, 834, 838,
842, 846, 849, 852, 856, 858, 860, 862, 864, 866,
868, 870, 872, 874, 876, 878, 882, 886, 890, 894,
898, 902, 906, 910, 914, 918, 921, 924, 927, 930
};
/* YYRHS -- A `-1'-separated list of the rules' RHS. */
static const yytype_int16 yyrhs[] =
{
124, 0, -1, 124, 125, -1, 125, -1, 144, -1,
145, -1, 146, -1, 147, -1, 148, -1, 151, -1,
153, -1, 154, -1, 155, -1, 156, -1, 157, -1,
158, -1, 160, -1, 159, -1, 149, -1, 150, -1,
161, -1, 162, -1, 163, -1, 164, -1, 165, -1,
166, -1, 167, -1, 168, -1, 169, -1, 170, -1,
171, -1, 172, -1, 173, -1, 136, -1, 137, -1,
138, -1, 135, -1, 129, -1, 130, -1, 131, -1,
132, -1, 139, -1, 140, -1, 134, -1, 133, -1,
141, -1, 142, -1, 143, -1, 174, -1, 175, -1,
-1, 116, -1, 15, -1, 16, -1, 32, -1, 33,
-1, 8, -1, 9, -1, 10, -1, 11, -1, 12,
-1, 13, -1, 75, 91, 116, -1, 74, 91, 116,
-1, 76, 64, 116, -1, 77, 64, 116, -1, 78,
116, -1, 84, 99, 116, -1, 84, 64, 116, -1,
84, 116, -1, 94, 177, 116, -1, 73, 116, -1,
68, 126, 116, -1, 69, 126, 116, -1, 70, 126,
116, -1, 79, 116, -1, 79, 91, 116, -1, 80,
65, 116, -1, 80, 17, 116, -1, 80, 116, -1,
80, 32, 177, 116, -1, 80, 82, 177, 116, -1,
80, 83, 177, 116, -1, 80, 32, 177, 177, 116,
-1, 80, 82, 177, 177, 116, -1, 80, 83, 177,
177, 116, -1, 81, 116, -1, 81, 177, 116, -1,
85, 64, 116, -1, 85, 64, 91, 116, -1, 85,
88, 64, 116, -1, 85, 88, 64, 91, 116, -1,
89, 116, -1, 90, 91, 116, -1, 17, 116, -1,
18, 116, -1, 18, 91, 116, -1, 18, 45, 91,
116, -1, 18, 91, 91, 116, -1, 19, 116, -1,
21, 62, 126, 116, -1, 21, 55, 117, 91, 116,
-1, 21, 4, 117, 177, 116, -1, 21, 3, 117,
177, 116, -1, 21, 5, 117, 177, 116, -1, 21,
6, 117, 177, 116, -1, 21, 7, 117, 177, 116,
-1, 21, 128, 117, 177, 116, -1, 24, 116, -1,
24, 176, 118, 176, 116, -1, 25, 116, -1, 25,
177, 116, -1, 25, 64, 116, -1, 26, 116, -1,
26, 177, 116, -1, 26, 110, 177, 116, -1, 23,
116, -1, 87, 116, -1, 87, 64, 116, -1, 30,
26, 116, -1, 30, 34, 116, -1, 30, 39, 152,
152, 116, -1, 30, 40, 152, 152, 116, -1, 30,
41, 152, 152, 116, -1, 30, 42, 152, 152, 116,
-1, 30, 44, 116, -1, 30, 43, 116, -1, 30,
14, 116, -1, 30, 46, 116, -1, 30, 86, 116,
-1, 30, 86, 64, 116, -1, 30, 92, 116, -1,
30, 92, 94, 91, 116, -1, 30, 92, 94, 91,
127, 91, 116, -1, 30, 93, 116, -1, 30, 97,
116, -1, 30, 98, 116, -1, -1, 91, -1, 127,
116, -1, 35, 116, -1, 36, 116, -1, 37, 116,
-1, 38, 116, -1, 49, 116, -1, 48, 116, -1,
47, 116, -1, 27, 91, 116, -1, 28, 91, 116,
-1, 29, 91, 116, -1, 31, 116, -1, 50, 51,
177, 116, -1, 50, 51, 116, -1, 50, 177, 116,
-1, 50, 116, -1, 53, 64, 64, 116, -1, 54,
91, 91, 91, 116, -1, 56, 57, 116, -1, 58,
59, 116, -1, 58, 59, 91, 116, -1, 58, 60,
116, -1, 62, 116, -1, 62, 177, 116, -1, 62,
177, 177, 116, -1, 62, 52, 116, -1, 62, 52,
177, 116, -1, 62, 52, 177, 177, 116, -1, 62,
71, 116, -1, 62, 61, 126, 116, -1, 62, 72,
117, 91, 116, -1, 63, 65, 116, -1, 63, 99,
116, -1, 66, 91, 116, -1, 67, 91, 91, 116,
-1, 95, 31, 116, -1, 95, 17, 116, -1, 95,
18, 116, -1, 95, 19, 116, -1, 95, 24, 116,
-1, 95, 25, 116, -1, 95, 26, 116, -1, 95,
27, 116, -1, 95, 28, 116, -1, 95, 29, 116,
-1, 95, 23, 116, -1, 95, 78, 116, -1, 95,
67, 116, -1, 95, 68, 116, -1, 95, 69, 116,
-1, 95, 70, 116, -1, 95, 53, 116, -1, 95,
73, 116, -1, 95, 75, 116, -1, 95, 74, 116,
-1, 95, 79, 116, -1, 95, 76, 116, -1, 95,
77, 116, -1, 95, 85, 116, -1, 95, 87, 116,
-1, 95, 127, 116, -1, 95, 35, 116, -1, 95,
36, 116, -1, 95, 37, 116, -1, 95, 38, 116,
-1, 95, 49, 116, -1, 95, 48, 116, -1, 95,
47, 116, -1, 95, 54, 116, -1, 95, 62, 116,
-1, 95, 80, 116, -1, 95, 81, 116, -1, 95,
50, 116, -1, 95, 63, 116, -1, 95, 21, 116,
-1, 95, 94, 116, -1, 95, 30, 116, -1, 95,
84, 116, -1, 95, 96, 116, -1, 95, 95, 116,
-1, 95, 116, -1, 96, 177, 116, -1, 91, -1,
64, -1, 4, -1, 3, -1, 5, -1, 6, -1,
7, -1, 128, -1, 103, -1, 104, -1, 105, -1,
176, 106, 176, -1, 176, 107, 176, -1, 176, 110,
176, -1, 176, 111, 176, -1, 176, 101, 176, -1,
176, 102, 176, -1, 176, 108, 176, -1, 176, 109,
176, -1, 176, 112, 176, -1, 119, 176, -1, 107,
176, -1, 120, 176, 121, -1, 91, -1, 64, -1,
4, -1, 3, -1, 5, -1, 6, -1, 7, -1,
128, -1, 103, -1, 104, -1, 105, -1, 177, 118,
177, -1, 177, 106, 177, -1, 177, 107, 177, -1,
177, 110, 177, -1, 177, 111, 177, -1, 177, 101,
177, -1, 177, 102, 177, -1, 177, 108, 177, -1,
177, 109, 177, -1, 177, 112, 177, -1, 119, 177,
-1, 107, 177, -1, 110, 177, -1, 122, 177, -1,
120, 177, 121, -1
};
/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
static const yytype_uint16 yyrline[] =
{
0, 140, 140, 141, 145, 146, 147, 148, 149, 150,
151, 152, 153, 154, 155, 156, 157, 158, 159, 160,
161, 162, 163, 164, 165, 166, 167, 168, 169, 170,
171, 172, 173, 174, 175, 176, 177, 178, 179, 180,
181, 182, 183, 184, 185, 186, 187, 188, 189, 190,
191, 192, 198, 199, 204, 205, 210, 211, 212, 213,
214, 215, 220, 225, 233, 241, 249, 257, 262, 267,
275, 283, 291, 299, 307, 315, 320, 328, 333, 338,
343, 348, 353, 358, 363, 368, 373, 378, 386, 391,
396, 401, 409, 417, 425, 433, 438, 443, 448, 456,
464, 469, 474, 478, 482, 486, 490, 494, 501, 506,
511, 516, 521, 526, 531, 536, 544, 552, 557, 565,
570, 575, 580, 585, 590, 595, 600, 605, 610, 615,
620, 625, 630, 635, 640, 645, 650, 658, 659, 662,
670, 678, 686, 694, 702, 710, 718, 726, 734, 741,
749, 757, 762, 767, 772, 780, 788, 796, 804, 809,
814, 822, 827, 832, 837, 842, 847, 852, 857, 862,
870, 875, 883, 891, 899, 904, 909, 916, 921, 926,
931, 936, 941, 946, 951, 956, 961, 966, 972, 978,
984, 992, 997, 1002, 1007, 1012, 1017, 1022, 1027, 1032,
1037, 1042, 1047, 1052, 1057, 1062, 1067, 1072, 1077, 1087,
1098, 1104, 1117, 1122, 1132, 1137, 1153, 1165, 1175, 1180,
1188, 1206, 1207, 1208, 1209, 1210, 1211, 1212, 1213, 1214,
1215, 1216, 1217, 1218, 1219, 1220, 1221, 1222, 1223, 1224,
1225, 1226, 1227, 1228, 1234, 1235, 1236, 1237, 1238, 1239,
1240, 1241, 1242, 1243, 1244, 1245, 1246, 1247, 1248, 1249,
1250, 1251, 1252, 1253, 1254, 1255, 1256, 1257, 1258, 1259
};
#endif
#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
/* YYTNAME[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_8BH_REG", "BX_TOKEN_8BL_REG",
"BX_TOKEN_16B_REG", "BX_TOKEN_32B_REG", "BX_TOKEN_64B_REG",
"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_R", "BX_TOKEN_REGS", "BX_TOKEN_CPU", "BX_TOKEN_FPU",
"BX_TOKEN_MMX", "BX_TOKEN_SSE", "BX_TOKEN_AVX", "BX_TOKEN_IDT",
"BX_TOKEN_IVT", "BX_TOKEN_GDT", "BX_TOKEN_LDT", "BX_TOKEN_TSS",
"BX_TOKEN_TAB", "BX_TOKEN_ALL", "BX_TOKEN_LINUX", "BX_TOKEN_DEBUG_REGS",
"BX_TOKEN_CONTROL_REGS", "BX_TOKEN_SEGMENT_REGS", "BX_TOKEN_EXAMINE",
"BX_TOKEN_XFORMAT", "BX_TOKEN_DISFORMAT", "BX_TOKEN_RESTORE",
"BX_TOKEN_SETPMEM", "BX_TOKEN_SYMBOLNAME", "BX_TOKEN_QUERY",
"BX_TOKEN_PENDING", "BX_TOKEN_TAKE", "BX_TOKEN_DMA", "BX_TOKEN_IRQ",
"BX_TOKEN_HEX", "BX_TOKEN_DISASM", "BX_TOKEN_INSTRUMENT",
"BX_TOKEN_STRING", "BX_TOKEN_STOP", "BX_TOKEN_DOIT", "BX_TOKEN_CRC",
"BX_TOKEN_TRACE", "BX_TOKEN_TRACEREG", "BX_TOKEN_TRACEMEM",
"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_NE2000",
"BX_TOKEN_PIC", "BX_TOKEN_PAGE", "BX_TOKEN_HELP", "BX_TOKEN_CALC",
"BX_TOKEN_VGA", "BX_TOKEN_PCI", "BX_TOKEN_COMMAND", "BX_TOKEN_GENERIC",
"BX_TOKEN_RSHIFT", "BX_TOKEN_LSHIFT", "BX_TOKEN_REG_IP",
"BX_TOKEN_REG_EIP", "BX_TOKEN_REG_RIP", "'+'", "'-'", "'|'", "'^'",
"'*'", "'/'", "'&'", "INDIRECT", "NEG", "NOT", "'\\n'", "'='", "':'",
"'!'", "'('", "')'", "'@'", "$accept", "commands", "command",
"BX_TOKEN_TOGGLE_ON_OFF", "BX_TOKEN_REGISTERS", "BX_TOKEN_SEGREG",
"timebp_command", "record_command", "playback_command", "modebp_command",
"show_command", "page_command", "ptime_command", "trace_command",
"trace_reg_command", "trace_mem_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", "optional_numeric",
"regs_command", "fpu_regs_command", "mmx_regs_command",
"sse_regs_command", "avx_regs_command", "segment_regs_command",
"control_regs_command", "debug_regs_command", "delete_command",
"bpe_command", "bpd_command", "quit_command", "examine_command",
"restore_command", "setpmem_command", "query_command", "take_command",
"disassemble_command", "instrument_command", "doit_command",
"crc_command", "help_command", "calc_command", "vexpression",
"expression", 0
};
#endif
# ifdef YYPRINT
/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
token YYLEX-NUM. */
static const yytype_uint16 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, 43, 45, 124, 94,
42, 47, 38, 361, 362, 363, 10, 61, 58, 33,
40, 41, 64
};
# endif
/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
static const yytype_uint8 yyr1[] =
{
0, 123, 124, 124, 125, 125, 125, 125, 125, 125,
125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
125, 125, 125, 125, 125, 125, 125, 125, 125, 125,
125, 125, 126, 126, 127, 127, 128, 128, 128, 128,
128, 128, 129, 129, 130, 131, 132, 133, 133, 133,
134, 135, 136, 137, 138, 139, 139, 140, 140, 140,
140, 140, 140, 140, 140, 140, 140, 140, 141, 141,
141, 141, 142, 143, 144, 145, 145, 145, 145, 146,
147, 147, 147, 147, 147, 147, 147, 147, 148, 148,
148, 148, 148, 148, 148, 148, 149, 150, 150, 151,
151, 151, 151, 151, 151, 151, 151, 151, 151, 151,
151, 151, 151, 151, 151, 151, 151, 152, 152, 153,
154, 155, 156, 157, 158, 159, 160, 161, 162, 163,
164, 165, 165, 165, 165, 166, 167, 168, 169, 169,
169, 170, 170, 170, 170, 170, 170, 170, 170, 170,
171, 171, 172, 173, 174, 174, 174, 174, 174, 174,
174, 174, 174, 174, 174, 174, 174, 174, 174, 174,
174, 174, 174, 174, 174, 174, 174, 174, 174, 174,
174, 174, 174, 174, 174, 174, 174, 174, 174, 174,
174, 174, 174, 174, 174, 174, 174, 174, 174, 174,
175, 176, 176, 176, 176, 176, 176, 176, 176, 176,
176, 176, 176, 176, 176, 176, 176, 176, 176, 176,
176, 176, 176, 176, 177, 177, 177, 177, 177, 177,
177, 177, 177, 177, 177, 177, 177, 177, 177, 177,
177, 177, 177, 177, 177, 177, 177, 177, 177, 177
};
/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
static const yytype_uint8 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,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
0, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 3, 3, 3, 3, 2, 3, 3, 2,
3, 2, 3, 3, 3, 2, 3, 3, 3, 2,
4, 4, 4, 5, 5, 5, 2, 3, 3, 4,
4, 5, 2, 3, 2, 2, 3, 4, 4, 2,
4, 5, 5, 5, 5, 5, 5, 5, 2, 5,
2, 3, 3, 2, 3, 4, 2, 2, 3, 3,
3, 5, 5, 5, 5, 3, 3, 3, 3, 3,
4, 3, 5, 7, 3, 3, 3, 0, 1, 2,
2, 2, 2, 2, 2, 2, 2, 3, 3, 3,
2, 4, 3, 3, 2, 4, 5, 3, 3, 4,
3, 2, 3, 4, 3, 4, 5, 3, 4, 5,
3, 3, 3, 4, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 2,
3, 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,
1, 1, 1, 1, 1, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 2, 2, 2, 2, 3
};
/* 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. */
static const yytype_uint16 yydefact[] =
{
50, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 54, 55, 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, 51, 0, 3, 0, 37, 38, 39, 40,
44, 43, 36, 33, 34, 35, 41, 42, 45, 46,
47, 4, 5, 6, 7, 8, 18, 19, 9, 10,
11, 12, 13, 14, 15, 17, 16, 20, 21, 22,
23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
48, 49, 94, 0, 0, 95, 99, 0, 0, 0,
0, 0, 56, 57, 58, 59, 60, 61, 0, 0,
0, 116, 224, 223, 225, 226, 227, 222, 221, 229,
230, 231, 0, 108, 0, 0, 228, 0, 247, 246,
248, 249, 250, 245, 244, 252, 253, 254, 0, 0,
110, 0, 0, 0, 251, 0, 245, 0, 113, 0,
0, 0, 0, 0, 0, 0, 137, 137, 137, 137,
0, 0, 0, 0, 0, 0, 0, 0, 150, 140,
141, 142, 143, 146, 145, 144, 0, 154, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 161, 0,
0, 0, 0, 0, 52, 53, 0, 0, 0, 71,
0, 0, 0, 0, 66, 0, 75, 0, 0, 0,
0, 0, 79, 86, 0, 0, 0, 69, 0, 0,
0, 117, 92, 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, 0, 0, 0, 0, 0, 0, 219,
0, 0, 1, 2, 139, 0, 0, 96, 0, 0,
0, 0, 0, 0, 0, 0, 242, 241, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 112,
266, 267, 265, 0, 268, 0, 0, 0, 0, 0,
0, 0, 0, 0, 111, 0, 267, 114, 147, 148,
149, 127, 119, 120, 138, 137, 137, 137, 137, 126,
125, 128, 0, 129, 0, 131, 134, 135, 136, 152,
0, 153, 0, 0, 157, 0, 158, 160, 164, 0,
0, 167, 0, 0, 0, 162, 0, 170, 171, 172,
0, 72, 73, 74, 63, 62, 64, 65, 76, 78,
0, 77, 0, 0, 87, 68, 67, 0, 88, 0,
118, 93, 70, 175, 176, 177, 213, 184, 178, 179,
180, 181, 182, 183, 215, 174, 200, 201, 202, 203,
206, 205, 204, 211, 190, 207, 208, 212, 186, 187,
188, 189, 191, 193, 192, 195, 196, 185, 194, 209,
210, 216, 197, 198, 214, 218, 217, 199, 220, 97,
98, 0, 0, 0, 0, 0, 0, 100, 0, 243,
236, 237, 232, 233, 238, 239, 234, 235, 240, 0,
269, 260, 261, 256, 257, 262, 263, 258, 259, 264,
255, 115, 0, 0, 0, 0, 130, 0, 151, 155,
0, 159, 165, 0, 168, 0, 257, 258, 163, 173,
80, 0, 81, 0, 82, 0, 89, 0, 90, 103,
102, 104, 105, 106, 101, 107, 109, 121, 122, 123,
124, 132, 0, 156, 166, 169, 83, 84, 85, 91,
0, 133
};
/* YYDEFGOTO[NTERM-NUM]. */
static const yytype_int16 yydefgoto[] =
{
-1, 53, 54, 206, 55, 154, 56, 57, 58, 59,
60, 61, 62, 63, 64, 65, 66, 67, 68, 69,
70, 71, 72, 73, 74, 75, 76, 77, 78, 335,
79, 80, 81, 82, 83, 84, 85, 86, 87, 88,
89, 90, 91, 92, 93, 94, 95, 96, 97, 98,
99, 100, 101, 137, 155
};
/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
STATE-NUM. */
#define YYPACT_NINF -163
static const yytype_int16 yypact[] =
{
1112, -89, -35, -85, 54, -81, 862, 580, 651, -48,
-18, -12, 6, -75, -163, -163, -46, -39, -34, -33,
-31, -30, -29, 531, 24, -1, 32, -26, 509, -27,
0, 2, 9, 9, 9, -20, 16, 17, 33, 36,
-6, -77, -14, 700, -45, -51, -42, -5, 21, 851,
1194, 851, -163, 1030, -163, -3, -163, -163, -163, -163,
-163, -163, -163, -163, -163, -163, -163, -163, -163, -163,
-163, -163, -163, -163, -163, -163, -163, -163, -163, -163,
-163, -163, -163, -163, -163, -163, -163, -163, -163, -163,
-163, -163, -163, -163, -163, -163, -163, -163, -163, -163,
-163, -163, -163, 23, -61, -163, -163, 14, 18, 19,
26, 30, -163, -163, -163, -163, -163, -163, 31, 9,
45, -163, -163, -163, -163, -163, -163, -163, -163, -163,
-163, -163, 924, -163, 924, 924, -163, 497, -163, -163,
-163, -163, -163, 47, -163, -163, -163, -163, 851, 851,
-163, 851, 851, 851, -163, 883, -163, 851, -163, 896,
48, 49, 50, 51, 52, 53, 43, 43, 43, 43,
61, 67, 68, -41, -10, 69, 73, 74, -163, -163,
-163, -163, -163, -163, -163, -163, 720, -163, 1185, 76,
58, 75, -38, 87, 789, 9, 88, 89, -163, 114,
91, 92, 93, 95, -163, -163, 94, 111, 112, -163,
113, 115, 119, 121, -163, 122, -163, 124, 851, 125,
851, 851, -163, -163, 1205, 126, 127, -163, -15, 180,
129, -163, -163, 130, 1218, 131, 132, 145, 149, 153,
158, 159, 160, 162, 164, 170, 171, 173, 174, 175,
176, 177, 178, 179, 191, 201, 203, 204, 205, 206,
207, 208, 209, 210, 211, 212, 213, 225, 226, 227,
228, 229, 230, 231, 232, 233, 234, 235, 237, -163,
238, 1231, -163, -163, -163, 239, 242, -163, 851, 851,
851, 851, 851, 186, 243, 851, -163, -163, 444, 924,
924, 924, 924, 924, 924, 924, 924, 924, 924, -163,
253, 253, 253, 302, 253, 851, 851, 851, 851, 851,
851, 851, 851, 851, -163, 851, -101, -163, -163, -163,
-163, -163, -163, -163, -163, 43, 43, 43, 43, -163,
-163, -163, 256, -163, 283, -163, -163, -163, -163, -163,
1244, -163, 261, 287, -163, 263, -163, -163, -163, 148,
264, -163, 290, 851, 851, -163, 1257, -163, -163, -163,
266, -163, -163, -163, -163, -163, -163, -163, -163, -163,
327, -163, 357, 389, -163, -163, -163, 267, -163, -11,
-163, -163, -163, -163, -163, -163, -163, -163, -163, -163,
-163, -163, -163, -163, -163, -163, -163, -163, -163, -163,
-163, -163, -163, -163, -163, -163, -163, -163, -163, -163,
-163, -163, -163, -163, -163, -163, -163, -163, -163, -163,
-163, -163, -163, -163, -163, -163, -163, -163, -163, -163,
-163, 1270, 1283, 1296, 1309, 1322, 268, -163, 1335, -163,
-163, -163, 27, 27, 27, 27, -163, -163, -163, 637,
-163, 253, 253, 70, 70, 70, 70, 253, 253, 253,
568, -163, 269, 270, 271, 272, -163, -21, -163, -163,
273, -163, -163, 1348, -163, 274, 161, 253, -163, -163,
-163, 1361, -163, 1374, -163, 1387, -163, 289, -163, -163,
-163, -163, -163, -163, -163, -163, -163, -163, -163, -163,
-163, -163, 315, -163, -163, -163, -163, -163, -163, -163,
291, -163
};
/* YYPGOTO[NTERM-NUM]. */
static const yytype_int16 yypgoto[] =
{
-163, -163, 62, -25, -50, -2, -163, -163, -163, -163,
-163, -163, -163, -163, -163, -163, -163, -163, -163, -163,
-163, -163, -163, -163, -163, -163, -163, -163, -163, -162,
-163, -163, -163, -163, -163, -163, -163, -163, -163, -163,
-163, -163, -163, -163, -163, -163, -163, -163, -163, -163,
-163, -163, -163, -106, -7
};
/* 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 -267
static const yytype_int16 yytable[] =
{
280, 159, 120, 217, 136, 336, 337, 338, 207, 208,
103, 14, 15, 228, 215, 471, 188, 325, 218, 225,
163, 199, 230, 342, 204, 205, 296, 102, 297, 298,
286, 106, 164, 192, 193, 121, 224, 229, 200, 216,
165, 178, 234, 160, 281, 166, 167, 168, 169, 170,
171, 219, 172, 355, 226, 287, 104, 107, 108, 109,
110, 111, 112, 113, 114, 115, 116, 117, 220, 221,
179, 227, 201, 161, 231, 343, 387, 180, 356, 162,
497, 105, 181, 182, 344, 183, 184, 185, 189, 191,
190, 202, 173, 203, 294, 511, 209, 212, 174, 175,
213, 388, 222, 176, 177, 498, 345, 210, 211, 118,
214, 232, 233, 284, 285, 283, 119, 138, 139, 140,
141, 142, 112, 113, 114, 115, 116, 117, 299, 300,
136, 288, 136, 136, 334, 289, 290, 305, 306, 307,
352, 310, 311, 291, 312, 313, 314, 292, 293, 353,
326, 138, 139, 140, 141, 142, 112, 113, 114, 115,
116, 117, 295, 309, 328, 329, 330, 331, 332, 333,
360, 315, 316, 472, 473, 474, 475, 339, 156, 350,
321, 322, 323, 340, 341, 346, 370, 359, 325, 347,
348, 354, 366, 450, 451, 452, 453, 454, 455, 456,
457, 458, 459, 357, 361, 144, 362, 367, 368, 369,
371, 380, 156, 382, 383, 315, 316, 145, 146, 147,
317, 363, 319, 320, 364, 322, 323, 372, 373, 374,
365, 375, 325, 151, 152, 376, 153, 377, 378, 144,
379, 381, 385, 386, 389, 390, 391, 393, 394, 315,
316, 145, 146, 147, 317, 363, 319, 320, 364, 322,
323, 395, -266, -266, 482, 396, 325, 151, 152, 397,
153, -266, -266, -266, 398, 399, 400, 446, 401, 325,
402, 441, 442, 443, 444, 445, 403, 404, 448, 405,
406, 407, 408, 409, 410, 411, 0, 136, 136, 136,
136, 136, 136, 136, 136, 136, 136, 412, 461, 462,
463, 464, 465, 466, 467, 468, 469, 413, 470, 414,
415, 416, 417, 418, 419, 420, 421, 422, 423, 424,
138, 139, 140, 141, 142, 112, 113, 114, 115, 116,
117, 425, 426, 427, 428, 429, 430, 431, 432, 433,
434, 435, 483, 436, 437, 439, 486, 487, 440, 447,
138, 139, 140, 141, 142, 112, 113, 114, 115, 116,
117, 325, 476, 491, 477, 493, 495, 479, 480, 481,
484, 485, 489, 496, 504, 507, 508, 509, 510, 513,
515, 156, 138, 139, 140, 141, 142, 112, 113, 114,
115, 116, 117, 315, 316, 519, 520, 521, 317, 318,
319, 320, 321, 322, 323, 0, 0, 0, 144, 0,
325, 156, 0, 460, 0, 0, 0, 512, 315, 316,
145, 146, 147, 317, 363, 319, 320, 364, 322, 323,
0, 0, 0, 490, 0, 325, 151, 152, 144, 153,
0, 0, 0, 156, 0, 0, 0, 0, 315, 316,
145, 146, 147, 317, 363, 319, 320, 364, 322, 323,
0, 0, 0, 492, 0, 325, 151, 152, 0, 153,
144, 0, 0, 0, 0, 0, 0, 0, 0, 0,
315, 316, 145, 146, 147, 317, 363, 319, 320, 364,
322, 323, 0, 0, 0, 494, 0, 325, 151, 152,
0, 153, 138, 139, 140, 141, 142, 112, 113, 114,
115, 116, 117, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 138, 139, 140, 141, 142, 112,
113, 114, 115, 116, 117, 299, 300, 0, 0, 0,
301, 302, 303, 304, 305, 306, 307, 0, 0, 0,
0, 194, 0, 0, 0, 449, 0, 0, 0, 0,
195, 0, 0, 156, 0, 0, 0, 0, 0, 0,
196, 197, 186, 138, 139, 140, 141, 142, 112, 113,
114, 115, 116, 117, 0, 156, 0, 0, 299, 300,
144, 0, 0, 301, 302, 303, 304, 305, 306, 307,
0, 0, 145, 146, 147, 308, 148, 0, 0, 149,
0, 0, 144, 0, 0, 198, 0, 0, 151, 152,
0, 153, 0, 0, 145, 146, 147, 0, 148, 0,
0, 149, 0, 0, 143, 0, 0, 187, 0, 0,
151, 152, 0, 153, 138, 139, 140, 141, 142, 112,
113, 114, 115, 116, 117, 0, 0, 0, 0, 315,
316, 144, 0, 0, 317, 318, 319, 320, 321, 322,
323, 0, 0, 145, 146, 147, 325, 148, 0, 0,
149, 0, 0, 0, 0, 0, 150, 0, 0, 151,
152, 0, 153, 138, 139, 140, 141, 142, 112, 113,
114, 115, 116, 117, 0, 156, 0, 0, 0, 0,
0, 0, 0, 138, 139, 140, 141, 142, 112, 113,
114, 115, 116, 117, 0, 0, 0, 0, 299, 300,
0, 0, 144, 301, 302, 303, 304, 305, 306, 307,
0, 0, 0, 506, 145, 146, 147, 0, 148, 0,
0, 157, 0, 0, 156, 0, 0, 158, 0, 0,
151, 152, 0, 153, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 156, 0, 0, 0, 0, 0,
0, 144, 138, 139, 140, 141, 142, 112, 113, 114,
115, 116, 117, 145, 146, 147, 0, 148, 0, 0,
149, 144, 0, 0, 0, 0, 223, 0, 0, 151,
152, 0, 153, 145, 146, 147, 0, 148, 0, 0,
149, 0, 0, 0, 0, 0, 349, 0, 0, 151,
152, 0, 153, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 156, 138, 139, 140, 141, 142, 112,
113, 114, 115, 116, 117, 122, 123, 124, 125, 126,
112, 113, 114, 115, 116, 117, 0, 0, 0, 0,
144, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 145, 146, 147, 0, 148, 0, 0, 149,
0, 0, 0, 0, 0, 358, 0, 0, 151, 152,
0, 153, 0, 0, 0, 156, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 127, 122, 123, 124,
125, 126, 112, 113, 114, 115, 116, 117, 0, 0,
0, 0, 144, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 128, 145, 146, 147, 0, 148, 0,
0, 149, 0, 0, 0, 129, 130, 131, 0, 132,
151, 152, 0, 153, 0, 0, 0, 0, 133, 0,
0, 134, 135, 0, 315, 316, 0, 0, 127, 317,
318, 319, 320, 321, 322, 323, 0, 315, 316, 324,
0, 325, 317, 318, 319, 320, 321, 322, 323, 0,
0, 0, 327, 0, 325, 128, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 129, 130, 131,
282, 132, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 134, 135, 0, 0, 1, 2, 3,
0, 4, 0, 5, 6, 7, 8, 9, 10, 11,
12, 13, 14, 15, 0, 16, 17, 18, 19, 0,
0, 0, 0, 0, 0, 0, 0, 20, 21, 22,
23, 0, 0, 24, 25, 0, 26, 0, 27, 0,
0, 0, 28, 29, 0, 0, 30, 31, 32, 33,
34, 0, 0, 35, 36, 37, 38, 39, 40, 41,
42, 43, 0, 0, 44, 45, 0, 46, 0, 47,
48, 0, 0, 0, 49, 50, 51, 0, 0, 1,
2, 3, 0, 4, 0, 5, 6, 7, 8, 9,
10, 11, 12, 13, 14, 15, 52, 16, 17, 18,
19, 0, 0, 0, 0, 0, 0, 0, 0, 20,
21, 22, 23, 0, 0, 24, 25, 0, 26, 0,
27, 0, 0, 0, 28, 29, 0, 0, 30, 31,
32, 33, 34, 0, 0, 35, 36, 37, 38, 39,
40, 41, 42, 43, 0, 0, 44, 45, 0, 46,
0, 47, 48, 0, 0, 0, 49, 50, 51, 0,
0, 235, 236, 237, 0, 238, 0, 239, 240, 241,
242, 243, 244, 245, 246, 247, 14, 15, 52, 248,
249, 250, 251, 0, 0, 0, 0, 0, 0, 0,
0, 252, 253, 254, 255, 0, 0, 256, 257, 0,
0, 0, 0, 0, 0, 0, 258, 259, 0, 0,
0, 260, 261, 262, 263, 0, 0, 264, 265, 266,
267, 268, 269, 270, 271, 272, 0, 0, 273, 274,
0, 275, 0, 0, 0, 0, 315, 316, 276, 277,
278, 317, 318, 319, 320, 321, 322, 323, 0, 0,
0, 351, 0, 325, 0, 0, 315, 316, 0, 0,
279, 317, 318, 319, 320, 321, 322, 323, 0, 315,
316, 384, 0, 325, 317, 318, 319, 320, 321, 322,
323, 0, 315, 316, 392, 0, 325, 317, 318, 319,
320, 321, 322, 323, 0, 315, 316, 438, 0, 325,
317, 318, 319, 320, 321, 322, 323, 0, 315, 316,
478, 0, 325, 317, 318, 319, 320, 321, 322, 323,
0, 315, 316, 488, 0, 325, 317, 318, 319, 320,
321, 322, 323, 0, 315, 316, 499, 0, 325, 317,
318, 319, 320, 321, 322, 323, 0, 315, 316, 500,
0, 325, 317, 318, 319, 320, 321, 322, 323, 0,
315, 316, 501, 0, 325, 317, 318, 319, 320, 321,
322, 323, 0, 315, 316, 502, 0, 325, 317, 318,
319, 320, 321, 322, 323, 0, 315, 316, 503, 0,
325, 317, 318, 319, 320, 321, 322, 323, 0, 315,
316, 505, 0, 325, 317, 318, 319, 320, 321, 322,
323, 0, 315, 316, 514, 0, 325, 317, 318, 319,
320, 321, 322, 323, 0, 315, 316, 516, 0, 325,
317, 318, 319, 320, 321, 322, 323, 0, 315, 316,
517, 0, 325, 317, 318, 319, 320, 321, 322, 323,
0, 0, 0, 518, 0, 325
};
static const yytype_int16 yycheck[] =
{
50, 8, 4, 17, 6, 167, 168, 169, 33, 34,
45, 32, 33, 64, 91, 116, 23, 118, 32, 64,
14, 28, 64, 64, 15, 16, 132, 116, 134, 135,
91, 116, 26, 59, 60, 116, 43, 88, 65, 116,
34, 116, 49, 91, 51, 39, 40, 41, 42, 43,
44, 65, 46, 91, 99, 116, 91, 3, 4, 5,
6, 7, 8, 9, 10, 11, 12, 13, 82, 83,
116, 116, 99, 91, 116, 116, 91, 116, 116, 91,
91, 116, 116, 116, 94, 116, 116, 116, 64, 57,
91, 91, 86, 91, 119, 116, 116, 64, 92, 93,
64, 116, 116, 97, 98, 116, 116, 91, 91, 55,
116, 116, 91, 116, 91, 53, 62, 3, 4, 5,
6, 7, 8, 9, 10, 11, 12, 13, 101, 102,
132, 117, 134, 135, 91, 117, 117, 110, 111, 112,
64, 148, 149, 117, 151, 152, 153, 117, 117, 91,
157, 3, 4, 5, 6, 7, 8, 9, 10, 11,
12, 13, 117, 116, 116, 116, 116, 116, 116, 116,
195, 101, 102, 335, 336, 337, 338, 116, 64, 186,
110, 111, 112, 116, 116, 116, 91, 194, 118, 116,
116, 116, 199, 299, 300, 301, 302, 303, 304, 305,
306, 307, 308, 116, 116, 91, 117, 116, 116, 116,
116, 218, 64, 220, 221, 101, 102, 103, 104, 105,
106, 107, 108, 109, 110, 111, 112, 116, 116, 116,
116, 116, 118, 119, 120, 116, 122, 116, 116, 91,
116, 116, 116, 116, 64, 116, 116, 116, 116, 101,
102, 103, 104, 105, 106, 107, 108, 109, 110, 111,
112, 116, 101, 102, 116, 116, 118, 119, 120, 116,
122, 110, 111, 112, 116, 116, 116, 91, 116, 118,
116, 288, 289, 290, 291, 292, 116, 116, 295, 116,
116, 116, 116, 116, 116, 116, -1, 299, 300, 301,
302, 303, 304, 305, 306, 307, 308, 116, 315, 316,
317, 318, 319, 320, 321, 322, 323, 116, 325, 116,
116, 116, 116, 116, 116, 116, 116, 116, 116, 116,
3, 4, 5, 6, 7, 8, 9, 10, 11, 12,
13, 116, 116, 116, 116, 116, 116, 116, 116, 116,
116, 116, 359, 116, 116, 116, 363, 364, 116, 116,
3, 4, 5, 6, 7, 8, 9, 10, 11, 12,
13, 118, 116, 380, 91, 382, 383, 116, 91, 116,
116, 91, 116, 116, 116, 116, 116, 116, 116, 116,
116, 64, 3, 4, 5, 6, 7, 8, 9, 10,
11, 12, 13, 101, 102, 116, 91, 116, 106, 107,
108, 109, 110, 111, 112, -1, -1, -1, 91, -1,
118, 64, -1, 121, -1, -1, -1, 477, 101, 102,
103, 104, 105, 106, 107, 108, 109, 110, 111, 112,
-1, -1, -1, 116, -1, 118, 119, 120, 91, 122,
-1, -1, -1, 64, -1, -1, -1, -1, 101, 102,
103, 104, 105, 106, 107, 108, 109, 110, 111, 112,
-1, -1, -1, 116, -1, 118, 119, 120, -1, 122,
91, -1, -1, -1, -1, -1, -1, -1, -1, -1,
101, 102, 103, 104, 105, 106, 107, 108, 109, 110,
111, 112, -1, -1, -1, 116, -1, 118, 119, 120,
-1, 122, 3, 4, 5, 6, 7, 8, 9, 10,
11, 12, 13, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, 3, 4, 5, 6, 7, 8,
9, 10, 11, 12, 13, 101, 102, -1, -1, -1,
106, 107, 108, 109, 110, 111, 112, -1, -1, -1,
-1, 52, -1, -1, -1, 121, -1, -1, -1, -1,
61, -1, -1, 64, -1, -1, -1, -1, -1, -1,
71, 72, 51, 3, 4, 5, 6, 7, 8, 9,
10, 11, 12, 13, -1, 64, -1, -1, 101, 102,
91, -1, -1, 106, 107, 108, 109, 110, 111, 112,
-1, -1, 103, 104, 105, 118, 107, -1, -1, 110,
-1, -1, 91, -1, -1, 116, -1, -1, 119, 120,
-1, 122, -1, -1, 103, 104, 105, -1, 107, -1,
-1, 110, -1, -1, 64, -1, -1, 116, -1, -1,
119, 120, -1, 122, 3, 4, 5, 6, 7, 8,
9, 10, 11, 12, 13, -1, -1, -1, -1, 101,
102, 91, -1, -1, 106, 107, 108, 109, 110, 111,
112, -1, -1, 103, 104, 105, 118, 107, -1, -1,
110, -1, -1, -1, -1, -1, 116, -1, -1, 119,
120, -1, 122, 3, 4, 5, 6, 7, 8, 9,
10, 11, 12, 13, -1, 64, -1, -1, -1, -1,
-1, -1, -1, 3, 4, 5, 6, 7, 8, 9,
10, 11, 12, 13, -1, -1, -1, -1, 101, 102,
-1, -1, 91, 106, 107, 108, 109, 110, 111, 112,
-1, -1, -1, 116, 103, 104, 105, -1, 107, -1,
-1, 110, -1, -1, 64, -1, -1, 116, -1, -1,
119, 120, -1, 122, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, 64, -1, -1, -1, -1, -1,
-1, 91, 3, 4, 5, 6, 7, 8, 9, 10,
11, 12, 13, 103, 104, 105, -1, 107, -1, -1,
110, 91, -1, -1, -1, -1, 116, -1, -1, 119,
120, -1, 122, 103, 104, 105, -1, 107, -1, -1,
110, -1, -1, -1, -1, -1, 116, -1, -1, 119,
120, -1, 122, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, 64, 3, 4, 5, 6, 7, 8,
9, 10, 11, 12, 13, 3, 4, 5, 6, 7,
8, 9, 10, 11, 12, 13, -1, -1, -1, -1,
91, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, 103, 104, 105, -1, 107, -1, -1, 110,
-1, -1, -1, -1, -1, 116, -1, -1, 119, 120,
-1, 122, -1, -1, -1, 64, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, 64, 3, 4, 5,
6, 7, 8, 9, 10, 11, 12, 13, -1, -1,
-1, -1, 91, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, 91, 103, 104, 105, -1, 107, -1,
-1, 110, -1, -1, -1, 103, 104, 105, -1, 107,
119, 120, -1, 122, -1, -1, -1, -1, 116, -1,
-1, 119, 120, -1, 101, 102, -1, -1, 64, 106,
107, 108, 109, 110, 111, 112, -1, 101, 102, 116,
-1, 118, 106, 107, 108, 109, 110, 111, 112, -1,
-1, -1, 116, -1, 118, 91, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, 103, 104, 105,
0, 107, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, 119, 120, -1, -1, 17, 18, 19,
-1, 21, -1, 23, 24, 25, 26, 27, 28, 29,
30, 31, 32, 33, -1, 35, 36, 37, 38, -1,
-1, -1, -1, -1, -1, -1, -1, 47, 48, 49,
50, -1, -1, 53, 54, -1, 56, -1, 58, -1,
-1, -1, 62, 63, -1, -1, 66, 67, 68, 69,
70, -1, -1, 73, 74, 75, 76, 77, 78, 79,
80, 81, -1, -1, 84, 85, -1, 87, -1, 89,
90, -1, -1, -1, 94, 95, 96, -1, -1, 17,
18, 19, -1, 21, -1, 23, 24, 25, 26, 27,
28, 29, 30, 31, 32, 33, 116, 35, 36, 37,
38, -1, -1, -1, -1, -1, -1, -1, -1, 47,
48, 49, 50, -1, -1, 53, 54, -1, 56, -1,
58, -1, -1, -1, 62, 63, -1, -1, 66, 67,
68, 69, 70, -1, -1, 73, 74, 75, 76, 77,
78, 79, 80, 81, -1, -1, 84, 85, -1, 87,
-1, 89, 90, -1, -1, -1, 94, 95, 96, -1,
-1, 17, 18, 19, -1, 21, -1, 23, 24, 25,
26, 27, 28, 29, 30, 31, 32, 33, 116, 35,
36, 37, 38, -1, -1, -1, -1, -1, -1, -1,
-1, 47, 48, 49, 50, -1, -1, 53, 54, -1,
-1, -1, -1, -1, -1, -1, 62, 63, -1, -1,
-1, 67, 68, 69, 70, -1, -1, 73, 74, 75,
76, 77, 78, 79, 80, 81, -1, -1, 84, 85,
-1, 87, -1, -1, -1, -1, 101, 102, 94, 95,
96, 106, 107, 108, 109, 110, 111, 112, -1, -1,
-1, 116, -1, 118, -1, -1, 101, 102, -1, -1,
116, 106, 107, 108, 109, 110, 111, 112, -1, 101,
102, 116, -1, 118, 106, 107, 108, 109, 110, 111,
112, -1, 101, 102, 116, -1, 118, 106, 107, 108,
109, 110, 111, 112, -1, 101, 102, 116, -1, 118,
106, 107, 108, 109, 110, 111, 112, -1, 101, 102,
116, -1, 118, 106, 107, 108, 109, 110, 111, 112,
-1, 101, 102, 116, -1, 118, 106, 107, 108, 109,
110, 111, 112, -1, 101, 102, 116, -1, 118, 106,
107, 108, 109, 110, 111, 112, -1, 101, 102, 116,
-1, 118, 106, 107, 108, 109, 110, 111, 112, -1,
101, 102, 116, -1, 118, 106, 107, 108, 109, 110,
111, 112, -1, 101, 102, 116, -1, 118, 106, 107,
108, 109, 110, 111, 112, -1, 101, 102, 116, -1,
118, 106, 107, 108, 109, 110, 111, 112, -1, 101,
102, 116, -1, 118, 106, 107, 108, 109, 110, 111,
112, -1, 101, 102, 116, -1, 118, 106, 107, 108,
109, 110, 111, 112, -1, 101, 102, 116, -1, 118,
106, 107, 108, 109, 110, 111, 112, -1, 101, 102,
116, -1, 118, 106, 107, 108, 109, 110, 111, 112,
-1, -1, -1, 116, -1, 118
};
/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
symbol of state STATE-NUM. */
static const yytype_uint8 yystos[] =
{
0, 17, 18, 19, 21, 23, 24, 25, 26, 27,
28, 29, 30, 31, 32, 33, 35, 36, 37, 38,
47, 48, 49, 50, 53, 54, 56, 58, 62, 63,
66, 67, 68, 69, 70, 73, 74, 75, 76, 77,
78, 79, 80, 81, 84, 85, 87, 89, 90, 94,
95, 96, 116, 124, 125, 127, 129, 130, 131, 132,
133, 134, 135, 136, 137, 138, 139, 140, 141, 142,
143, 144, 145, 146, 147, 148, 149, 150, 151, 153,
154, 155, 156, 157, 158, 159, 160, 161, 162, 163,
164, 165, 166, 167, 168, 169, 170, 171, 172, 173,
174, 175, 116, 45, 91, 116, 116, 3, 4, 5,
6, 7, 8, 9, 10, 11, 12, 13, 55, 62,
128, 116, 3, 4, 5, 6, 7, 64, 91, 103,
104, 105, 107, 116, 119, 120, 128, 176, 3, 4,
5, 6, 7, 64, 91, 103, 104, 105, 107, 110,
116, 119, 120, 122, 128, 177, 64, 110, 116, 177,
91, 91, 91, 14, 26, 34, 39, 40, 41, 42,
43, 44, 46, 86, 92, 93, 97, 98, 116, 116,
116, 116, 116, 116, 116, 116, 51, 116, 177, 64,
91, 57, 59, 60, 52, 61, 71, 72, 116, 177,
65, 99, 91, 91, 15, 16, 126, 126, 126, 116,
91, 91, 64, 64, 116, 91, 116, 17, 32, 65,
82, 83, 116, 116, 177, 64, 99, 116, 64, 88,
64, 116, 116, 91, 177, 17, 18, 19, 21, 23,
24, 25, 26, 27, 28, 29, 30, 31, 35, 36,
37, 38, 47, 48, 49, 50, 53, 54, 62, 63,
67, 68, 69, 70, 73, 74, 75, 76, 77, 78,
79, 80, 81, 84, 85, 87, 94, 95, 96, 116,
127, 177, 0, 125, 116, 91, 91, 116, 117, 117,
117, 117, 117, 117, 126, 117, 176, 176, 176, 101,
102, 106, 107, 108, 109, 110, 111, 112, 118, 116,
177, 177, 177, 177, 177, 101, 102, 106, 107, 108,
109, 110, 111, 112, 116, 118, 177, 116, 116, 116,
116, 116, 116, 116, 91, 152, 152, 152, 152, 116,
116, 116, 64, 116, 94, 116, 116, 116, 116, 116,
177, 116, 64, 91, 116, 91, 116, 116, 116, 177,
126, 116, 117, 107, 110, 116, 177, 116, 116, 116,
91, 116, 116, 116, 116, 116, 116, 116, 116, 116,
177, 116, 177, 177, 116, 116, 116, 91, 116, 64,
116, 116, 116, 116, 116, 116, 116, 116, 116, 116,
116, 116, 116, 116, 116, 116, 116, 116, 116, 116,
116, 116, 116, 116, 116, 116, 116, 116, 116, 116,
116, 116, 116, 116, 116, 116, 116, 116, 116, 116,
116, 116, 116, 116, 116, 116, 116, 116, 116, 116,
116, 177, 177, 177, 177, 177, 91, 116, 177, 121,
176, 176, 176, 176, 176, 176, 176, 176, 176, 176,
121, 177, 177, 177, 177, 177, 177, 177, 177, 177,
177, 116, 152, 152, 152, 152, 116, 91, 116, 116,
91, 116, 116, 177, 116, 91, 177, 177, 116, 116,
116, 177, 116, 177, 116, 177, 116, 91, 116, 116,
116, 116, 116, 116, 116, 116, 116, 116, 116, 116,
116, 116, 127, 116, 116, 116, 116, 116, 116, 116,
91, 116
};
#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 yyerrorlab
/* 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. However,
YYFAIL appears to be in use. Nevertheless, it is formally deprecated
in Bison 2.4.2's NEWS entry, where a plan to phase it out is
discussed. */
#define YYFAIL goto yyerrlab
#if defined YYFAIL
/* This is here to suppress warnings from the GCC cpp's
-Wunused-macros. Normally we don't worry about that warning, but
some users do, and we want to make it easy for users to remove
YYFAIL uses, which will produce warnings from Bison 2.5. */
#endif
#define YYRECOVERING() (!!yyerrstatus)
#define YYBACKUP(Token, Value) \
do \
if (yychar == YYEMPTY && yylen == 1) \
{ \
yychar = (Token); \
yylval = (Value); \
yytoken = YYTRANSLATE (yychar); \
YYPOPSTACK (1); \
goto yybackup; \
} \
else \
{ \
yyerror (YY_("syntax error: cannot back up")); \
YYERROR; \
} \
while (YYID (0))
#define YYTERROR 1
#define YYERRCODE 256
/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
If N is 0, then set CURRENT to the empty location which ends
the previous symbol: RHS[0] (always defined). */
#define YYRHSLOC(Rhs, K) ((Rhs)[K])
#ifndef YYLLOC_DEFAULT
# define YYLLOC_DEFAULT(Current, Rhs, N) \
do \
if (YYID (N)) \
{ \
(Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
(Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
(Current).last_line = YYRHSLOC (Rhs, N).last_line; \
(Current).last_column = YYRHSLOC (Rhs, N).last_column; \
} \
else \
{ \
(Current).first_line = (Current).last_line = \
YYRHSLOC (Rhs, 0).last_line; \
(Current).first_column = (Current).last_column = \
YYRHSLOC (Rhs, 0).last_column; \
} \
while (YYID (0))
#endif
/* YY_LOCATION_PRINT -- Print the location on the stream.
This macro was not mandated originally: define only if we know
we won't break user code: when these are the locations we know. */
#ifndef YY_LOCATION_PRINT
# if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL
# define YY_LOCATION_PRINT(File, Loc) \
fprintf (File, "%d.%d-%d.%d", \
(Loc).first_line, (Loc).first_column, \
(Loc).last_line, (Loc).last_column)
# else
# define YY_LOCATION_PRINT(File, Loc) ((void) 0)
# endif
#endif
/* YYLEX -- calling `yylex' with the right arguments. */
#ifdef YYLEX_PARAM
# define YYLEX yylex (YYLEX_PARAM)
#else
# 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 (YYID (0))
# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
do { \
if (yydebug) \
{ \
YYFPRINTF (stderr, "%s ", Title); \
yy_symbol_print (stderr, \
Type, Value); \
YYFPRINTF (stderr, "\n"); \
} \
} while (YYID (0))
/*--------------------------------.
| Print this symbol on YYOUTPUT. |
`--------------------------------*/
/*ARGSUSED*/
#if (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
static void
yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
#else
static void
yy_symbol_value_print (yyoutput, yytype, yyvaluep)
FILE *yyoutput;
int yytype;
YYSTYPE const * const yyvaluep;
#endif
{
if (!yyvaluep)
return;
# ifdef YYPRINT
if (yytype < YYNTOKENS)
YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
# else
YYUSE (yyoutput);
# endif
switch (yytype)
{
default:
break;
}
}
/*--------------------------------.
| Print this symbol on YYOUTPUT. |
`--------------------------------*/
#if (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
static void
yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep)
#else
static void
yy_symbol_print (yyoutput, yytype, yyvaluep)
FILE *yyoutput;
int yytype;
YYSTYPE const * const yyvaluep;
#endif
{
if (yytype < YYNTOKENS)
YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
else
YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
yy_symbol_value_print (yyoutput, yytype, yyvaluep);
YYFPRINTF (yyoutput, ")");
}
/*------------------------------------------------------------------.
| yy_stack_print -- Print the state stack from its BOTTOM up to its |
| TOP (included). |
`------------------------------------------------------------------*/
#if (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
static void
yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop)
#else
static void
yy_stack_print (yybottom, yytop)
yytype_int16 *yybottom;
yytype_int16 *yytop;
#endif
{
YYFPRINTF (stderr, "Stack now");
for (; yybottom <= yytop; yybottom++)
{
int yybot = *yybottom;
YYFPRINTF (stderr, " %d", yybot);
}
YYFPRINTF (stderr, "\n");
}
# define YY_STACK_PRINT(Bottom, Top) \
do { \
if (yydebug) \
yy_stack_print ((Bottom), (Top)); \
} while (YYID (0))
/*------------------------------------------------.
| Report that the YYRULE is going to be reduced. |
`------------------------------------------------*/
#if (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
static void
yy_reduce_print (YYSTYPE *yyvsp, int yyrule)
#else
static void
yy_reduce_print (yyvsp, yyrule)
YYSTYPE *yyvsp;
int yyrule;
#endif
{
int yynrhs = yyr2[yyrule];
int yyi;
unsigned long int yylno = yyrline[yyrule];
YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n",
yyrule - 1, yylno);
/* The symbols being reduced. */
for (yyi = 0; yyi < yynrhs; yyi++)
{
YYFPRINTF (stderr, " $%d = ", yyi + 1);
yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
&(yyvsp[(yyi + 1) - (yynrhs)])
);
YYFPRINTF (stderr, "\n");
}
}
# define YY_REDUCE_PRINT(Rule) \
do { \
if (yydebug) \
yy_reduce_print (yyvsp, Rule); \
} while (YYID (0))
/* Nonzero means print parse trace. It is left uninitialized so that
multiple parsers can coexist. */
int yydebug;
#else /* !YYDEBUG */
# define YYDPRINTF(Args)
# define YY_SYMBOL_PRINT(Title, Type, 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
YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
evaluated with infinite-precision integer arithmetic. */
#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. */
#if (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
static YYSIZE_T
yystrlen (const char *yystr)
#else
static YYSIZE_T
yystrlen (yystr)
const char *yystr;
#endif
{
YYSIZE_T yylen;
for (yylen = 0; yystr[yylen]; yylen++)
continue;
return yylen;
}
# 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. */
#if (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
static char *
yystpcpy (char *yydest, const char *yysrc)
#else
static char *
yystpcpy (yydest, yysrc)
char *yydest;
const char *yysrc;
#endif
{
char *yyd = yydest;
const char *yys = yysrc;
while ((*yyd++ = *yys++) != '\0')
continue;
return yyd - 1;
}
# endif
# endif
# ifndef yytnamerr
/* Copy to YYRES the contents of YYSTR after stripping away unnecessary
quotes and backslashes, so that it's suitable for yyerror. The
heuristic is that double-quoting is unnecessary unless the string
contains an apostrophe, a comma, or backslash (other than
backslash-backslash). YYSTR is taken from yytname. If YYRES is
null, do not copy; instead, return the length of what the result
would have been. */
static YYSIZE_T
yytnamerr (char *yyres, const char *yystr)
{
if (*yystr == '"')
{
YYSIZE_T yyn = 0;
char const *yyp = yystr;
for (;;)
switch (*++yyp)
{
case '\'':
case ',':
goto do_not_strip_quotes;
case '\\':
if (*++yyp != '\\')
goto do_not_strip_quotes;
/* Fall through. */
default:
if (yyres)
yyres[yyn] = *yyp;
yyn++;
break;
case '"':
if (yyres)
yyres[yyn] = '\0';
return yyn;
}
do_not_strip_quotes: ;
}
if (! yyres)
return yystrlen (yystr);
return yystpcpy (yyres, yystr) - yyres;
}
# endif
/* Copy into YYRESULT an error message about the unexpected token
YYCHAR while in state YYSTATE. Return the number of bytes copied,
including the terminating null byte. If YYRESULT is null, do not
copy anything; just return the number of bytes that would be
copied. As a special case, return 0 if an ordinary "syntax error"
message will do. Return YYSIZE_MAXIMUM if overflow occurs during
size calculation. */
static YYSIZE_T
yysyntax_error (char *yyresult, int yystate, int yychar)
{
int yyn = yypact[yystate];
if (! (YYPACT_NINF < yyn && yyn <= YYLAST))
return 0;
else
{
int yytype = YYTRANSLATE (yychar);
YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]);
YYSIZE_T yysize = yysize0;
YYSIZE_T yysize1;
int yysize_overflow = 0;
enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
int yyx;
# if 0
/* This is so xgettext sees the translatable formats that are
constructed on the fly. */
YY_("syntax error, unexpected %s");
YY_("syntax error, unexpected %s, expecting %s");
YY_("syntax error, unexpected %s, expecting %s or %s");
YY_("syntax error, unexpected %s, expecting %s or %s or %s");
YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s");
# endif
char *yyfmt;
char const *yyf;
static char const yyunexpected[] = "syntax error, unexpected %s";
static char const yyexpecting[] = ", expecting %s";
static char const yyor[] = " or %s";
char yyformat[sizeof yyunexpected
+ sizeof yyexpecting - 1
+ ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2)
* (sizeof yyor - 1))];
char const *yyprefix = yyexpecting;
/* 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 + 1;
int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
int yycount = 1;
yyarg[0] = yytname[yytype];
yyfmt = yystpcpy (yyformat, yyunexpected);
for (yyx = yyxbegin; yyx < yyxend; ++yyx)
if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
{
if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
{
yycount = 1;
yysize = yysize0;
yyformat[sizeof yyunexpected - 1] = '\0';
break;
}
yyarg[yycount++] = yytname[yyx];
yysize1 = yysize + yytnamerr (0, yytname[yyx]);
yysize_overflow |= (yysize1 < yysize);
yysize = yysize1;
yyfmt = yystpcpy (yyfmt, yyprefix);
yyprefix = yyor;
}
yyf = YY_(yyformat);
yysize1 = yysize + yystrlen (yyf);
yysize_overflow |= (yysize1 < yysize);
yysize = yysize1;
if (yysize_overflow)
return YYSIZE_MAXIMUM;
if (yyresult)
{
/* Avoid sprintf, as that infringes on the user's name space.
Don't have undefined behavior even if the translation
produced a string with the wrong number of "%s"s. */
char *yyp = yyresult;
int yyi = 0;
while ((*yyp = *yyf) != '\0')
{
if (*yyp == '%' && yyf[1] == 's' && yyi < yycount)
{
yyp += yytnamerr (yyp, yyarg[yyi++]);
yyf += 2;
}
else
{
yyp++;
yyf++;
}
}
}
return yysize;
}
}
#endif /* YYERROR_VERBOSE */
/*-----------------------------------------------.
| Release the memory associated to this symbol. |
`-----------------------------------------------*/
/*ARGSUSED*/
#if (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
static void
yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep)
#else
static void
yydestruct (yymsg, yytype, yyvaluep)
const char *yymsg;
int yytype;
YYSTYPE *yyvaluep;
#endif
{
YYUSE (yyvaluep);
if (!yymsg)
yymsg = "Deleting";
YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
switch (yytype)
{
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 ();
#endif
#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 or yypush_parse. |
`-------------------------*/
#ifdef YYPARSE_PARAM
#if (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
int
yyparse (void *YYPARSE_PARAM)
#else
int
yyparse (YYPARSE_PARAM)
void *YYPARSE_PARAM;
#endif
#else /* ! YYPARSE_PARAM */
#if (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
int
yyparse (void)
#else
int
yyparse ()
#endif
#endif
{
int yystate;
/* Number of tokens to shift before error messages enabled. */
int yyerrstatus;
/* The stacks and their tools:
`yyss': related to states.
`yyvs': related to semantic values.
Refer to the stacks thru separate pointers, to allow yyoverflow
to reallocate them elsewhere. */
/* The state stack. */
yytype_int16 yyssa[YYINITDEPTH];
yytype_int16 *yyss;
yytype_int16 *yyssp;
/* The semantic value stack. */
YYSTYPE yyvsa[YYINITDEPTH];
YYSTYPE *yyvs;
YYSTYPE *yyvsp;
YYSIZE_T yystacksize;
int yyn;
int yyresult;
/* Lookahead token as an internal (translated) token number. */
int yytoken;
/* The variables used to return semantic value and location from the
action routines. */
YYSTYPE yyval;
#if YYERROR_VERBOSE
/* Buffer for error messages, and its allocated size. */
char yymsgbuf[128];
char *yymsg = yymsgbuf;
YYSIZE_T yymsg_alloc = sizeof yymsgbuf;
#endif
#define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N))
/* The number of symbols on the RHS of the reduced rule.
Keep to zero when no symbol should be popped. */
int yylen = 0;
yytoken = 0;
yyss = yyssa;
yyvs = yyvsa;
yystacksize = YYINITDEPTH;
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;
yytype_int16 *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 (YY_("memory exhausted"),
&yyss1, yysize * sizeof (*yyssp),
&yyvs1, yysize * sizeof (*yyvsp),
&yystacksize);
yyss = yyss1;
yyvs = yyvs1;
}
#else /* no yyoverflow */
# ifndef YYSTACK_RELOCATE
goto yyexhaustedlab;
# else
/* Extend the stack our own way. */
if (YYMAXDEPTH <= yystacksize)
goto yyexhaustedlab;
yystacksize *= 2;
if (YYMAXDEPTH < yystacksize)
yystacksize = YYMAXDEPTH;
{
yytype_int16 *yyss1 = yyss;
union yyalloc *yyptr =
(union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
if (! yyptr)
goto yyexhaustedlab;
YYSTACK_RELOCATE (yyss_alloc, yyss);
YYSTACK_RELOCATE (yyvs_alloc, 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;
}
YYDPRINTF ((stderr, "Entering state %d\n", yystate));
if (yystate == YYFINAL)
YYACCEPT;
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. */
/* 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)
{
YYDPRINTF ((stderr, "Reading a token: "));
yychar = YYLEX;
}
if (yychar <= YYEOF)
{
yychar = yytoken = YYEOF;
YYDPRINTF ((stderr, "Now at end of input.\n"));
}
else
{
yytoken = YYTRANSLATE (yychar);
YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
}
/* 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)
{
if (yyn == 0 || yyn == YYTABLE_NINF)
goto yyerrlab;
yyn = -yyn;
goto yyreduce;
}
/* Count tokens shifted since error; after three, turn off error
status. */
if (yyerrstatus)
yyerrstatus--;
/* Shift the lookahead token. */
YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
/* Discard the shifted token. */
yychar = YYEMPTY;
yystate = yyn;
*++yyvsp = yylval;
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. |
`-----------------------------*/
yyreduce:
/* 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)
{
case 51:
/* Line 1464 of yacc.c */
#line 193 "parser.y"
{
}
break;
case 53:
/* Line 1464 of yacc.c */
#line 200 "parser.y"
{ (yyval.bval)=(yyvsp[(1) - (1)].bval); }
break;
case 55:
/* Line 1464 of yacc.c */
#line 206 "parser.y"
{ (yyval.sval)=(yyvsp[(1) - (1)].sval); }
break;
case 61:
/* Line 1464 of yacc.c */
#line 216 "parser.y"
{ (yyval.uval)=(yyvsp[(1) - (1)].uval); }
break;
case 62:
/* Line 1464 of yacc.c */
#line 221 "parser.y"
{
bx_dbg_timebp_command(0, (yyvsp[(2) - (3)].uval));
free((yyvsp[(1) - (3)].sval));
}
break;
case 63:
/* Line 1464 of yacc.c */
#line 226 "parser.y"
{
bx_dbg_timebp_command(1, (yyvsp[(2) - (3)].uval));
free((yyvsp[(1) - (3)].sval));
}
break;
case 64:
/* Line 1464 of yacc.c */
#line 234 "parser.y"
{
bx_dbg_record_command((yyvsp[(2) - (3)].sval));
free((yyvsp[(1) - (3)].sval)); free((yyvsp[(2) - (3)].sval));
}
break;
case 65:
/* Line 1464 of yacc.c */
#line 242 "parser.y"
{
bx_dbg_playback_command((yyvsp[(2) - (3)].sval));
free((yyvsp[(1) - (3)].sval)); free((yyvsp[(2) - (3)].sval));
}
break;
case 66:
/* Line 1464 of yacc.c */
#line 250 "parser.y"
{
bx_dbg_modebp_command();
free((yyvsp[(1) - (2)].sval));
}
break;
case 67:
/* Line 1464 of yacc.c */
#line 258 "parser.y"
{
bx_dbg_show_command((yyvsp[(2) - (3)].sval));
free((yyvsp[(1) - (3)].sval)); free((yyvsp[(2) - (3)].sval));
}
break;
case 68:
/* Line 1464 of yacc.c */
#line 263 "parser.y"
{
bx_dbg_show_param_command((yyvsp[(2) - (3)].sval));
free((yyvsp[(1) - (3)].sval)); free((yyvsp[(2) - (3)].sval));
}
break;
case 69:
/* Line 1464 of yacc.c */
#line 268 "parser.y"
{
bx_dbg_show_command(0);
free((yyvsp[(1) - (2)].sval));
}
break;
case 70:
/* Line 1464 of yacc.c */
#line 276 "parser.y"
{
bx_dbg_xlate_address((yyvsp[(2) - (3)].uval));
free((yyvsp[(1) - (3)].sval));
}
break;
case 71:
/* Line 1464 of yacc.c */
#line 284 "parser.y"
{
bx_dbg_ptime_command();
free((yyvsp[(1) - (2)].sval));
}
break;
case 72:
/* Line 1464 of yacc.c */
#line 292 "parser.y"
{
bx_dbg_trace_command((yyvsp[(2) - (3)].bval));
free((yyvsp[(1) - (3)].sval));
}
break;
case 73:
/* Line 1464 of yacc.c */
#line 300 "parser.y"
{
bx_dbg_trace_reg_command((yyvsp[(2) - (3)].bval));
free((yyvsp[(1) - (3)].sval));
}
break;
case 74:
/* Line 1464 of yacc.c */
#line 308 "parser.y"
{
bx_dbg_trace_mem_command((yyvsp[(2) - (3)].bval));
free((yyvsp[(1) - (3)].sval));
}
break;
case 75:
/* Line 1464 of yacc.c */
#line 316 "parser.y"
{
bx_dbg_print_stack_command(16);
free((yyvsp[(1) - (2)].sval));
}
break;
case 76:
/* Line 1464 of yacc.c */
#line 321 "parser.y"
{
bx_dbg_print_stack_command((yyvsp[(2) - (3)].uval));
free((yyvsp[(1) - (3)].sval));
}
break;
case 77:
/* Line 1464 of yacc.c */
#line 329 "parser.y"
{
bx_dbg_watchpoint_continue(0);
free((yyvsp[(1) - (3)].sval)); free((yyvsp[(2) - (3)].sval));
}
break;
case 78:
/* Line 1464 of yacc.c */
#line 334 "parser.y"
{
bx_dbg_watchpoint_continue(1);
free((yyvsp[(1) - (3)].sval)); free((yyvsp[(2) - (3)].sval));
}
break;
case 79:
/* Line 1464 of yacc.c */
#line 339 "parser.y"
{
bx_dbg_print_watchpoints();
free((yyvsp[(1) - (2)].sval));
}
break;
case 80:
/* Line 1464 of yacc.c */
#line 344 "parser.y"
{
bx_dbg_watch(0, (yyvsp[(3) - (4)].uval), 1); /* BX_READ */
free((yyvsp[(1) - (4)].sval)); free((yyvsp[(2) - (4)].sval));
}
break;
case 81:
/* Line 1464 of yacc.c */
#line 349 "parser.y"
{
bx_dbg_watch(0, (yyvsp[(3) - (4)].uval), 1); /* BX_READ */
free((yyvsp[(1) - (4)].sval)); free((yyvsp[(2) - (4)].sval));
}
break;
case 82:
/* Line 1464 of yacc.c */
#line 354 "parser.y"
{
bx_dbg_watch(1, (yyvsp[(3) - (4)].uval), 1); /* BX_WRITE */
free((yyvsp[(1) - (4)].sval)); free((yyvsp[(2) - (4)].sval));
}
break;
case 83:
/* Line 1464 of yacc.c */
#line 359 "parser.y"
{
bx_dbg_watch(0, (yyvsp[(3) - (5)].uval), (yyvsp[(4) - (5)].uval)); /* BX_READ */
free((yyvsp[(1) - (5)].sval)); free((yyvsp[(2) - (5)].sval));
}
break;
case 84:
/* Line 1464 of yacc.c */
#line 364 "parser.y"
{
bx_dbg_watch(0, (yyvsp[(3) - (5)].uval), (yyvsp[(4) - (5)].uval)); /* BX_READ */
free((yyvsp[(1) - (5)].sval)); free((yyvsp[(2) - (5)].sval));
}
break;
case 85:
/* Line 1464 of yacc.c */
#line 369 "parser.y"
{
bx_dbg_watch(1, (yyvsp[(3) - (5)].uval), (yyvsp[(4) - (5)].uval)); /* BX_WRITE */
free((yyvsp[(1) - (5)].sval)); free((yyvsp[(2) - (5)].sval));
}
break;
case 86:
/* Line 1464 of yacc.c */
#line 374 "parser.y"
{
bx_dbg_unwatch_all();
free((yyvsp[(1) - (2)].sval));
}
break;
case 87:
/* Line 1464 of yacc.c */
#line 379 "parser.y"
{
bx_dbg_unwatch((yyvsp[(2) - (3)].uval));
free((yyvsp[(1) - (3)].sval));
}
break;
case 88:
/* Line 1464 of yacc.c */
#line 387 "parser.y"
{
bx_dbg_symbol_command((yyvsp[(2) - (3)].sval), 0, 0);
free((yyvsp[(1) - (3)].sval)); free((yyvsp[(2) - (3)].sval));
}
break;
case 89:
/* Line 1464 of yacc.c */
#line 392 "parser.y"
{
bx_dbg_symbol_command((yyvsp[(2) - (4)].sval), 0, (yyvsp[(3) - (4)].uval));
free((yyvsp[(1) - (4)].sval)); free((yyvsp[(2) - (4)].sval));
}
break;
case 90:
/* Line 1464 of yacc.c */
#line 397 "parser.y"
{
bx_dbg_symbol_command((yyvsp[(3) - (4)].sval), 1, 0);
free((yyvsp[(1) - (4)].sval)); free((yyvsp[(2) - (4)].sval)); free((yyvsp[(3) - (4)].sval));
}
break;
case 91:
/* Line 1464 of yacc.c */
#line 402 "parser.y"
{
bx_dbg_symbol_command((yyvsp[(3) - (5)].sval), 1, (yyvsp[(4) - (5)].uval));
free((yyvsp[(1) - (5)].sval)); free((yyvsp[(2) - (5)].sval)); free((yyvsp[(3) - (5)].sval));
}
break;
case 92:
/* Line 1464 of yacc.c */
#line 410 "parser.y"
{
bx_dbg_where_command();
free((yyvsp[(1) - (2)].sval));
}
break;
case 93:
/* Line 1464 of yacc.c */
#line 418 "parser.y"
{
bx_dbg_print_string_command((yyvsp[(2) - (3)].uval));
free((yyvsp[(1) - (3)].sval));
}
break;
case 94:
/* Line 1464 of yacc.c */
#line 426 "parser.y"
{
bx_dbg_continue_command();
free((yyvsp[(1) - (2)].sval));
}
break;
case 95:
/* Line 1464 of yacc.c */
#line 434 "parser.y"
{
bx_dbg_stepN_command(dbg_cpu, 1);
free((yyvsp[(1) - (2)].sval));
}
break;
case 96:
/* Line 1464 of yacc.c */
#line 439 "parser.y"
{
bx_dbg_stepN_command(dbg_cpu, (yyvsp[(2) - (3)].uval));
free((yyvsp[(1) - (3)].sval));
}
break;
case 97:
/* Line 1464 of yacc.c */
#line 444 "parser.y"
{
bx_dbg_stepN_command(-1, (yyvsp[(3) - (4)].uval));
free((yyvsp[(1) - (4)].sval)); free((yyvsp[(2) - (4)].sval));
}
break;
case 98:
/* Line 1464 of yacc.c */
#line 449 "parser.y"
{
bx_dbg_stepN_command((yyvsp[(2) - (4)].uval), (yyvsp[(3) - (4)].uval));
free((yyvsp[(1) - (4)].sval));
}
break;
case 99:
/* Line 1464 of yacc.c */
#line 457 "parser.y"
{
bx_dbg_step_over_command();
free((yyvsp[(1) - (2)].sval));
}
break;
case 100:
/* Line 1464 of yacc.c */
#line 465 "parser.y"
{
bx_dbg_set_auto_disassemble((yyvsp[(3) - (4)].bval));
free((yyvsp[(1) - (4)].sval)); free((yyvsp[(2) - (4)].sval));
}
break;
case 101:
/* Line 1464 of yacc.c */
#line 470 "parser.y"
{
bx_dbg_set_symbol_command((yyvsp[(2) - (5)].sval), (yyvsp[(4) - (5)].uval));
free((yyvsp[(1) - (5)].sval)); free((yyvsp[(2) - (5)].sval));
}
break;
case 102:
/* Line 1464 of yacc.c */
#line 475 "parser.y"
{
bx_dbg_set_reg8l_value((yyvsp[(2) - (5)].uval), (yyvsp[(4) - (5)].uval));
}
break;
case 103:
/* Line 1464 of yacc.c */
#line 479 "parser.y"
{
bx_dbg_set_reg8h_value((yyvsp[(2) - (5)].uval), (yyvsp[(4) - (5)].uval));
}
break;
case 104:
/* Line 1464 of yacc.c */
#line 483 "parser.y"
{
bx_dbg_set_reg16_value((yyvsp[(2) - (5)].uval), (yyvsp[(4) - (5)].uval));
}
break;
case 105:
/* Line 1464 of yacc.c */
#line 487 "parser.y"
{
bx_dbg_set_reg32_value((yyvsp[(2) - (5)].uval), (yyvsp[(4) - (5)].uval));
}
break;
case 106:
/* Line 1464 of yacc.c */
#line 491 "parser.y"
{
bx_dbg_set_reg64_value((yyvsp[(2) - (5)].uval), (yyvsp[(4) - (5)].uval));
}
break;
case 107:
/* Line 1464 of yacc.c */
#line 495 "parser.y"
{
bx_dbg_load_segreg((yyvsp[(2) - (5)].uval), (yyvsp[(4) - (5)].uval));
}
break;
case 108:
/* Line 1464 of yacc.c */
#line 502 "parser.y"
{
bx_dbg_vbreakpoint_command(bkAtIP, 0, 0);
free((yyvsp[(1) - (2)].sval));
}
break;
case 109:
/* Line 1464 of yacc.c */
#line 507 "parser.y"
{
bx_dbg_vbreakpoint_command(bkRegular, (yyvsp[(2) - (5)].uval), (yyvsp[(4) - (5)].uval));
free((yyvsp[(1) - (5)].sval));
}
break;
case 110:
/* Line 1464 of yacc.c */
#line 512 "parser.y"
{
bx_dbg_lbreakpoint_command(bkAtIP, 0);
free((yyvsp[(1) - (2)].sval));
}
break;
case 111:
/* Line 1464 of yacc.c */
#line 517 "parser.y"
{
bx_dbg_lbreakpoint_command(bkRegular, (yyvsp[(2) - (3)].uval));
free((yyvsp[(1) - (3)].sval));
}
break;
case 112:
/* Line 1464 of yacc.c */
#line 522 "parser.y"
{
bx_dbg_lbreakpoint_symbol_command((yyvsp[(2) - (3)].sval));
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 113:
/* Line 1464 of yacc.c */
#line 527 "parser.y"
{
bx_dbg_pbreakpoint_command(bkAtIP, 0);
free((yyvsp[(1) - (2)].sval));
}
break;
case 114:
/* Line 1464 of yacc.c */
#line 532 "parser.y"
{
bx_dbg_pbreakpoint_command(bkRegular, (yyvsp[(2) - (3)].uval));
free((yyvsp[(1) - (3)].sval));
}
break;
case 115:
/* Line 1464 of yacc.c */
#line 537 "parser.y"
{
bx_dbg_pbreakpoint_command(bkRegular, (yyvsp[(3) - (4)].uval));
free((yyvsp[(1) - (4)].sval));
}
break;
case 116:
/* Line 1464 of yacc.c */
#line 545 "parser.y"
{
bx_dbg_info_bpoints_command();
free((yyvsp[(1) - (2)].sval));
}
break;
case 117:
/* Line 1464 of yacc.c */
#line 553 "parser.y"
{
bx_dbg_info_symbols_command(0);
free((yyvsp[(1) - (2)].sval));
}
break;
case 118:
/* Line 1464 of yacc.c */
#line 558 "parser.y"
{
bx_dbg_info_symbols_command((yyvsp[(2) - (3)].sval));
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 119:
/* Line 1464 of yacc.c */
#line 566 "parser.y"
{
bx_dbg_info_bpoints_command();
free((yyvsp[(1) - (3)].sval)); free((yyvsp[(2) - (3)].sval));
}
break;
case 120:
/* Line 1464 of yacc.c */
#line 571 "parser.y"
{
bx_dbg_info_registers_command(-1);
free((yyvsp[(1) - (3)].sval)); free((yyvsp[(2) - (3)].sval));
}
break;
case 121:
/* Line 1464 of yacc.c */
#line 576 "parser.y"
{
bx_dbg_info_idt_command((yyvsp[(3) - (5)].uval), (yyvsp[(4) - (5)].uval));
free((yyvsp[(1) - (5)].sval)); free((yyvsp[(2) - (5)].sval));
}
break;
case 122:
/* Line 1464 of yacc.c */
#line 581 "parser.y"
{
bx_dbg_info_ivt_command((yyvsp[(3) - (5)].uval), (yyvsp[(4) - (5)].uval));
free((yyvsp[(1) - (5)].sval)); free((yyvsp[(2) - (5)].sval));
}
break;
case 123:
/* Line 1464 of yacc.c */
#line 586 "parser.y"
{
bx_dbg_info_gdt_command((yyvsp[(3) - (5)].uval), (yyvsp[(4) - (5)].uval));
free((yyvsp[(1) - (5)].sval)); free((yyvsp[(2) - (5)].sval));
}
break;
case 124:
/* Line 1464 of yacc.c */
#line 591 "parser.y"
{
bx_dbg_info_ldt_command((yyvsp[(3) - (5)].uval), (yyvsp[(4) - (5)].uval));
free((yyvsp[(1) - (5)].sval)); free((yyvsp[(2) - (5)].sval));
}
break;
case 125:
/* Line 1464 of yacc.c */
#line 596 "parser.y"
{
bx_dbg_dump_table();
free((yyvsp[(1) - (3)].sval)); free((yyvsp[(2) - (3)].sval));
}
break;
case 126:
/* Line 1464 of yacc.c */
#line 601 "parser.y"
{
bx_dbg_info_tss_command();
free((yyvsp[(1) - (3)].sval)); free((yyvsp[(2) - (3)].sval));
}
break;
case 127:
/* Line 1464 of yacc.c */
#line 606 "parser.y"
{
bx_dbg_info_flags();
free((yyvsp[(1) - (3)].sval));
}
break;
case 128:
/* Line 1464 of yacc.c */
#line 611 "parser.y"
{
bx_dbg_info_linux_command();
free((yyvsp[(1) - (3)].sval)); free((yyvsp[(2) - (3)].sval));
}
break;
case 129:
/* Line 1464 of yacc.c */
#line 616 "parser.y"
{
bx_dbg_info_symbols_command(0);
free((yyvsp[(1) - (3)].sval)); free((yyvsp[(2) - (3)].sval));
}
break;
case 130:
/* Line 1464 of yacc.c */
#line 621 "parser.y"
{
bx_dbg_info_symbols_command((yyvsp[(3) - (4)].sval));
free((yyvsp[(1) - (4)].sval)); free((yyvsp[(2) - (4)].sval)); free((yyvsp[(3) - (4)].sval));
}
break;
case 131:
/* Line 1464 of yacc.c */
#line 626 "parser.y"
{
bx_dbg_info_ne2k(-1, -1);
free((yyvsp[(1) - (3)].sval)); free((yyvsp[(2) - (3)].sval));
}
break;
case 132:
/* Line 1464 of yacc.c */
#line 631 "parser.y"
{
free((yyvsp[(1) - (5)].sval)); free((yyvsp[(2) - (5)].sval)); free((yyvsp[(3) - (5)].sval));
bx_dbg_info_ne2k((yyvsp[(4) - (5)].uval), -1);
}
break;
case 133:
/* Line 1464 of yacc.c */
#line 636 "parser.y"
{
free((yyvsp[(1) - (7)].sval)); free((yyvsp[(2) - (7)].sval)); free((yyvsp[(3) - (7)].sval)); free((yyvsp[(5) - (7)].sval));
bx_dbg_info_ne2k((yyvsp[(4) - (7)].uval), (yyvsp[(6) - (7)].uval));
}
break;
case 134:
/* Line 1464 of yacc.c */
#line 641 "parser.y"
{
bx_dbg_info_pic();
free((yyvsp[(1) - (3)].sval)); free((yyvsp[(2) - (3)].sval));
}
break;
case 135:
/* Line 1464 of yacc.c */
#line 646 "parser.y"
{
bx_dbg_info_vga();
free((yyvsp[(1) - (3)].sval)); free((yyvsp[(2) - (3)].sval));
}
break;
case 136:
/* Line 1464 of yacc.c */
#line 651 "parser.y"
{
bx_dbg_info_pci();
free((yyvsp[(1) - (3)].sval)); free((yyvsp[(2) - (3)].sval));
}
break;
case 137:
/* Line 1464 of yacc.c */
#line 658 "parser.y"
{ (yyval.uval) = EMPTY_ARG; }
break;
case 139:
/* Line 1464 of yacc.c */
#line 663 "parser.y"
{
bx_dbg_info_registers_command(BX_INFO_GENERAL_PURPOSE_REGS);
free((yyvsp[(1) - (2)].sval));
}
break;
case 140:
/* Line 1464 of yacc.c */
#line 671 "parser.y"
{
bx_dbg_info_registers_command(BX_INFO_FPU_REGS);
free((yyvsp[(1) - (2)].sval));
}
break;
case 141:
/* Line 1464 of yacc.c */
#line 679 "parser.y"
{
bx_dbg_info_registers_command(BX_INFO_MMX_REGS);
free((yyvsp[(1) - (2)].sval));
}
break;
case 142:
/* Line 1464 of yacc.c */
#line 687 "parser.y"
{
bx_dbg_info_registers_command(BX_INFO_SSE_REGS);
free((yyvsp[(1) - (2)].sval));
}
break;
case 143:
/* Line 1464 of yacc.c */
#line 695 "parser.y"
{
bx_dbg_info_registers_command(BX_INFO_AVX_REGS);
free((yyvsp[(1) - (2)].sval));
}
break;
case 144:
/* Line 1464 of yacc.c */
#line 703 "parser.y"
{
bx_dbg_info_segment_regs_command();
free((yyvsp[(1) - (2)].sval));
}
break;
case 145:
/* Line 1464 of yacc.c */
#line 711 "parser.y"
{
bx_dbg_info_control_regs_command();
free((yyvsp[(1) - (2)].sval));
}
break;
case 146:
/* Line 1464 of yacc.c */
#line 719 "parser.y"
{
bx_dbg_info_debug_regs_command();
free((yyvsp[(1) - (2)].sval));
}
break;
case 147:
/* Line 1464 of yacc.c */
#line 727 "parser.y"
{
bx_dbg_del_breakpoint_command((yyvsp[(2) - (3)].uval));
free((yyvsp[(1) - (3)].sval));
}
break;
case 148:
/* Line 1464 of yacc.c */
#line 735 "parser.y"
{
bx_dbg_en_dis_breakpoint_command((yyvsp[(2) - (3)].uval), 1);
free((yyvsp[(1) - (3)].sval));
}
break;
case 149:
/* Line 1464 of yacc.c */
#line 742 "parser.y"
{
bx_dbg_en_dis_breakpoint_command((yyvsp[(2) - (3)].uval), 0);
free((yyvsp[(1) - (3)].sval));
}
break;
case 150:
/* Line 1464 of yacc.c */
#line 750 "parser.y"
{
bx_dbg_quit_command();
free((yyvsp[(1) - (2)].sval));
}
break;
case 151:
/* Line 1464 of yacc.c */
#line 758 "parser.y"
{
bx_dbg_examine_command((yyvsp[(1) - (4)].sval), (yyvsp[(2) - (4)].sval),1, (yyvsp[(3) - (4)].uval), 1);
free((yyvsp[(1) - (4)].sval)); free((yyvsp[(2) - (4)].sval));
}
break;
case 152:
/* Line 1464 of yacc.c */
#line 763 "parser.y"
{
bx_dbg_examine_command((yyvsp[(1) - (3)].sval), (yyvsp[(2) - (3)].sval),1, 0, 0);
free((yyvsp[(1) - (3)].sval)); free((yyvsp[(2) - (3)].sval));
}
break;
case 153:
/* Line 1464 of yacc.c */
#line 768 "parser.y"
{
bx_dbg_examine_command((yyvsp[(1) - (3)].sval), NULL,0, (yyvsp[(2) - (3)].uval), 1);
free((yyvsp[(1) - (3)].sval));
}
break;
case 154:
/* Line 1464 of yacc.c */
#line 773 "parser.y"
{
bx_dbg_examine_command((yyvsp[(1) - (2)].sval), NULL,0, 0, 0);
free((yyvsp[(1) - (2)].sval));
}
break;
case 155:
/* Line 1464 of yacc.c */
#line 781 "parser.y"
{
bx_dbg_restore_command((yyvsp[(2) - (4)].sval), (yyvsp[(3) - (4)].sval));
free((yyvsp[(1) - (4)].sval)); free((yyvsp[(2) - (4)].sval)); free((yyvsp[(3) - (4)].sval));
}
break;
case 156:
/* Line 1464 of yacc.c */
#line 789 "parser.y"
{
bx_dbg_setpmem_command((yyvsp[(2) - (5)].uval), (yyvsp[(3) - (5)].uval), (yyvsp[(4) - (5)].uval));
free((yyvsp[(1) - (5)].sval));
}
break;
case 157:
/* Line 1464 of yacc.c */
#line 797 "parser.y"
{
bx_dbg_query_command((yyvsp[(2) - (3)].sval));
free((yyvsp[(1) - (3)].sval)); free((yyvsp[(2) - (3)].sval));
}
break;
case 158:
/* Line 1464 of yacc.c */
#line 805 "parser.y"
{
bx_dbg_take_command((yyvsp[(2) - (3)].sval), 1);
free((yyvsp[(1) - (3)].sval)); free((yyvsp[(2) - (3)].sval));
}
break;
case 159:
/* Line 1464 of yacc.c */
#line 810 "parser.y"
{
bx_dbg_take_command((yyvsp[(2) - (4)].sval), (yyvsp[(3) - (4)].uval));
free((yyvsp[(1) - (4)].sval)); free((yyvsp[(2) - (4)].sval));
}
break;
case 160:
/* Line 1464 of yacc.c */
#line 815 "parser.y"
{
bx_dbg_take_command((yyvsp[(2) - (3)].sval), 1);
free((yyvsp[(1) - (3)].sval)); free((yyvsp[(2) - (3)].sval));
}
break;
case 161:
/* Line 1464 of yacc.c */
#line 823 "parser.y"
{
bx_dbg_disassemble_current(NULL);
free((yyvsp[(1) - (2)].sval));
}
break;
case 162:
/* Line 1464 of yacc.c */
#line 828 "parser.y"
{
bx_dbg_disassemble_command(NULL, (yyvsp[(2) - (3)].uval), (yyvsp[(2) - (3)].uval));
free((yyvsp[(1) - (3)].sval));
}
break;
case 163:
/* Line 1464 of yacc.c */
#line 833 "parser.y"
{
bx_dbg_disassemble_command(NULL, (yyvsp[(2) - (4)].uval), (yyvsp[(3) - (4)].uval));
free((yyvsp[(1) - (4)].sval));
}
break;
case 164:
/* Line 1464 of yacc.c */
#line 838 "parser.y"
{
bx_dbg_disassemble_current((yyvsp[(2) - (3)].sval));
free((yyvsp[(1) - (3)].sval)); free((yyvsp[(2) - (3)].sval));
}
break;
case 165:
/* Line 1464 of yacc.c */
#line 843 "parser.y"
{
bx_dbg_disassemble_command((yyvsp[(2) - (4)].sval), (yyvsp[(3) - (4)].uval), (yyvsp[(3) - (4)].uval));
free((yyvsp[(1) - (4)].sval)); free((yyvsp[(2) - (4)].sval));
}
break;
case 166:
/* Line 1464 of yacc.c */
#line 848 "parser.y"
{
bx_dbg_disassemble_command((yyvsp[(2) - (5)].sval), (yyvsp[(3) - (5)].uval), (yyvsp[(4) - (5)].uval));
free((yyvsp[(1) - (5)].sval)); free((yyvsp[(2) - (5)].sval));
}
break;
case 167:
/* Line 1464 of yacc.c */
#line 853 "parser.y"
{
bx_dbg_disassemble_switch_mode();
free((yyvsp[(1) - (3)].sval)); free((yyvsp[(2) - (3)].sval));
}
break;
case 168:
/* Line 1464 of yacc.c */
#line 858 "parser.y"
{
bx_dbg_disassemble_hex_mode_switch((yyvsp[(3) - (4)].bval));
free((yyvsp[(1) - (4)].sval)); free((yyvsp[(2) - (4)].sval));
}
break;
case 169:
/* Line 1464 of yacc.c */
#line 863 "parser.y"
{
bx_dbg_set_disassemble_size((yyvsp[(4) - (5)].uval));
free((yyvsp[(1) - (5)].sval)); free((yyvsp[(2) - (5)].sval));
}
break;
case 170:
/* Line 1464 of yacc.c */
#line 871 "parser.y"
{
bx_dbg_instrument_command((yyvsp[(2) - (3)].sval));
free((yyvsp[(1) - (3)].sval)); free((yyvsp[(2) - (3)].sval));
}
break;
case 171:
/* Line 1464 of yacc.c */
#line 876 "parser.y"
{
bx_dbg_instrument_command((yyvsp[(2) - (3)].sval));
free((yyvsp[(1) - (3)].sval)); free((yyvsp[(2) - (3)].sval));
}
break;
case 172:
/* Line 1464 of yacc.c */
#line 884 "parser.y"
{
bx_dbg_doit_command((yyvsp[(2) - (3)].uval));
free((yyvsp[(1) - (3)].sval));
}
break;
case 173:
/* Line 1464 of yacc.c */
#line 892 "parser.y"
{
bx_dbg_crc_command((yyvsp[(2) - (4)].uval), (yyvsp[(3) - (4)].uval));
free((yyvsp[(1) - (4)].sval));
}
break;
case 174:
/* Line 1464 of yacc.c */
#line 900 "parser.y"
{
dbg_printf("q|quit|exit - quit debugger and emulator execution\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 175:
/* Line 1464 of yacc.c */
#line 905 "parser.y"
{
dbg_printf("c|cont|continue - continue executing\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 176:
/* Line 1464 of yacc.c */
#line 910 "parser.y"
{
dbg_printf("s|step [count] - execute #count instructions on current processor (default is one instruction)\n");
dbg_printf("s|step [cpu] <count> - execute #count instructions on processor #cpu\n");
dbg_printf("s|step all <count> - execute #count instructions on all the processors\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 177:
/* Line 1464 of yacc.c */
#line 917 "parser.y"
{
dbg_printf("n|next|p - execute instruction stepping over subroutines\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 178:
/* Line 1464 of yacc.c */
#line 922 "parser.y"
{
dbg_printf("vb|vbreak <seg:offset> - set a virtual address instruction breakpoint\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 179:
/* Line 1464 of yacc.c */
#line 927 "parser.y"
{
dbg_printf("lb|lbreak <addr> - set a linear address instruction breakpoint\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 180:
/* Line 1464 of yacc.c */
#line 932 "parser.y"
{
dbg_printf("p|pb|break|pbreak <addr> - set a physical address instruction breakpoint\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 181:
/* Line 1464 of yacc.c */
#line 937 "parser.y"
{
dbg_printf("d|del|delete <n> - delete a breakpoint\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 182:
/* Line 1464 of yacc.c */
#line 942 "parser.y"
{
dbg_printf("bpe <n> - enable a breakpoint\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 183:
/* Line 1464 of yacc.c */
#line 947 "parser.y"
{
dbg_printf("bpd <n> - disable a breakpoint\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 184:
/* Line 1464 of yacc.c */
#line 952 "parser.y"
{
dbg_printf("blist - list all breakpoints (same as 'info break')\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 185:
/* Line 1464 of yacc.c */
#line 957 "parser.y"
{
dbg_printf("modebp - toggles mode switch breakpoint\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 186:
/* Line 1464 of yacc.c */
#line 962 "parser.y"
{
dbg_printf("crc <addr1> <addr2> - show CRC32 for physical memory range addr1..addr2\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 187:
/* Line 1464 of yacc.c */
#line 967 "parser.y"
{
dbg_printf("trace on - print disassembly for every executed instruction\n");
dbg_printf("trace off - disable instruction tracing\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 188:
/* Line 1464 of yacc.c */
#line 973 "parser.y"
{
dbg_printf("trace-reg on - print all registers before every executed instruction\n");
dbg_printf("trace-reg off - disable registers state tracing\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 189:
/* Line 1464 of yacc.c */
#line 979 "parser.y"
{
dbg_printf("trace-mem on - print all memory accesses occured during instruction execution\n");
dbg_printf("trace-mem off - disable memory accesses tracing\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 190:
/* Line 1464 of yacc.c */
#line 985 "parser.y"
{
dbg_printf("restore <param_name> [path] - restore bochs root param from the file\n");
dbg_printf("for example:\n");
dbg_printf("restore \"cpu0\" - restore CPU #0 from file \"cpu0\" in current directory\n");
dbg_printf("restore \"cpu0\" \"/save\" - restore CPU #0 from file \"cpu0\" located in directory \"/save\"\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 191:
/* Line 1464 of yacc.c */
#line 993 "parser.y"
{
dbg_printf("ptime - print current time (number of ticks since start of simulation)\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 192:
/* Line 1464 of yacc.c */
#line 998 "parser.y"
{
dbg_printf("sb <delta> - insert a time breakpoint delta instructions into the future\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 193:
/* Line 1464 of yacc.c */
#line 1003 "parser.y"
{
dbg_printf("sba <time> - insert breakpoint at specific time\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 194:
/* Line 1464 of yacc.c */
#line 1008 "parser.y"
{
dbg_printf("print-stack [num_words] - print the num_words top 16 bit words on the stack\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 195:
/* Line 1464 of yacc.c */
#line 1013 "parser.y"
{
dbg_printf("record <filename> - record console input to file filename\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 196:
/* Line 1464 of yacc.c */
#line 1018 "parser.y"
{
dbg_printf("playback <filename> - playback console input from file filename\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 197:
/* Line 1464 of yacc.c */
#line 1023 "parser.y"
{
dbg_printf("ldsym [global] <filename> [offset] - load symbols from file\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 198:
/* Line 1464 of yacc.c */
#line 1028 "parser.y"
{
dbg_printf("slist [string] - list symbols whose preffix is string (same as 'info symbols')\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 199:
/* Line 1464 of yacc.c */
#line 1033 "parser.y"
{
dbg_printf("r|reg|regs|registers - list of CPU registers and their contents (same as 'info registers')\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 200:
/* Line 1464 of yacc.c */
#line 1038 "parser.y"
{
dbg_printf("fp|fpu - print FPU state\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 201:
/* Line 1464 of yacc.c */
#line 1043 "parser.y"
{
dbg_printf("mmx - print MMX state\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 202:
/* Line 1464 of yacc.c */
#line 1048 "parser.y"
{
dbg_printf("xmm|sse - print SSE state\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 203:
/* Line 1464 of yacc.c */
#line 1053 "parser.y"
{
dbg_printf("ymm - print AVX state\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 204:
/* Line 1464 of yacc.c */
#line 1058 "parser.y"
{
dbg_printf("sreg - show segment registers\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 205:
/* Line 1464 of yacc.c */
#line 1063 "parser.y"
{
dbg_printf("creg - show control registers\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 206:
/* Line 1464 of yacc.c */
#line 1068 "parser.y"
{
dbg_printf("dreg - show debug registers\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 207:
/* Line 1464 of yacc.c */
#line 1073 "parser.y"
{
dbg_printf("setpmem <addr> <datasize> <val> - set physical memory location of size 'datasize' to value 'val'\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 208:
/* Line 1464 of yacc.c */
#line 1078 "parser.y"
{
dbg_printf("u|disasm [/count] <start> <end> - disassemble instructions for given linear address\n");
dbg_printf(" Optional 'count' is the number of disassembled instructions\n");
dbg_printf("u|disasm switch-mode - switch between Intel and AT&T disassembler syntax\n");
dbg_printf("u|disasm hex on/off - control disasm offsets and displacements format\n");
dbg_printf("u|disasm size = n - tell debugger what segment size [16|32|64] to use\n");
dbg_printf(" when \"disassemble\" command is used.\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 209:
/* Line 1464 of yacc.c */
#line 1088 "parser.y"
{
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 r|read addr - insert a read watch point at physical address addr\n");
dbg_printf("watch w|write addr - insert a write watch point at physical address addr\n");
dbg_printf("watch r|read addr <len> - insert a read watch point at physical address addr with range <len>\n");
dbg_printf("watch w|write addr <len> - insert a write watch point at physical address addr with range <len>\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 210:
/* Line 1464 of yacc.c */
#line 1099 "parser.y"
{
dbg_printf("unwatch - remove all watch points\n");
dbg_printf("unwatch addr - remove a watch point\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 211:
/* Line 1464 of yacc.c */
#line 1105 "parser.y"
{
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[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 212:
/* Line 1464 of yacc.c */
#line 1118 "parser.y"
{
dbg_printf("instrument <command> - calls BX_INSTR_DEBUG_CMD instrumentation callback with <command>\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 213:
/* Line 1464 of yacc.c */
#line 1123 "parser.y"
{
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");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 214:
/* Line 1464 of yacc.c */
#line 1133 "parser.y"
{
dbg_printf("page <laddr> - show linear to physical xlation for linear address laddr\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 215:
/* Line 1464 of yacc.c */
#line 1138 "parser.y"
{
dbg_printf("info break - show information about current breakpoint status\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 tab - show page tables\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");
dbg_printf("info pci - show i440fx PCI state\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 216:
/* Line 1464 of yacc.c */
#line 1154 "parser.y"
{
dbg_printf("show <command> - 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 off - toggles off symbolic info\n");
dbg_printf("show dbg-all - turn on all show flags\n");
dbg_printf("show dbg-none - turn off all show flags\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 217:
/* Line 1464 of yacc.c */
#line 1166 "parser.y"
{
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[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 218:
/* Line 1464 of yacc.c */
#line 1176 "parser.y"
{
bx_dbg_print_help();
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 219:
/* Line 1464 of yacc.c */
#line 1181 "parser.y"
{
bx_dbg_print_help();
free((yyvsp[(1) - (2)].sval));
}
break;
case 220:
/* Line 1464 of yacc.c */
#line 1189 "parser.y"
{
bx_dbg_calc_command((yyvsp[(2) - (3)].uval));
free((yyvsp[(1) - (3)].sval));
}
break;
case 221:
/* Line 1464 of yacc.c */
#line 1206 "parser.y"
{ (yyval.uval) = (yyvsp[(1) - (1)].uval); }
break;
case 222:
/* Line 1464 of yacc.c */
#line 1207 "parser.y"
{ (yyval.uval) = bx_dbg_get_symbol_value((yyvsp[(1) - (1)].sval)); free((yyvsp[(1) - (1)].sval));}
break;
case 223:
/* Line 1464 of yacc.c */
#line 1208 "parser.y"
{ (yyval.uval) = bx_dbg_get_reg8l_value((yyvsp[(1) - (1)].uval)); }
break;
case 224:
/* Line 1464 of yacc.c */
#line 1209 "parser.y"
{ (yyval.uval) = bx_dbg_get_reg8h_value((yyvsp[(1) - (1)].uval)); }
break;
case 225:
/* Line 1464 of yacc.c */
#line 1210 "parser.y"
{ (yyval.uval) = bx_dbg_get_reg16_value((yyvsp[(1) - (1)].uval)); }
break;
case 226:
/* Line 1464 of yacc.c */
#line 1211 "parser.y"
{ (yyval.uval) = bx_dbg_get_reg32_value((yyvsp[(1) - (1)].uval)); }
break;
case 227:
/* Line 1464 of yacc.c */
#line 1212 "parser.y"
{ (yyval.uval) = bx_dbg_get_reg64_value((yyvsp[(1) - (1)].uval)); }
break;
case 228:
/* Line 1464 of yacc.c */
#line 1213 "parser.y"
{ (yyval.uval) = bx_dbg_get_selector_value((yyvsp[(1) - (1)].uval)); }
break;
case 229:
/* Line 1464 of yacc.c */
#line 1214 "parser.y"
{ (yyval.uval) = bx_dbg_get_ip (); }
break;
case 230:
/* Line 1464 of yacc.c */
#line 1215 "parser.y"
{ (yyval.uval) = bx_dbg_get_eip(); }
break;
case 231:
/* Line 1464 of yacc.c */
#line 1216 "parser.y"
{ (yyval.uval) = bx_dbg_get_instruction_pointer(); }
break;
case 232:
/* Line 1464 of yacc.c */
#line 1217 "parser.y"
{ (yyval.uval) = (yyvsp[(1) - (3)].uval) + (yyvsp[(3) - (3)].uval); }
break;
case 233:
/* Line 1464 of yacc.c */
#line 1218 "parser.y"
{ (yyval.uval) = (yyvsp[(1) - (3)].uval) - (yyvsp[(3) - (3)].uval); }
break;
case 234:
/* Line 1464 of yacc.c */
#line 1219 "parser.y"
{ (yyval.uval) = (yyvsp[(1) - (3)].uval) * (yyvsp[(3) - (3)].uval); }
break;
case 235:
/* Line 1464 of yacc.c */
#line 1220 "parser.y"
{ (yyval.uval) = (yyvsp[(1) - (3)].uval) / (yyvsp[(3) - (3)].uval); }
break;
case 236:
/* Line 1464 of yacc.c */
#line 1221 "parser.y"
{ (yyval.uval) = (yyvsp[(1) - (3)].uval) >> (yyvsp[(3) - (3)].uval); }
break;
case 237:
/* Line 1464 of yacc.c */
#line 1222 "parser.y"
{ (yyval.uval) = (yyvsp[(1) - (3)].uval) << (yyvsp[(3) - (3)].uval); }
break;
case 238:
/* Line 1464 of yacc.c */
#line 1223 "parser.y"
{ (yyval.uval) = (yyvsp[(1) - (3)].uval) | (yyvsp[(3) - (3)].uval); }
break;
case 239:
/* Line 1464 of yacc.c */
#line 1224 "parser.y"
{ (yyval.uval) = (yyvsp[(1) - (3)].uval) ^ (yyvsp[(3) - (3)].uval); }
break;
case 240:
/* Line 1464 of yacc.c */
#line 1225 "parser.y"
{ (yyval.uval) = (yyvsp[(1) - (3)].uval) & (yyvsp[(3) - (3)].uval); }
break;
case 241:
/* Line 1464 of yacc.c */
#line 1226 "parser.y"
{ (yyval.uval) = !(yyvsp[(2) - (2)].uval); }
break;
case 242:
/* Line 1464 of yacc.c */
#line 1227 "parser.y"
{ (yyval.uval) = -(yyvsp[(2) - (2)].uval); }
break;
case 243:
/* Line 1464 of yacc.c */
#line 1228 "parser.y"
{ (yyval.uval) = (yyvsp[(2) - (3)].uval); }
break;
case 244:
/* Line 1464 of yacc.c */
#line 1234 "parser.y"
{ (yyval.uval) = (yyvsp[(1) - (1)].uval); }
break;
case 245:
/* Line 1464 of yacc.c */
#line 1235 "parser.y"
{ (yyval.uval) = bx_dbg_get_symbol_value((yyvsp[(1) - (1)].sval)); free((yyvsp[(1) - (1)].sval));}
break;
case 246:
/* Line 1464 of yacc.c */
#line 1236 "parser.y"
{ (yyval.uval) = bx_dbg_get_reg8l_value((yyvsp[(1) - (1)].uval)); }
break;
case 247:
/* Line 1464 of yacc.c */
#line 1237 "parser.y"
{ (yyval.uval) = bx_dbg_get_reg8h_value((yyvsp[(1) - (1)].uval)); }
break;
case 248:
/* Line 1464 of yacc.c */
#line 1238 "parser.y"
{ (yyval.uval) = bx_dbg_get_reg16_value((yyvsp[(1) - (1)].uval)); }
break;
case 249:
/* Line 1464 of yacc.c */
#line 1239 "parser.y"
{ (yyval.uval) = bx_dbg_get_reg32_value((yyvsp[(1) - (1)].uval)); }
break;
case 250:
/* Line 1464 of yacc.c */
#line 1240 "parser.y"
{ (yyval.uval) = bx_dbg_get_reg64_value((yyvsp[(1) - (1)].uval)); }
break;
case 251:
/* Line 1464 of yacc.c */
#line 1241 "parser.y"
{ (yyval.uval) = bx_dbg_get_selector_value((yyvsp[(1) - (1)].uval)); }
break;
case 252:
/* Line 1464 of yacc.c */
#line 1242 "parser.y"
{ (yyval.uval) = bx_dbg_get_ip (); }
break;
case 253:
/* Line 1464 of yacc.c */
#line 1243 "parser.y"
{ (yyval.uval) = bx_dbg_get_eip(); }
break;
case 254:
/* Line 1464 of yacc.c */
#line 1244 "parser.y"
{ (yyval.uval) = bx_dbg_get_instruction_pointer(); }
break;
case 255:
/* Line 1464 of yacc.c */
#line 1245 "parser.y"
{ (yyval.uval) = bx_dbg_get_laddr ((yyvsp[(1) - (3)].uval), (yyvsp[(3) - (3)].uval)); }
break;
case 256:
/* Line 1464 of yacc.c */
#line 1246 "parser.y"
{ (yyval.uval) = (yyvsp[(1) - (3)].uval) + (yyvsp[(3) - (3)].uval); }
break;
case 257:
/* Line 1464 of yacc.c */
#line 1247 "parser.y"
{ (yyval.uval) = (yyvsp[(1) - (3)].uval) - (yyvsp[(3) - (3)].uval); }
break;
case 258:
/* Line 1464 of yacc.c */
#line 1248 "parser.y"
{ (yyval.uval) = (yyvsp[(1) - (3)].uval) * (yyvsp[(3) - (3)].uval); }
break;
case 259:
/* Line 1464 of yacc.c */
#line 1249 "parser.y"
{ (yyval.uval) = ((yyvsp[(3) - (3)].uval) != 0) ? (yyvsp[(1) - (3)].uval) / (yyvsp[(3) - (3)].uval) : 0; }
break;
case 260:
/* Line 1464 of yacc.c */
#line 1250 "parser.y"
{ (yyval.uval) = (yyvsp[(1) - (3)].uval) >> (yyvsp[(3) - (3)].uval); }
break;
case 261:
/* Line 1464 of yacc.c */
#line 1251 "parser.y"
{ (yyval.uval) = (yyvsp[(1) - (3)].uval) << (yyvsp[(3) - (3)].uval); }
break;
case 262:
/* Line 1464 of yacc.c */
#line 1252 "parser.y"
{ (yyval.uval) = (yyvsp[(1) - (3)].uval) | (yyvsp[(3) - (3)].uval); }
break;
case 263:
/* Line 1464 of yacc.c */
#line 1253 "parser.y"
{ (yyval.uval) = (yyvsp[(1) - (3)].uval) ^ (yyvsp[(3) - (3)].uval); }
break;
case 264:
/* Line 1464 of yacc.c */
#line 1254 "parser.y"
{ (yyval.uval) = (yyvsp[(1) - (3)].uval) & (yyvsp[(3) - (3)].uval); }
break;
case 265:
/* Line 1464 of yacc.c */
#line 1255 "parser.y"
{ (yyval.uval) = !(yyvsp[(2) - (2)].uval); }
break;
case 266:
/* Line 1464 of yacc.c */
#line 1256 "parser.y"
{ (yyval.uval) = -(yyvsp[(2) - (2)].uval); }
break;
case 267:
/* Line 1464 of yacc.c */
#line 1257 "parser.y"
{ (yyval.uval) = bx_dbg_lin_indirect((yyvsp[(2) - (2)].uval)); }
break;
case 268:
/* Line 1464 of yacc.c */
#line 1258 "parser.y"
{ (yyval.uval) = bx_dbg_phy_indirect((yyvsp[(2) - (2)].uval)); }
break;
case 269:
/* Line 1464 of yacc.c */
#line 1259 "parser.y"
{ (yyval.uval) = (yyvsp[(2) - (3)].uval); }
break;
/* Line 1464 of yacc.c */
#line 4280 "y.tab.c"
default: break;
}
YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
YYPOPSTACK (yylen);
yylen = 0;
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)
{
++yynerrs;
#if ! YYERROR_VERBOSE
yyerror (YY_("syntax error"));
#else
{
YYSIZE_T yysize = yysyntax_error (0, yystate, yychar);
if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM)
{
YYSIZE_T yyalloc = 2 * yysize;
if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM))
yyalloc = YYSTACK_ALLOC_MAXIMUM;
if (yymsg != yymsgbuf)
YYSTACK_FREE (yymsg);
yymsg = (char *) YYSTACK_ALLOC (yyalloc);
if (yymsg)
yymsg_alloc = yyalloc;
else
{
yymsg = yymsgbuf;
yymsg_alloc = sizeof yymsgbuf;
}
}
if (0 < yysize && yysize <= yymsg_alloc)
{
(void) yysyntax_error (yymsg, yystate, yychar);
yyerror (yymsg);
}
else
{
yyerror (YY_("syntax error"));
if (yysize != 0)
goto yyexhaustedlab;
}
}
#endif
}
if (yyerrstatus == 3)
{
/* If just tried and failed to reuse lookahead token after an
error, discard it. */
if (yychar <= YYEOF)
{
/* Return failure if at end of input. */
if (yychar == YYEOF)
YYABORT;
}
else
{
yydestruct ("Error: discarding",
yytoken, &yylval);
yychar = YYEMPTY;
}
}
/* Else will try to reuse lookahead token after shifting the error
token. */
goto yyerrlab1;
/*---------------------------------------------------.
| yyerrorlab -- error raised explicitly by YYERROR. |
`---------------------------------------------------*/
yyerrorlab:
/* Pacify compilers like GCC when the user code never invokes
YYERROR and the label yyerrorlab therefore never appears in user
code. */
if (/*CONSTCOND*/ 0)
goto yyerrorlab;
/* Do not reclaim the symbols of the rule which action triggered
this YYERROR. */
YYPOPSTACK (yylen);
yylen = 0;
YY_STACK_PRINT (yyss, yyssp);
yystate = *yyssp;
goto yyerrlab1;
/*-------------------------------------------------------------.
| yyerrlab1 -- common code for both syntax error and YYERROR. |
`-------------------------------------------------------------*/
yyerrlab1:
yyerrstatus = 3; /* Each real token shifted decrements this. */
for (;;)
{
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;
yydestruct ("Error: popping",
yystos[yystate], yyvsp);
YYPOPSTACK (1);
yystate = *yyssp;
YY_STACK_PRINT (yyss, yyssp);
}
*++yyvsp = yylval;
/* Shift the error token. */
YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp);
yystate = yyn;
goto yynewstate;
/*-------------------------------------.
| yyacceptlab -- YYACCEPT comes here. |
`-------------------------------------*/
yyacceptlab:
yyresult = 0;
goto yyreturn;
/*-----------------------------------.
| yyabortlab -- YYABORT comes here. |
`-----------------------------------*/
yyabortlab:
yyresult = 1;
goto yyreturn;
#if !defined(yyoverflow) || YYERROR_VERBOSE
/*-------------------------------------------------.
| yyexhaustedlab -- memory exhaustion comes here. |
`-------------------------------------------------*/
yyexhaustedlab:
yyerror (YY_("memory exhausted"));
yyresult = 2;
/* Fall through. */
#endif
yyreturn:
if (yychar != YYEMPTY)
yydestruct ("Cleanup: discarding lookahead",
yytoken, &yylval);
/* Do not reclaim the symbols of the rule which action triggered
this YYABORT or YYACCEPT. */
YYPOPSTACK (yylen);
YY_STACK_PRINT (yyss, yyssp);
while (yyssp != yyss)
{
yydestruct ("Cleanup: popping",
yystos[*yyssp], yyvsp);
YYPOPSTACK (1);
}
#ifndef yyoverflow
if (yyss != yyssa)
YYSTACK_FREE (yyss);
#endif
#if YYERROR_VERBOSE
if (yymsg != yymsgbuf)
YYSTACK_FREE (yymsg);
#endif
/* Make sure YYID is used. */
return YYID (yyresult);
}
/* Line 1684 of yacc.c */
#line 1262 "parser.y"
#endif /* if BX_DEBUGGER */
/* The #endif is appended by the makefile after running yacc. */