Bochs/bochs/bx_debug/parser.c

4411 lines
151 KiB
C
Raw Normal View History

/* A Bison parser, made by GNU Bison 2.7.1. */
2006-10-18 22:23:18 +04:00
2013-01-28 21:53:50 +04:00
/* Bison implementation for Yacc-like parsers in C
2011-03-04 23:35:24 +03:00
Copyright (C) 1984, 1989-1990, 2000-2013 Free Software Foundation, Inc.
2011-03-04 23:35:24 +03:00
This program is free software: you can redistribute it and/or modify
2006-10-18 22:23:18 +04:00
it under the terms of the GNU General Public License as published by
2011-03-04 23:35:24 +03:00
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
2006-10-18 22:23:18 +04:00
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.
2011-03-04 23:35:24 +03:00
2006-10-18 22:23:18 +04:00
You should have received a copy of the GNU General Public License
2011-03-04 23:35:24 +03:00
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.
2011-03-04 23:35:24 +03:00
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
2006-10-18 22:23:18 +04:00
/* C LALR(1) parser skeleton written by Richard Stallman, by
simplifying the original so-called "semantic" parser. */
2006-10-18 22:23:18 +04:00
/* 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.7.1"
2006-10-18 22:23:18 +04:00
/* Skeleton name. */
#define YYSKELETON_NAME "yacc.c"
/* Pure parsers. */
#define YYPURE 0
2011-03-04 23:35:24 +03:00
/* Push parsers. */
#define YYPUSH 0
/* Pull parsers. */
#define YYPULL 1
2006-10-18 22:23:18 +04:00
/* Substitute the variable and function names. */
2011-03-04 23:35:24 +03:00
#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 371 of yacc.c */
2011-03-04 23:35:24 +03:00
#line 5 "parser.y"
#include <stdio.h>
#include <stdlib.h>
#include "debug.h"
#if BX_DEBUGGER
/* Line 371 of yacc.c */
#line 83 "y.tab.c"
2011-03-04 23:35:24 +03:00
# ifndef YY_NULL
# if defined __cplusplus && 201103L <= __cplusplus
# define YY_NULL nullptr
# else
# define YY_NULL 0
# endif
# endif
2011-03-04 23:35:24 +03:00
/* Enabling verbose error messages. */
#ifdef YYERROR_VERBOSE
# undef YYERROR_VERBOSE
# define YYERROR_VERBOSE 1
#else
# define YYERROR_VERBOSE 0
#endif
/* In a future release of Bison, this section will be replaced
by #include "y.tab.h". */
#ifndef YY_BX_Y_TAB_H_INCLUDED
# define YY_BX_Y_TAB_H_INCLUDED
/* Enabling traces. */
#ifndef YYDEBUG
# define YYDEBUG 0
#endif
#if YYDEBUG
extern int bxdebug;
2011-03-04 23:35:24 +03:00
#endif
2006-10-18 22:23:18 +04:00
/* Tokens. */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
/* Put the tokens into the symbol table, so that GDB and other debuggers
know about them. */
enum yytokentype {
BX_TOKEN_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_SET = 275,
BX_TOKEN_DEBUGGER = 276,
BX_TOKEN_LIST_BREAK = 277,
BX_TOKEN_VBREAKPOINT = 278,
BX_TOKEN_LBREAKPOINT = 279,
BX_TOKEN_PBREAKPOINT = 280,
BX_TOKEN_DEL_BREAKPOINT = 281,
BX_TOKEN_ENABLE_BREAKPOINT = 282,
BX_TOKEN_DISABLE_BREAKPOINT = 283,
BX_TOKEN_INFO = 284,
BX_TOKEN_QUIT = 285,
BX_TOKEN_R = 286,
BX_TOKEN_REGS = 287,
BX_TOKEN_CPU = 288,
BX_TOKEN_FPU = 289,
BX_TOKEN_MMX = 290,
BX_TOKEN_XMM = 291,
BX_TOKEN_YMM = 292,
BX_TOKEN_ZMM = 293,
BX_TOKEN_AVX = 294,
BX_TOKEN_IDT = 295,
BX_TOKEN_IVT = 296,
BX_TOKEN_GDT = 297,
BX_TOKEN_LDT = 298,
BX_TOKEN_TSS = 299,
BX_TOKEN_TAB = 300,
BX_TOKEN_ALL = 301,
BX_TOKEN_LINUX = 302,
BX_TOKEN_DEBUG_REGS = 303,
BX_TOKEN_CONTROL_REGS = 304,
BX_TOKEN_SEGMENT_REGS = 305,
BX_TOKEN_EXAMINE = 306,
BX_TOKEN_XFORMAT = 307,
BX_TOKEN_DISFORMAT = 308,
BX_TOKEN_RESTORE = 309,
BX_TOKEN_WRITEMEM = 310,
BX_TOKEN_SETPMEM = 311,
BX_TOKEN_SYMBOLNAME = 312,
BX_TOKEN_QUERY = 313,
BX_TOKEN_PENDING = 314,
BX_TOKEN_TAKE = 315,
BX_TOKEN_DMA = 316,
BX_TOKEN_IRQ = 317,
BX_TOKEN_TLB = 318,
BX_TOKEN_HEX = 319,
BX_TOKEN_DISASM = 320,
BX_TOKEN_INSTRUMENT = 321,
BX_TOKEN_STRING = 322,
BX_TOKEN_STOP = 323,
BX_TOKEN_DOIT = 324,
BX_TOKEN_CRC = 325,
BX_TOKEN_TRACE = 326,
BX_TOKEN_TRACEREG = 327,
BX_TOKEN_TRACEMEM = 328,
BX_TOKEN_SWITCH_MODE = 329,
BX_TOKEN_SIZE = 330,
BX_TOKEN_PTIME = 331,
BX_TOKEN_TIMEBP_ABSOLUTE = 332,
BX_TOKEN_TIMEBP = 333,
BX_TOKEN_MODEBP = 334,
BX_TOKEN_VMEXITBP = 335,
BX_TOKEN_PRINT_STACK = 336,
BX_TOKEN_WATCH = 337,
BX_TOKEN_UNWATCH = 338,
BX_TOKEN_READ = 339,
BX_TOKEN_WRITE = 340,
BX_TOKEN_SHOW = 341,
BX_TOKEN_LOAD_SYMBOLS = 342,
BX_TOKEN_SYMBOLS = 343,
BX_TOKEN_LIST_SYMBOLS = 344,
BX_TOKEN_GLOBAL = 345,
BX_TOKEN_WHERE = 346,
BX_TOKEN_PRINT_STRING = 347,
BX_TOKEN_NUMERIC = 348,
BX_TOKEN_PAGE = 349,
BX_TOKEN_HELP = 350,
BX_TOKEN_CALC = 351,
2013-11-20 20:56:26 +04:00
BX_TOKEN_DEVICE = 352,
BX_TOKEN_COMMAND = 353,
BX_TOKEN_GENERIC = 354,
BX_TOKEN_RSHIFT = 355,
BX_TOKEN_LSHIFT = 356,
BX_TOKEN_REG_IP = 357,
BX_TOKEN_REG_EIP = 358,
BX_TOKEN_REG_RIP = 359,
INDIRECT = 360,
NEG = 361,
NOT = 362
2006-10-18 22:23:18 +04:00
};
#endif
/* Tokens. */
2006-10-18 22:23:18 +04:00
#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_SET 275
#define BX_TOKEN_DEBUGGER 276
#define BX_TOKEN_LIST_BREAK 277
#define BX_TOKEN_VBREAKPOINT 278
#define BX_TOKEN_LBREAKPOINT 279
#define BX_TOKEN_PBREAKPOINT 280
#define BX_TOKEN_DEL_BREAKPOINT 281
#define BX_TOKEN_ENABLE_BREAKPOINT 282
#define BX_TOKEN_DISABLE_BREAKPOINT 283
#define BX_TOKEN_INFO 284
#define BX_TOKEN_QUIT 285
#define BX_TOKEN_R 286
#define BX_TOKEN_REGS 287
#define BX_TOKEN_CPU 288
#define BX_TOKEN_FPU 289
#define BX_TOKEN_MMX 290
#define BX_TOKEN_XMM 291
#define BX_TOKEN_YMM 292
#define BX_TOKEN_ZMM 293
#define BX_TOKEN_AVX 294
#define BX_TOKEN_IDT 295
#define BX_TOKEN_IVT 296
#define BX_TOKEN_GDT 297
#define BX_TOKEN_LDT 298
#define BX_TOKEN_TSS 299
#define BX_TOKEN_TAB 300
#define BX_TOKEN_ALL 301
#define BX_TOKEN_LINUX 302
#define BX_TOKEN_DEBUG_REGS 303
#define BX_TOKEN_CONTROL_REGS 304
#define BX_TOKEN_SEGMENT_REGS 305
#define BX_TOKEN_EXAMINE 306
#define BX_TOKEN_XFORMAT 307
#define BX_TOKEN_DISFORMAT 308
#define BX_TOKEN_RESTORE 309
#define BX_TOKEN_WRITEMEM 310
#define BX_TOKEN_SETPMEM 311
#define BX_TOKEN_SYMBOLNAME 312
#define BX_TOKEN_QUERY 313
#define BX_TOKEN_PENDING 314
#define BX_TOKEN_TAKE 315
#define BX_TOKEN_DMA 316
#define BX_TOKEN_IRQ 317
#define BX_TOKEN_TLB 318
#define BX_TOKEN_HEX 319
#define BX_TOKEN_DISASM 320
#define BX_TOKEN_INSTRUMENT 321
#define BX_TOKEN_STRING 322
#define BX_TOKEN_STOP 323
#define BX_TOKEN_DOIT 324
#define BX_TOKEN_CRC 325
#define BX_TOKEN_TRACE 326
#define BX_TOKEN_TRACEREG 327
#define BX_TOKEN_TRACEMEM 328
#define BX_TOKEN_SWITCH_MODE 329
#define BX_TOKEN_SIZE 330
#define BX_TOKEN_PTIME 331
#define BX_TOKEN_TIMEBP_ABSOLUTE 332
#define BX_TOKEN_TIMEBP 333
#define BX_TOKEN_MODEBP 334
#define BX_TOKEN_VMEXITBP 335
#define BX_TOKEN_PRINT_STACK 336
#define BX_TOKEN_WATCH 337
#define BX_TOKEN_UNWATCH 338
#define BX_TOKEN_READ 339
#define BX_TOKEN_WRITE 340
#define BX_TOKEN_SHOW 341
#define BX_TOKEN_LOAD_SYMBOLS 342
#define BX_TOKEN_SYMBOLS 343
#define BX_TOKEN_LIST_SYMBOLS 344
#define BX_TOKEN_GLOBAL 345
#define BX_TOKEN_WHERE 346
#define BX_TOKEN_PRINT_STRING 347
#define BX_TOKEN_NUMERIC 348
#define BX_TOKEN_PAGE 349
#define BX_TOKEN_HELP 350
#define BX_TOKEN_CALC 351
2013-11-20 20:56:26 +04:00
#define BX_TOKEN_DEVICE 352
#define BX_TOKEN_COMMAND 353
#define BX_TOKEN_GENERIC 354
#define BX_TOKEN_RSHIFT 355
#define BX_TOKEN_LSHIFT 356
#define BX_TOKEN_REG_IP 357
#define BX_TOKEN_REG_EIP 358
#define BX_TOKEN_REG_RIP 359
#define INDIRECT 360
#define NEG 361
#define NOT 362
2006-10-18 22:23:18 +04:00
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef union YYSTYPE
{
/* Line 387 of yacc.c */
2011-03-04 23:35:24 +03:00
#line 13 "parser.y"
char *sval;
Bit64u uval;
bx_bool bval;
2011-03-04 23:35:24 +03:00
/* Line 387 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 347 "y.tab.c"
2011-03-04 23:35:24 +03:00
} YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
2006-10-18 22:23:18 +04:00
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
#endif
extern YYSTYPE bxlval;
2006-10-18 22:23:18 +04:00
#ifdef YYPARSE_PARAM
#if defined __STDC__ || defined __cplusplus
int bxparse (void *YYPARSE_PARAM);
#else
int bxparse ();
#endif
#else /* ! YYPARSE_PARAM */
#if defined __STDC__ || defined __cplusplus
int bxparse (void);
#else
int bxparse ();
#endif
#endif /* ! YYPARSE_PARAM */
#endif /* !YY_BX_Y_TAB_H_INCLUDED */
2006-10-18 22:23:18 +04:00
/* Copy the second part of user declarations. */
2006-10-18 22:23:18 +04:00
/* Line 390 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 375 "y.tab.c"
2006-10-18 22:23:18 +04:00
#ifdef short
# undef short
#endif
2006-10-18 22:23:18 +04:00
#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
2006-10-18 22:23:18 +04:00
#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
2006-10-18 22:23:18 +04:00
# else
# define YYSIZE_T unsigned int
# endif
#endif
#define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
#ifndef YY_
2011-03-04 23:35:24 +03:00
# 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
#ifndef __attribute__
/* This feature is available in gcc versions 2.5 and later. */
# if (! defined __GNUC__ || __GNUC__ < 2 \
|| (__GNUC__ == 2 && __GNUC_MINOR__ < 5))
# define __attribute__(Spec) /* empty */
# 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
2011-03-04 23:35:24 +03:00
YYID (int yyi)
#else
static int
2011-03-04 23:35:24 +03:00
YYID (yyi)
int yyi;
#endif
{
2011-03-04 23:35:24 +03:00
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
2006-10-18 22:23:18 +04:00
# else
# define YYSTACK_ALLOC alloca
2013-01-28 21:53:50 +04:00
# if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
/* Use EXIT_SUCCESS as a witness for stdlib.h. */
2013-01-28 21:53:50 +04:00
# ifndef EXIT_SUCCESS
# define EXIT_SUCCESS 0
# endif
2006-10-18 22:23:18 +04:00
# 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
2006-10-18 22:23:18 +04:00
# else
# define YYSTACK_ALLOC YYMALLOC
# define YYSTACK_FREE YYFREE
# ifndef YYSTACK_ALLOC_MAXIMUM
# define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
# endif
2013-01-28 21:53:50 +04:00
# if (defined __cplusplus && ! defined EXIT_SUCCESS \
&& ! ((defined YYMALLOC || defined malloc) \
&& (defined YYFREE || defined free)))
2006-10-18 22:23:18 +04:00
# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
2013-01-28 21:53:50 +04:00
# ifndef EXIT_SUCCESS
# define EXIT_SUCCESS 0
# endif
# endif
# ifndef YYMALLOC
# define YYMALLOC malloc
2013-01-28 21:53:50 +04:00
# if ! defined malloc && ! defined EXIT_SUCCESS && (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
2013-01-28 21:53:50 +04:00
# if ! defined free && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
void free (void *); /* INFRINGES ON USER NAME SPACE */
# endif
2006-10-18 22:23:18 +04:00
# endif
# endif
#endif /* ! defined yyoverflow || YYERROR_VERBOSE */
2006-10-18 22:23:18 +04:00
#if (! defined yyoverflow \
&& (! defined __cplusplus \
|| (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))
2006-10-18 22:23:18 +04:00
/* A type that is properly aligned for any stack member. */
union yyalloc
{
2011-03-04 23:35:24 +03:00
yytype_int16 yyss_alloc;
YYSTYPE yyvs_alloc;
};
2006-10-18 22:23:18 +04:00
/* 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)) \
2006-10-18 22:23:18 +04:00
+ YYSTACK_GAP_MAXIMUM)
2013-01-28 21:53:50 +04:00
# define YYCOPY_NEEDED 1
2006-10-18 22:23:18 +04:00
/* 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. */
2011-03-04 23:35:24 +03:00
# define YYSTACK_RELOCATE(Stack_alloc, Stack) \
2006-10-18 22:23:18 +04:00
do \
{ \
YYSIZE_T yynewbytes; \
2011-03-04 23:35:24 +03:00
YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
Stack = &yyptr->Stack_alloc; \
2006-10-18 22:23:18 +04:00
yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
yyptr += yynewbytes / sizeof (*yyptr); \
} \
while (YYID (0))
2006-10-18 22:23:18 +04:00
#endif
2013-01-28 21:53:50 +04:00
#if defined YYCOPY_NEEDED && YYCOPY_NEEDED
/* Copy COUNT objects from SRC to DST. The source and destination do
2013-01-28 21:53:50 +04:00
not overlap. */
# ifndef YYCOPY
# if defined __GNUC__ && 1 < __GNUC__
# define YYCOPY(Dst, Src, Count) \
__builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src)))
2013-01-28 21:53:50 +04:00
# else
# define YYCOPY(Dst, Src, Count) \
do \
{ \
YYSIZE_T yyi; \
for (yyi = 0; yyi < (Count); yyi++) \
(Dst)[yyi] = (Src)[yyi]; \
} \
2013-01-28 21:53:50 +04:00
while (YYID (0))
# endif
# endif
#endif /* !YYCOPY_NEEDED */
/* YYFINAL -- State number of the termination state. */
#define YYFINAL 289
2006-10-18 22:23:18 +04:00
/* YYLAST -- Last index in YYTABLE. */
2013-11-20 20:56:26 +04:00
#define YYLAST 1755
2006-10-18 22:23:18 +04:00
/* YYNTOKENS -- Number of terminals. */
2013-11-20 20:56:26 +04:00
#define YYNTOKENS 122
/* YYNNTS -- Number of nonterminals. */
#define YYNNTS 57
/* YYNRULES -- Number of rules. */
#define YYNRULES 276
/* YYNRULES -- Number of states. */
#define YYNSTATES 538
2006-10-18 22:23:18 +04:00
/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
#define YYUNDEFTOK 2
2013-11-20 20:56:26 +04:00
#define YYMAXUTOK 362
2006-10-18 22:23:18 +04:00
#define YYTRANSLATE(YYX) \
2006-10-18 22:23:18 +04:00
((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
static const yytype_uint8 yytranslate[] =
2006-10-18 22:23:18 +04:00
{
0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2013-11-20 20:56:26 +04:00
115, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2006-10-18 22:23:18 +04:00
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2013-11-20 20:56:26 +04:00
2, 2, 2, 118, 2, 2, 2, 2, 111, 2,
119, 120, 109, 105, 2, 106, 2, 110, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 117, 2,
2, 116, 2, 2, 121, 2, 2, 2, 2, 2,
2006-10-18 22:23:18 +04:00
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2013-11-20 20:56:26 +04:00
2, 2, 2, 2, 108, 2, 2, 2, 2, 2,
2006-10-18 22:23:18 +04:00
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2013-11-20 20:56:26 +04:00
2, 2, 2, 2, 107, 2, 2, 2, 2, 2,
2006-10-18 22:23:18 +04:00
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
45, 46, 47, 48, 49, 50, 51, 52, 53, 54,
55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
75, 76, 77, 78, 79, 80, 81, 82, 83, 84,
85, 86, 87, 88, 89, 90, 91, 92, 93, 94,
95, 96, 97, 98, 99, 100, 101, 102, 103, 104,
2013-11-20 20:56:26 +04:00
112, 113, 114
};
2006-10-18 22:23:18 +04:00
#if YYDEBUG
/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
YYRHS. */
static const yytype_uint16 yyprhs[] =
2006-10-18 22:23:18 +04:00
{
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, 102, 104, 105, 107, 109, 111, 113, 115, 117,
119, 121, 123, 125, 127, 131, 135, 138, 141, 145,
149, 153, 156, 160, 164, 167, 171, 175, 179, 182,
186, 190, 194, 197, 202, 207, 212, 218, 224, 230,
233, 237, 241, 246, 251, 257, 260, 264, 267, 270,
274, 279, 284, 287, 292, 298, 304, 310, 316, 322,
328, 334, 340, 346, 349, 355, 358, 362, 366, 369,
373, 378, 381, 384, 388, 392, 396, 402, 408, 414,
420, 424, 428, 432, 436, 440, 445, 449, 454, 460,
465, 471, 472, 474, 477, 480, 483, 486, 489, 492,
495, 498, 501, 505, 509, 513, 516, 521, 525, 529,
532, 537, 543, 549, 553, 557, 562, 566, 569, 573,
578, 582, 587, 593, 597, 602, 608, 612, 616, 620,
2013-01-28 21:53:50 +04:00
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,
785, 789, 793, 797, 801, 805, 809, 812, 816, 818,
820, 822, 824, 826, 828, 830, 832, 834, 836, 838,
842, 846, 850, 854, 858, 862, 866, 870, 874, 877,
880, 884, 886, 888, 890, 892, 894, 896, 898, 900,
902, 904, 906, 910, 914, 918, 922, 926, 930, 934,
938, 942, 946, 949, 952, 955, 958
};
2006-10-18 22:23:18 +04:00
/* YYRHS -- A `-1'-separated list of the rules' RHS. */
static const yytype_int16 yyrhs[] =
2006-10-18 22:23:18 +04:00
{
2013-11-20 20:56:26 +04:00
123, 0, -1, 123, 124, -1, 124, -1, 143, -1,
144, -1, 145, -1, 146, -1, 147, -1, 150, -1,
152, -1, 153, -1, 154, -1, 155, -1, 156, -1,
157, -1, 158, -1, 160, -1, 159, -1, 148, -1,
149, -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, 174, -1,
135, -1, 136, -1, 137, -1, 134, -1, 128, -1,
129, -1, 130, -1, 138, -1, 139, -1, 132, -1,
133, -1, 131, -1, 140, -1, 141, -1, 142, -1,
175, -1, 176, -1, -1, 115, -1, 15, -1, 16,
-1, 31, -1, 32, -1, 8, -1, 9, -1, 10,
2013-11-20 20:56:26 +04:00
-1, 11, -1, 12, -1, 13, -1, 78, 178, 115,
-1, 77, 178, 115, -1, 79, 115, -1, 80, 115,
-1, 86, 98, 115, -1, 86, 16, 115, -1, 86,
67, 115, -1, 86, 115, -1, 94, 178, 115, -1,
63, 178, 115, -1, 76, 115, -1, 71, 125, 115,
-1, 72, 125, 115, -1, 73, 125, 115, -1, 81,
115, -1, 81, 93, 115, -1, 82, 68, 115, -1,
82, 17, 115, -1, 82, 115, -1, 82, 31, 178,
115, -1, 82, 84, 178, 115, -1, 82, 85, 178,
115, -1, 82, 31, 178, 178, 115, -1, 82, 84,
178, 178, 115, -1, 82, 85, 178, 178, 115, -1,
83, 115, -1, 83, 178, 115, -1, 87, 67, 115,
-1, 87, 67, 178, 115, -1, 87, 90, 67, 115,
-1, 87, 90, 67, 178, 115, -1, 91, 115, -1,
92, 178, 115, -1, 17, 115, -1, 18, 115, -1,
18, 93, 115, -1, 18, 46, 93, 115, -1, 18,
93, 93, 115, -1, 19, 115, -1, 20, 65, 125,
115, -1, 20, 57, 116, 178, 115, -1, 20, 4,
116, 178, 115, -1, 20, 3, 116, 178, 115, -1,
20, 5, 116, 178, 115, -1, 20, 6, 116, 178,
115, -1, 20, 7, 116, 178, 115, -1, 20, 103,
116, 178, 115, -1, 20, 104, 116, 178, 115, -1,
20, 127, 116, 178, 115, -1, 23, 115, -1, 23,
177, 117, 177, 115, -1, 24, 115, -1, 24, 178,
115, -1, 24, 67, 115, -1, 25, 115, -1, 25,
178, 115, -1, 25, 109, 178, 115, -1, 22, 115,
-1, 89, 115, -1, 89, 67, 115, -1, 29, 25,
115, -1, 29, 33, 115, -1, 29, 40, 151, 151,
115, -1, 29, 41, 151, 151, 115, -1, 29, 42,
151, 151, 115, -1, 29, 43, 151, 151, 115, -1,
29, 45, 115, -1, 29, 44, 115, -1, 29, 14,
115, -1, 29, 47, 115, -1, 29, 88, 115, -1,
29, 88, 67, 115, -1, 29, 97, 115, -1, 29,
97, 99, 115, -1, 29, 97, 99, 67, 115, -1,
2013-11-20 20:56:26 +04:00
29, 97, 67, 115, -1, 29, 97, 67, 67, 115,
-1, -1, 178, -1, 126, 115, -1, 34, 115, -1,
35, 115, -1, 36, 115, -1, 37, 115, -1, 38,
115, -1, 50, 115, -1, 49, 115, -1, 48, 115,
-1, 26, 93, 115, -1, 27, 93, 115, -1, 28,
93, 115, -1, 30, 115, -1, 51, 52, 178, 115,
-1, 51, 52, 115, -1, 51, 178, 115, -1, 51,
115, -1, 54, 67, 67, 115, -1, 55, 67, 178,
178, 115, -1, 56, 178, 178, 178, 115, -1, 58,
59, 115, -1, 60, 61, 115, -1, 60, 61, 93,
115, -1, 60, 62, 115, -1, 65, 115, -1, 65,
178, 115, -1, 65, 178, 178, 115, -1, 65, 53,
115, -1, 65, 53, 178, 115, -1, 65, 53, 178,
178, 115, -1, 65, 74, 115, -1, 65, 64, 125,
115, -1, 65, 75, 116, 93, 115, -1, 66, 68,
115, -1, 66, 98, 115, -1, 69, 178, 115, -1,
70, 178, 178, 115, -1, 95, 30, 115, -1, 95,
17, 115, -1, 95, 18, 115, -1, 95, 19, 115,
-1, 95, 23, 115, -1, 95, 24, 115, -1, 95,
25, 115, -1, 95, 26, 115, -1, 95, 27, 115,
-1, 95, 28, 115, -1, 95, 22, 115, -1, 95,
79, 115, -1, 95, 80, 115, -1, 95, 70, 115,
-1, 95, 71, 115, -1, 95, 72, 115, -1, 95,
73, 115, -1, 95, 54, 115, -1, 95, 76, 115,
-1, 95, 78, 115, -1, 95, 77, 115, -1, 95,
81, 115, -1, 95, 87, 115, -1, 95, 89, 115,
-1, 95, 126, 115, -1, 95, 34, 115, -1, 95,
35, 115, -1, 95, 36, 115, -1, 95, 37, 115,
-1, 95, 38, 115, -1, 95, 50, 115, -1, 95,
49, 115, -1, 95, 48, 115, -1, 95, 55, 115,
-1, 95, 56, 115, -1, 95, 65, 115, -1, 95,
82, 115, -1, 95, 83, 115, -1, 95, 51, 115,
-1, 95, 66, 115, -1, 95, 20, 115, -1, 95,
94, 115, -1, 95, 29, 115, -1, 95, 86, 115,
-1, 95, 96, 115, -1, 95, 95, 115, -1, 95,
115, -1, 96, 178, 115, -1, 93, -1, 67, -1,
2013-01-28 21:53:50 +04:00
4, -1, 3, -1, 5, -1, 6, -1, 7, -1,
2013-11-20 20:56:26 +04:00
127, -1, 102, -1, 103, -1, 104, -1, 177, 105,
177, -1, 177, 106, 177, -1, 177, 109, 177, -1,
177, 110, 177, -1, 177, 100, 177, -1, 177, 101,
177, -1, 177, 107, 177, -1, 177, 108, 177, -1,
177, 111, 177, -1, 118, 177, -1, 106, 177, -1,
119, 177, 120, -1, 93, -1, 67, -1, 4, -1,
3, -1, 5, -1, 6, -1, 7, -1, 127, -1,
102, -1, 103, -1, 104, -1, 178, 117, 178, -1,
178, 105, 178, -1, 178, 106, 178, -1, 178, 109,
178, -1, 178, 110, 178, -1, 178, 100, 178, -1,
178, 101, 178, -1, 178, 107, 178, -1, 178, 108,
178, -1, 178, 111, 178, -1, 118, 178, -1, 106,
178, -1, 109, 178, -1, 121, 178, -1, 119, 178,
120, -1
};
2006-10-18 22:23:18 +04:00
/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
static const yytype_uint16 yyrline[] =
2006-10-18 22:23:18 +04:00
{
2013-11-20 20:56:26 +04:00
0, 139, 139, 140, 144, 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, 193, 199, 200, 205, 206, 211, 212,
213, 214, 215, 216, 221, 226, 234, 242, 250, 255,
260, 265, 273, 281, 289, 297, 305, 313, 321, 326,
334, 339, 344, 349, 354, 359, 364, 369, 374, 379,
384, 392, 397, 402, 407, 415, 423, 431, 439, 444,
449, 454, 462, 470, 475, 480, 484, 488, 492, 496,
500, 504, 508, 515, 520, 525, 530, 535, 540, 545,
550, 558, 566, 571, 579, 584, 589, 594, 599, 604,
609, 614, 619, 624, 629, 634, 639, 644, 649, 654,
659, 667, 668, 671, 679, 687, 695, 703, 711, 719,
727, 735, 743, 751, 758, 766, 774, 779, 784, 789,
797, 805, 813, 821, 829, 834, 839, 847, 852, 857,
862, 867, 872, 877, 882, 887, 895, 900, 908, 916,
924, 929, 934, 941, 946, 951, 956, 961, 966, 971,
976, 981, 986, 991, 996, 1002, 1008, 1014, 1022, 1027,
1032, 1037, 1042, 1047, 1052, 1057, 1062, 1067, 1072, 1077,
1082, 1087, 1092, 1097, 1102, 1107, 1117, 1128, 1134, 1147,
1152, 1163, 1168, 1184, 1196, 1206, 1211, 1219, 1237, 1238,
1239, 1240, 1241, 1242, 1243, 1244, 1245, 1246, 1247, 1248,
1249, 1250, 1251, 1252, 1253, 1254, 1255, 1256, 1257, 1258,
1259, 1265, 1266, 1267, 1268, 1269, 1270, 1271, 1272, 1273,
1274, 1275, 1276, 1277, 1278, 1279, 1280, 1281, 1282, 1283,
1284, 1285, 1286, 1287, 1288, 1289, 1290
};
2006-10-18 22:23:18 +04:00
#endif
#if YYDEBUG || YYERROR_VERBOSE || 0
/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
First, the terminals, then, starting at YYNTOKENS, nonterminals. */
2006-10-18 22:23:18 +04:00
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_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_XMM",
"BX_TOKEN_YMM", "BX_TOKEN_ZMM", "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_WRITEMEM", "BX_TOKEN_SETPMEM", "BX_TOKEN_SYMBOLNAME",
"BX_TOKEN_QUERY", "BX_TOKEN_PENDING", "BX_TOKEN_TAKE", "BX_TOKEN_DMA",
"BX_TOKEN_IRQ", "BX_TOKEN_TLB", "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_MODEBP", "BX_TOKEN_VMEXITBP", "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_PAGE",
2013-11-20 20:56:26 +04:00
"BX_TOKEN_HELP", "BX_TOKEN_CALC", "BX_TOKEN_DEVICE", "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", "modebp_command",
"vmexitbp_command", "show_command", "page_command", "tlb_command",
"ptime_command", "trace_command", "trace_reg_command",
2013-01-28 21:53:50 +04:00
"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",
2011-05-06 12:29:23 +04:00
"breakpoint_command", "blist_command", "slist_command", "info_command",
"optional_numeric", "regs_command", "fpu_regs_command",
"mmx_regs_command", "xmm_regs_command", "ymm_regs_command",
"zmm_regs_command", "segment_regs_command", "control_regs_command",
"debug_regs_command", "delete_command", "bpe_command", "bpd_command",
"quit_command", "examine_command", "restore_command", "writemem_command",
"setpmem_command", "query_command", "take_command",
"disassemble_command", "instrument_command", "doit_command",
"crc_command", "help_command", "calc_command", "vexpression",
"expression", YY_NULL
};
2006-10-18 22:23:18 +04:00
#endif
# ifdef YYPRINT
/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
token YYLEX-NUM. */
static const yytype_uint16 yytoknum[] =
2006-10-18 22:23:18 +04:00
{
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,
2013-11-20 20:56:26 +04:00
355, 356, 357, 358, 359, 43, 45, 124, 94, 42,
47, 38, 360, 361, 362, 10, 61, 58, 33, 40,
41, 64
};
2006-10-18 22:23:18 +04:00
# endif
/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
static const yytype_uint8 yyr1[] =
2006-10-18 22:23:18 +04:00
{
2013-11-20 20:56:26 +04:00
0, 122, 123, 123, 124, 124, 124, 124, 124, 124,
124, 124, 124, 124, 124, 124, 124, 124, 124, 124,
124, 124, 124, 124, 124, 124, 124, 124, 124, 124,
124, 124, 124, 124, 124, 124, 124, 124, 124, 124,
124, 124, 124, 124, 124, 124, 124, 124, 124, 124,
124, 124, 124, 124, 125, 125, 126, 126, 127, 127,
127, 127, 127, 127, 128, 128, 129, 130, 131, 131,
131, 131, 132, 133, 134, 135, 136, 137, 138, 138,
139, 139, 139, 139, 139, 139, 139, 139, 139, 139,
139, 140, 140, 140, 140, 141, 142, 143, 144, 144,
144, 144, 145, 146, 146, 146, 146, 146, 146, 146,
146, 146, 146, 147, 147, 147, 147, 147, 147, 147,
147, 148, 149, 149, 150, 150, 150, 150, 150, 150,
150, 150, 150, 150, 150, 150, 150, 150, 150, 150,
150, 151, 151, 152, 153, 154, 155, 156, 157, 158,
159, 160, 161, 162, 163, 164, 165, 165, 165, 165,
166, 167, 168, 169, 170, 170, 170, 171, 171, 171,
171, 171, 171, 171, 171, 171, 172, 172, 173, 174,
175, 175, 175, 175, 175, 175, 175, 175, 175, 175,
175, 175, 175, 175, 175, 175, 175, 175, 175, 175,
175, 175, 175, 175, 175, 175, 175, 175, 175, 175,
175, 175, 175, 175, 175, 175, 175, 175, 175, 175,
175, 175, 175, 175, 175, 175, 175, 176, 177, 177,
177, 177, 177, 177, 177, 177, 177, 177, 177, 177,
177, 177, 177, 177, 177, 177, 177, 177, 177, 177,
177, 178, 178, 178, 178, 178, 178, 178, 178, 178,
178, 178, 178, 178, 178, 178, 178, 178, 178, 178,
2013-11-20 20:56:26 +04:00
178, 178, 178, 178, 178, 178, 178
};
2006-10-18 22:23:18 +04:00
/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
static const yytype_uint8 yyr2[] =
2006-10-18 22:23:18 +04:00
{
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,
1, 1, 0, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 3, 3, 2, 2, 3, 3,
3, 2, 3, 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, 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, 4, 5, 4,
5, 0, 1, 2, 2, 2, 2, 2, 2, 2,
2, 2, 3, 3, 3, 2, 4, 3, 3, 2,
4, 5, 5, 3, 3, 4, 3, 2, 3, 4,
3, 4, 5, 3, 4, 5, 3, 3, 3, 4,
2009-10-29 18:49:50 +03:00
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
2006-10-18 22:23:18 +04:00
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
2013-01-28 21:53:50 +04:00
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
};
2006-10-18 22:23:18 +04:00
2013-01-28 21:53:50 +04:00
/* YYDEFACT[STATE-NAME] -- Default reduction number in state STATE-NUM.
Performed when YYTABLE doesn't specify something else to do. Zero
2006-10-18 22:23:18 +04:00
means the default is an error. */
2009-10-29 18:49:50 +03:00
static const yytype_uint16 yydefact[] =
2006-10-18 22:23:18 +04:00
{
52, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 56, 57, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2012-03-10 21:18:43 +04:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 53, 0, 3, 0, 39, 40,
41, 46, 44, 45, 38, 35, 36, 37, 42, 43,
47, 48, 49, 4, 5, 6, 7, 8, 19, 20,
9, 10, 11, 12, 13, 14, 15, 16, 18, 17,
21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
31, 32, 33, 34, 50, 51, 97, 0, 0, 98,
102, 0, 0, 0, 0, 0, 58, 59, 60, 61,
62, 63, 0, 0, 0, 0, 0, 121, 231, 230,
232, 233, 234, 229, 228, 236, 237, 238, 0, 113,
0, 0, 235, 0, 254, 253, 255, 256, 257, 252,
251, 259, 260, 261, 0, 0, 115, 0, 0, 0,
258, 0, 252, 0, 118, 0, 0, 0, 0, 0,
0, 0, 141, 141, 141, 141, 0, 0, 0, 0,
0, 155, 144, 145, 146, 147, 148, 151, 150, 149,
0, 159, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 167, 0, 0, 0, 0, 0,
54, 55, 0, 0, 0, 74, 0, 0, 66, 67,
0, 78, 0, 0, 0, 0, 0, 82, 89, 0,
0, 0, 0, 71, 0, 0, 0, 122, 95, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2006-10-18 22:23:18 +04:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2006-10-18 22:23:18 +04:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 226, 0, 0, 1,
2, 143, 0, 0, 99, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 249, 248, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 117, 273,
274, 272, 0, 275, 0, 0, 0, 0, 0, 0,
0, 0, 0, 116, 0, 274, 119, 152, 153, 154,
132, 124, 125, 141, 142, 141, 141, 141, 131, 130,
133, 0, 134, 0, 0, 136, 157, 0, 158, 0,
0, 0, 0, 0, 163, 0, 164, 166, 73, 170,
0, 0, 173, 0, 168, 0, 176, 177, 178, 0,
75, 76, 77, 65, 64, 79, 81, 0, 80, 0,
0, 90, 69, 70, 68, 91, 0, 0, 123, 96,
72, 181, 182, 183, 220, 190, 184, 185, 186, 187,
188, 189, 222, 180, 205, 206, 207, 208, 209, 212,
211, 210, 218, 197, 213, 214, 215, 219, 193, 194,
195, 196, 198, 200, 199, 191, 192, 201, 216, 217,
223, 202, 203, 221, 225, 224, 204, 227, 100, 101,
0, 0, 0, 0, 0, 0, 103, 0, 0, 0,
250, 243, 244, 239, 240, 245, 246, 241, 242, 247,
0, 276, 267, 268, 263, 264, 269, 270, 265, 266,
271, 262, 120, 0, 0, 0, 0, 135, 0, 139,
0, 137, 156, 160, 0, 264, 265, 0, 165, 171,
0, 174, 0, 169, 179, 83, 0, 84, 0, 85,
0, 92, 93, 0, 106, 105, 107, 108, 109, 104,
110, 111, 112, 114, 126, 127, 128, 129, 140, 138,
161, 162, 172, 175, 86, 87, 88, 94
};
2006-10-18 22:23:18 +04:00
/* YYDEFGOTO[NTERM-NUM]. */
static const yytype_int16 yydefgoto[] =
2006-10-18 22:23:18 +04:00
{
-1, 55, 56, 212, 57, 160, 58, 59, 60, 61,
62, 63, 64, 65, 66, 67, 68, 69, 70, 71,
72, 73, 74, 75, 76, 77, 78, 79, 80, 343,
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, 143, 344
2006-10-18 22:23:18 +04:00
};
/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
STATE-NUM. */
#define YYPACT_NINF -140
static const yytype_int16 yypact[] =
2006-10-18 22:23:18 +04:00
{
1339, -104, -28, -94, 50, -84, 1102, 122, 775, -46,
-27, -25, 326, -70, -140, -140, -67, -64, -40, -37,
-34, -33, -22, -12, 725, 19, 37, 1033, 46, -47,
1033, 652, -59, 1033, 1033, 25, 25, 25, -6, 1033,
1033, -5, 1, -44, -1, 795, -3, -48, -45, 2,
2013-11-20 20:56:26 +04:00
1033, 1033, 1421, 1033, -140, 1257, -140, 3, -140, -140,
-140, -140, -140, -140, -140, -140, -140, -140, -140, -140,
-140, -140, -140, -140, -140, -140, -140, -140, -140, -140,
-140, -140, -140, -140, -140, -140, -140, -140, -140, -140,
-140, -140, -140, -140, -140, -140, -140, -140, -140, -140,
-140, -140, -140, -140, -140, -140, -140, 13, -43, -140,
2013-11-20 20:56:26 +04:00
-140, 4, 5, 6, 7, 8, -140, -140, -140, -140,
-140, -140, 21, 25, 24, 26, 27, -140, -140, -140,
2013-11-20 20:56:26 +04:00
-140, -140, -140, -140, -140, -140, -140, -140, 1152, -140,
1152, 1152, -140, 1142, -140, -140, -140, -140, -140, 29,
2013-11-20 20:56:26 +04:00
-140, -140, -140, -140, 1033, 1033, -140, 1033, 1033, 1033,
-140, 434, -140, 1033, -140, 499, 30, 31, 34, 40,
53, 54, 1033, 1033, 1033, 1033, 55, 56, 69, -42,
-30, -140, -140, -140, -140, -140, -140, -140, -140, -140,
844, -140, 566, 52, 1033, 585, 70, -41, 71, 642,
914, 25, 75, 76, -140, 154, 79, 80, 715, 585,
-140, -140, 81, 82, 84, -140, 765, 834, -140, -140,
88, -140, 90, 1033, 97, 1033, 1033, -140, -140, 904,
98, 99, 105, -140, 963, 74, 107, -140, -140, 953,
1023, 108, 114, 115, 117, 118, 119, 123, 124, 127,
133, 134, 136, 138, 151, 152, 153, 155, 159, 161,
162, 163, 164, 165, 166, 167, 168, 169, 170, 171,
172, 179, 183, 184, 185, 186, 187, 188, 189, 190,
201, 211, 224, 226, 227, 228, -140, 229, 1066, -140,
-140, -140, 230, 231, -140, 1033, 1033, 1033, 1033, 1033,
1033, 232, 1033, 1033, 1033, -140, -140, 369, 1152, 1152,
2013-11-20 20:56:26 +04:00
1152, 1152, 1152, 1152, 1152, 1152, 1152, 1152, -140, -4,
-4, -4, -9, -4, 1033, 1033, 1033, 1033, 1033, 1033,
1033, 1033, 1033, -140, 1033, -105, -140, -140, -140, -140,
-140, -140, -140, 1033, 1627, 1033, 1033, 1033, -140, -140,
-140, 233, -140, -39, -38, -140, -140, 1079, -140, 234,
585, 1033, 1033, 585, -140, 235, -140, -140, -140, -140,
325, 237, -140, 157, -140, 1092, -140, -140, -140, 1122,
-140, -140, -140, -140, -140, -140, -140, 390, -140, 455,
2013-11-20 20:56:26 +04:00
520, -140, -140, -140, -140, -140, 1373, 983, -140, -140,
-140, -140, -140, -140, -140, -140, -140, -140, -140, -140,
-140, -140, -140, -140, -140, -140, -140, -140, -140, -140,
-140, -140, -140, -140, -140, -140, -140, -140, -140, -140,
-140, -140, -140, -140, -140, -140, -140, -140, -140, -140,
-140, -140, -140, -140, -140, -140, -140, -140, -140, -140,
2013-11-20 20:56:26 +04:00
1413, 1432, 1445, 1458, 1471, 1484, -140, 1497, 1510, 1523,
-140, -140, -140, -21, -21, -21, -21, -140, -140, -140,
1640, -140, -4, -4, 100, 100, 100, 100, -4, -4,
-4, 1627, -140, 242, 243, 245, 246, -140, 247, -140,
249, -140, -140, -140, 1536, 135, -4, 1549, -140, -140,
1562, -140, 250, -140, -140, -140, 1575, -140, 1588, -140,
2013-11-20 20:56:26 +04:00
1601, -140, -140, 1614, -140, -140, -140, -140, -140, -140,
-140, -140, -140, -140, -140, -140, -140, -140, -140, -140,
-140, -140, -140, -140, -140, -140, -140, -140
2006-10-18 22:23:18 +04:00
};
/* YYPGOTO[NTERM-NUM]. */
static const yytype_int16 yypgoto[] =
2006-10-18 22:23:18 +04:00
{
-140, -140, 317, -29, 139, -2, -140, -140, -140, -140,
-140, -140, -140, -140, -140, -140, -140, -140, -140, -140,
-140, -140, -140, -140, -140, -140, -140, -140, -140, -139,
-140, -140, -140, -140, -140, -140, -140, -140, -140, -140,
-140, -140, -140, -140, -140, -140, -140, -140, -140, -140,
-140, -140, -140, -140, -140, -135, -7
2006-10-18 22:23:18 +04:00
};
/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
positive, shift that token. If negative, reduce the rule which
2013-01-28 21:53:50 +04:00
number is the opposite. If YYTABLE_NINF, syntax error. */
#define YYTABLE_NINF -274
static const yytype_int16 yytable[] =
2006-10-18 22:23:18 +04:00
{
161, 165, 126, 305, 142, 306, 307, 213, 214, 206,
482, 106, 334, 230, 197, 198, 222, 192, 107, 234,
195, 110, 236, 199, 205, 351, 208, 209, 488, 490,
223, 127, 216, 217, 345, 346, 347, 353, 229, 207,
210, 211, 235, 239, 240, 181, 288, 166, 182, 220,
293, 183, 365, 111, 112, 113, 114, 115, 116, 117,
118, 119, 120, 121, 231, 108, 167, 224, 168, 354,
237, 221, 294, 352, 366, 184, 489, 491, 185, 308,
309, 186, 187, 225, 226, 355, 193, 109, 314, 315,
2013-11-20 20:56:26 +04:00
316, 324, 325, 188, 301, 232, 326, 327, 328, 329,
330, 331, 332, 189, 194, 196, 292, 122, 334, 215,
218, 471, 233, 334, 227, 123, 219, 238, 291, 359,
295, 296, 297, 298, 299, 144, 145, 146, 147, 148,
116, 117, 118, 119, 120, 121, 142, 300, 142, 142,
302, 397, 303, 304, 318, 337, 338, 319, 320, 339,
321, 322, 323, 124, 125, 340, 335, 144, 145, 146,
147, 148, 116, 117, 118, 119, 120, 121, 341, 342,
348, 349, 371, 461, 462, 463, 464, 465, 466, 467,
468, 469, 470, 357, 350, 364, 367, 360, 363, 149,
372, 287, 373, 370, 376, 377, 380, 381, 375, 382,
324, 325, 379, 385, 483, 386, 484, 485, 486, 330,
331, 332, 388, 392, 393, 150, 387, 334, 389, 390,
394, 162, 398, 401, 151, 152, 153, 396, 154, 402,
403, 155, 404, 405, 406, -273, -273, 156, 407, 408,
157, 158, 409, 159, -273, -273, -273, 150, 410, 411,
502, 412, 334, 413, 324, 325, 151, 152, 153, 326,
361, 328, 329, 362, 331, 332, 414, 415, 416, 374,
417, 334, 157, 158, 418, 159, 419, 420, 421, 422,
423, 424, 425, 426, 427, 428, 429, 430, 450, 451,
452, 453, 454, 455, 431, 457, 458, 459, 432, 433,
434, 435, 436, 437, 438, 439, 142, 142, 142, 142,
142, 142, 142, 142, 142, 142, 440, 472, 473, 474,
475, 476, 477, 478, 479, 480, 441, 481, 144, 145,
146, 147, 148, 116, 117, 118, 119, 120, 121, 442,
169, 443, 444, 445, 446, 448, 449, 456, 487, 493,
498, 170, 501, 494, 495, 496, 497, 524, 525, 171,
526, 527, 528, 500, 529, 533, 172, 173, 174, 175,
176, 177, 290, 178, 0, 0, 0, 0, 0, 0,
506, 0, 508, 510, 0, 0, 0, 0, 0, 0,
513, 0, 162, 144, 145, 146, 147, 148, 116, 117,
118, 119, 120, 121, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 179, 0, 0, 0, 150, 0,
2013-11-20 20:56:26 +04:00
0, 0, 0, 180, 0, 324, 325, 151, 152, 153,
326, 361, 328, 329, 362, 331, 332, 0, 0, 0,
499, 0, 334, 157, 158, 0, 159, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 162, 144, 145,
146, 147, 148, 116, 117, 118, 119, 120, 121, 308,
309, 0, 0, 0, 310, 311, 312, 313, 314, 315,
316, 0, 0, 150, 0, 0, 0, 0, 0, 460,
2013-11-20 20:56:26 +04:00
324, 325, 151, 152, 153, 326, 361, 328, 329, 362,
331, 332, 0, 0, 0, 505, 0, 334, 157, 158,
0, 159, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 162, 144, 145, 146, 147, 148, 116, 117,
118, 119, 120, 121, 324, 325, 0, 0, 0, 326,
327, 328, 329, 330, 331, 332, 0, 0, 150, 333,
2013-11-20 20:56:26 +04:00
0, 334, 0, 0, 0, 324, 325, 151, 152, 153,
326, 361, 328, 329, 362, 331, 332, 0, 0, 0,
507, 0, 334, 157, 158, 0, 159, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 162, 144, 145,
146, 147, 148, 116, 117, 118, 119, 120, 121, 324,
325, 0, 0, 0, 326, 327, 328, 329, 330, 331,
332, 0, 0, 150, 336, 0, 334, 0, 0, 0,
2013-11-20 20:56:26 +04:00
324, 325, 151, 152, 153, 326, 361, 328, 329, 362,
331, 332, 0, 0, 0, 509, 0, 334, 157, 158,
0, 159, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 162, 0, 0, 144, 145, 146, 147, 148,
116, 117, 118, 119, 120, 121, 324, 325, 0, 0,
0, 326, 327, 328, 329, 330, 331, 332, 150, 0,
0, 358, 0, 334, 0, 324, 325, 151, 152, 153,
326, 361, 328, 329, 362, 331, 332, 0, 0, 0,
0, 0, 334, 157, 158, 200, 159, 0, 0, 0,
0, 0, 0, 0, 0, 0, 201, 0, 0, 162,
0, 0, 0, 0, 0, 0, 202, 203, 144, 145,
146, 147, 148, 116, 117, 118, 119, 120, 121, 0,
0, 0, 324, 325, 0, 150, 0, 326, 327, 328,
329, 330, 331, 332, 151, 152, 153, 368, 154, 334,
0, 155, 0, 0, 0, 0, 0, 204, 0, 0,
157, 158, 0, 159, 0, 0, 0, 190, 144, 145,
146, 147, 148, 116, 117, 118, 119, 120, 121, 0,
0, 0, 162, 0, 0, 0, 0, 0, 144, 145,
146, 147, 148, 116, 117, 118, 119, 120, 121, 0,
0, 0, 0, 0, 0, 324, 325, 0, 150, 0,
326, 327, 328, 329, 330, 331, 332, 151, 152, 153,
378, 154, 334, 0, 155, 0, 0, 0, 0, 0,
191, 0, 162, 157, 158, 0, 159, 144, 145, 146,
147, 148, 116, 117, 118, 119, 120, 121, 0, 0,
0, 0, 162, 0, 0, 324, 325, 0, 150, 0,
326, 327, 328, 329, 330, 331, 332, 151, 152, 153,
383, 154, 334, 0, 163, 0, 0, 0, 150, 0,
164, 0, 0, 157, 158, 0, 159, 151, 152, 153,
0, 154, 0, 0, 155, 0, 0, 0, 0, 0,
228, 162, 0, 157, 158, 0, 159, 144, 145, 146,
147, 148, 116, 117, 118, 119, 120, 121, 0, 0,
0, 0, 0, 0, 324, 325, 0, 150, 0, 326,
327, 328, 329, 330, 331, 332, 151, 152, 153, 384,
154, 334, 0, 155, 0, 0, 0, 0, 0, 356,
0, 0, 157, 158, 0, 159, 144, 145, 146, 147,
148, 116, 117, 118, 119, 120, 121, 0, 0, 0,
2013-11-20 20:56:26 +04:00
0, 162, 0, 0, 0, 0, 144, 145, 146, 147,
148, 116, 117, 118, 119, 120, 121, 0, 0, 0,
2013-11-20 20:56:26 +04:00
0, 0, 0, 0, 324, 325, 0, 150, 0, 326,
327, 328, 329, 330, 331, 332, 151, 152, 153, 391,
154, 334, 0, 155, 0, 0, 0, 0, 0, 369,
162, 0, 157, 158, 0, 159, 144, 145, 146, 147,
148, 116, 117, 118, 119, 120, 121, 0, 0, 0,
2013-11-20 20:56:26 +04:00
162, 0, 0, 324, 325, 0, 150, 0, 326, 327,
328, 329, 330, 331, 332, 151, 152, 153, 399, 154,
334, 0, 155, 0, 0, 0, 150, 0, 395, 0,
0, 157, 158, 0, 159, 151, 152, 153, 0, 154,
0, 0, 155, 0, 0, 0, 0, 0, 512, 0,
162, 157, 158, 0, 159, 128, 129, 130, 131, 132,
116, 117, 118, 119, 120, 121, 0, 0, 0, 0,
0, 0, 0, 324, 325, 0, 150, 0, 326, 327,
328, 329, 330, 331, 332, 151, 152, 153, 400, 154,
334, 0, 155, 0, 0, 0, 0, 0, 0, 0,
0, 157, 158, 0, 159, 128, 129, 130, 131, 132,
116, 117, 118, 119, 120, 121, 324, 325, 0, 133,
0, 326, 327, 328, 329, 330, 331, 332, 0, 324,
325, 447, 0, 334, 326, 327, 328, 329, 330, 331,
332, 0, 324, 325, 492, 134, 334, 326, 327, 328,
329, 330, 331, 332, 135, 136, 137, 503, 138, 334,
0, 0, 0, 0, 0, 0, 0, 139, 0, 133,
140, 141, 324, 325, 0, 0, 0, 326, 327, 328,
329, 330, 331, 332, 0, 0, 0, 504, 0, 334,
0, 0, 308, 309, 0, 134, 0, 310, 311, 312,
313, 314, 315, 316, 135, 136, 137, 289, 138, 317,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2013-11-20 20:56:26 +04:00
140, 141, 0, 0, 1, 2, 3, 4, 0, 5,
6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
0, 16, 17, 18, 19, 20, 0, 0, 0, 0,
0, 0, 0, 0, 0, 21, 22, 23, 24, 0,
0, 25, 26, 27, 0, 28, 0, 29, 0, 0,
30, 0, 31, 32, 0, 0, 33, 34, 35, 36,
37, 0, 0, 38, 39, 40, 41, 42, 43, 44,
45, 0, 0, 46, 47, 0, 48, 0, 49, 50,
0, 51, 52, 53, 0, 0, 1, 2, 3, 4,
0, 5, 6, 7, 8, 9, 10, 11, 12, 13,
14, 15, 54, 16, 17, 18, 19, 20, 0, 0,
0, 0, 0, 0, 0, 0, 0, 21, 22, 23,
24, 0, 0, 25, 26, 27, 0, 28, 0, 29,
0, 0, 30, 0, 31, 32, 0, 0, 33, 34,
35, 36, 37, 0, 0, 38, 39, 40, 41, 42,
43, 44, 45, 0, 0, 46, 47, 0, 48, 0,
49, 50, 0, 51, 52, 53, 0, 0, 241, 242,
243, 244, 0, 245, 246, 247, 248, 249, 250, 251,
252, 253, 14, 15, 54, 254, 255, 256, 257, 258,
0, 0, 0, 0, 0, 0, 0, 0, 0, 259,
260, 261, 262, 324, 325, 263, 264, 265, 326, 327,
328, 329, 330, 331, 332, 0, 266, 267, 511, 0,
334, 268, 269, 270, 271, 0, 0, 272, 273, 274,
275, 276, 277, 278, 279, 0, 0, 280, 281, 0,
282, 0, 0, 324, 325, 283, 284, 285, 326, 327,
328, 329, 330, 331, 332, 0, 0, 0, 514, 0,
334, 0, 324, 325, 0, 0, 286, 326, 327, 328,
329, 330, 331, 332, 0, 324, 325, 515, 0, 334,
326, 327, 328, 329, 330, 331, 332, 0, 324, 325,
516, 0, 334, 326, 327, 328, 329, 330, 331, 332,
0, 324, 325, 517, 0, 334, 326, 327, 328, 329,
330, 331, 332, 0, 324, 325, 518, 0, 334, 326,
327, 328, 329, 330, 331, 332, 0, 324, 325, 519,
0, 334, 326, 327, 328, 329, 330, 331, 332, 0,
324, 325, 520, 0, 334, 326, 327, 328, 329, 330,
331, 332, 0, 324, 325, 521, 0, 334, 326, 327,
328, 329, 330, 331, 332, 0, 324, 325, 522, 0,
334, 326, 327, 328, 329, 330, 331, 332, 0, 324,
325, 530, 0, 334, 326, 327, 328, 329, 330, 331,
332, 0, 324, 325, 531, 0, 334, 326, 327, 328,
329, 330, 331, 332, 0, 324, 325, 532, 0, 334,
326, 327, 328, 329, 330, 331, 332, 0, 324, 325,
534, 0, 334, 326, 327, 328, 329, 330, 331, 332,
0, 324, 325, 535, 0, 334, 326, 327, 328, 329,
330, 331, 332, 0, 324, 325, 536, 0, 334, 326,
2013-11-20 20:56:26 +04:00
327, 328, 329, 330, 331, 332, 0, 324, 325, 537,
0, 334, 326, 327, 328, 329, 330, 331, 332, 0,
308, 309, 0, 0, 334, 310, 311, 312, 313, 314,
315, 316, 0, 0, 0, 523
};
2006-10-18 22:23:18 +04:00
#define yypact_value_is_default(Yystate) \
(!!((Yystate) == (-140)))
2013-01-28 21:53:50 +04:00
#define yytable_value_is_error(Yytable_value) \
2013-01-28 21:53:50 +04:00
YYID (0)
static const yytype_int16 yycheck[] =
2006-10-18 22:23:18 +04:00
{
7, 8, 4, 138, 6, 140, 141, 36, 37, 68,
115, 115, 117, 16, 61, 62, 17, 24, 46, 67,
27, 115, 67, 30, 31, 67, 33, 34, 67, 67,
31, 115, 39, 40, 173, 174, 175, 67, 45, 98,
15, 16, 90, 50, 51, 115, 53, 93, 115, 93,
93, 115, 93, 3, 4, 5, 6, 7, 8, 9,
10, 11, 12, 13, 67, 93, 93, 68, 93, 99,
115, 115, 115, 115, 115, 115, 115, 115, 115, 100,
2013-11-20 20:56:26 +04:00
101, 115, 115, 84, 85, 115, 67, 115, 109, 110,
111, 100, 101, 115, 123, 98, 105, 106, 107, 108,
109, 110, 111, 115, 67, 59, 93, 57, 117, 115,
115, 120, 115, 117, 115, 65, 115, 115, 115, 67,
116, 116, 116, 116, 116, 3, 4, 5, 6, 7,
8, 9, 10, 11, 12, 13, 138, 116, 140, 141,
116, 67, 116, 116, 115, 115, 115, 154, 155, 115,
2013-11-20 20:56:26 +04:00
157, 158, 159, 103, 104, 115, 163, 3, 4, 5,
6, 7, 8, 9, 10, 11, 12, 13, 115, 115,
115, 115, 201, 308, 309, 310, 311, 312, 313, 314,
315, 316, 317, 190, 115, 115, 115, 194, 195, 67,
115, 52, 116, 200, 115, 115, 115, 115, 205, 115,
2013-11-20 20:56:26 +04:00
100, 101, 209, 115, 343, 115, 345, 346, 347, 109,
110, 111, 115, 115, 115, 93, 223, 117, 225, 226,
2013-11-20 20:56:26 +04:00
115, 67, 115, 115, 102, 103, 104, 234, 106, 115,
115, 109, 115, 115, 115, 100, 101, 115, 115, 115,
118, 119, 115, 121, 109, 110, 111, 93, 115, 115,
93, 115, 117, 115, 100, 101, 102, 103, 104, 105,
106, 107, 108, 109, 110, 111, 115, 115, 115, 115,
115, 117, 118, 119, 115, 121, 115, 115, 115, 115,
115, 115, 115, 115, 115, 115, 115, 115, 295, 296,
297, 298, 299, 300, 115, 302, 303, 304, 115, 115,
115, 115, 115, 115, 115, 115, 308, 309, 310, 311,
312, 313, 314, 315, 316, 317, 115, 324, 325, 326,
327, 328, 329, 330, 331, 332, 115, 334, 3, 4,
5, 6, 7, 8, 9, 10, 11, 12, 13, 115,
14, 115, 115, 115, 115, 115, 115, 115, 115, 115,
115, 25, 115, 360, 361, 362, 363, 115, 115, 33,
115, 115, 115, 370, 115, 115, 40, 41, 42, 43,
44, 45, 55, 47, -1, -1, -1, -1, -1, -1,
387, -1, 389, 390, -1, -1, -1, -1, -1, -1,
397, -1, 67, 3, 4, 5, 6, 7, 8, 9,
10, 11, 12, 13, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, 88, -1, -1, -1, 93, -1,
2013-11-20 20:56:26 +04:00
-1, -1, -1, 97, -1, 100, 101, 102, 103, 104,
105, 106, 107, 108, 109, 110, 111, -1, -1, -1,
115, -1, 117, 118, 119, -1, 121, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, 67, 3, 4,
2013-11-20 20:56:26 +04:00
5, 6, 7, 8, 9, 10, 11, 12, 13, 100,
101, -1, -1, -1, 105, 106, 107, 108, 109, 110,
111, -1, -1, 93, -1, -1, -1, -1, -1, 120,
100, 101, 102, 103, 104, 105, 106, 107, 108, 109,
110, 111, -1, -1, -1, 115, -1, 117, 118, 119,
-1, 121, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, 67, 3, 4, 5, 6, 7, 8, 9,
2013-11-20 20:56:26 +04:00
10, 11, 12, 13, 100, 101, -1, -1, -1, 105,
106, 107, 108, 109, 110, 111, -1, -1, 93, 115,
-1, 117, -1, -1, -1, 100, 101, 102, 103, 104,
105, 106, 107, 108, 109, 110, 111, -1, -1, -1,
115, -1, 117, 118, 119, -1, 121, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, 67, 3, 4,
2013-11-20 20:56:26 +04:00
5, 6, 7, 8, 9, 10, 11, 12, 13, 100,
101, -1, -1, -1, 105, 106, 107, 108, 109, 110,
111, -1, -1, 93, 115, -1, 117, -1, -1, -1,
100, 101, 102, 103, 104, 105, 106, 107, 108, 109,
110, 111, -1, -1, -1, 115, -1, 117, 118, 119,
-1, 121, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, 67, -1, -1, 3, 4, 5, 6, 7,
8, 9, 10, 11, 12, 13, 100, 101, -1, -1,
-1, 105, 106, 107, 108, 109, 110, 111, 93, -1,
-1, 115, -1, 117, -1, 100, 101, 102, 103, 104,
105, 106, 107, 108, 109, 110, 111, -1, -1, -1,
-1, -1, 117, 118, 119, 53, 121, -1, -1, -1,
-1, -1, -1, -1, -1, -1, 64, -1, -1, 67,
-1, -1, -1, -1, -1, -1, 74, 75, 3, 4,
5, 6, 7, 8, 9, 10, 11, 12, 13, -1,
-1, -1, 100, 101, -1, 93, -1, 105, 106, 107,
108, 109, 110, 111, 102, 103, 104, 115, 106, 117,
-1, 109, -1, -1, -1, -1, -1, 115, -1, -1,
118, 119, -1, 121, -1, -1, -1, 52, 3, 4,
5, 6, 7, 8, 9, 10, 11, 12, 13, -1,
-1, -1, 67, -1, -1, -1, -1, -1, 3, 4,
5, 6, 7, 8, 9, 10, 11, 12, 13, -1,
-1, -1, -1, -1, -1, 100, 101, -1, 93, -1,
105, 106, 107, 108, 109, 110, 111, 102, 103, 104,
115, 106, 117, -1, 109, -1, -1, -1, -1, -1,
115, -1, 67, 118, 119, -1, 121, 3, 4, 5,
6, 7, 8, 9, 10, 11, 12, 13, -1, -1,
-1, -1, 67, -1, -1, 100, 101, -1, 93, -1,
105, 106, 107, 108, 109, 110, 111, 102, 103, 104,
115, 106, 117, -1, 109, -1, -1, -1, 93, -1,
115, -1, -1, 118, 119, -1, 121, 102, 103, 104,
-1, 106, -1, -1, 109, -1, -1, -1, -1, -1,
115, 67, -1, 118, 119, -1, 121, 3, 4, 5,
6, 7, 8, 9, 10, 11, 12, 13, -1, -1,
-1, -1, -1, -1, 100, 101, -1, 93, -1, 105,
106, 107, 108, 109, 110, 111, 102, 103, 104, 115,
106, 117, -1, 109, -1, -1, -1, -1, -1, 115,
-1, -1, 118, 119, -1, 121, 3, 4, 5, 6,
7, 8, 9, 10, 11, 12, 13, -1, -1, -1,
2013-11-20 20:56:26 +04:00
-1, 67, -1, -1, -1, -1, 3, 4, 5, 6,
7, 8, 9, 10, 11, 12, 13, -1, -1, -1,
2013-11-20 20:56:26 +04:00
-1, -1, -1, -1, 100, 101, -1, 93, -1, 105,
106, 107, 108, 109, 110, 111, 102, 103, 104, 115,
106, 117, -1, 109, -1, -1, -1, -1, -1, 115,
67, -1, 118, 119, -1, 121, 3, 4, 5, 6,
7, 8, 9, 10, 11, 12, 13, -1, -1, -1,
2013-11-20 20:56:26 +04:00
67, -1, -1, 100, 101, -1, 93, -1, 105, 106,
107, 108, 109, 110, 111, 102, 103, 104, 115, 106,
117, -1, 109, -1, -1, -1, 93, -1, 115, -1,
-1, 118, 119, -1, 121, 102, 103, 104, -1, 106,
-1, -1, 109, -1, -1, -1, -1, -1, 115, -1,
67, 118, 119, -1, 121, 3, 4, 5, 6, 7,
8, 9, 10, 11, 12, 13, -1, -1, -1, -1,
-1, -1, -1, 100, 101, -1, 93, -1, 105, 106,
107, 108, 109, 110, 111, 102, 103, 104, 115, 106,
117, -1, 109, -1, -1, -1, -1, -1, -1, -1,
-1, 118, 119, -1, 121, 3, 4, 5, 6, 7,
8, 9, 10, 11, 12, 13, 100, 101, -1, 67,
-1, 105, 106, 107, 108, 109, 110, 111, -1, 100,
101, 115, -1, 117, 105, 106, 107, 108, 109, 110,
111, -1, 100, 101, 115, 93, 117, 105, 106, 107,
108, 109, 110, 111, 102, 103, 104, 115, 106, 117,
-1, -1, -1, -1, -1, -1, -1, 115, -1, 67,
118, 119, 100, 101, -1, -1, -1, 105, 106, 107,
108, 109, 110, 111, -1, -1, -1, 115, -1, 117,
-1, -1, 100, 101, -1, 93, -1, 105, 106, 107,
108, 109, 110, 111, 102, 103, 104, 0, 106, 117,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
2013-11-20 20:56:26 +04:00
118, 119, -1, -1, 17, 18, 19, 20, -1, 22,
23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
-1, 34, 35, 36, 37, 38, -1, -1, -1, -1,
-1, -1, -1, -1, -1, 48, 49, 50, 51, -1,
-1, 54, 55, 56, -1, 58, -1, 60, -1, -1,
63, -1, 65, 66, -1, -1, 69, 70, 71, 72,
73, -1, -1, 76, 77, 78, 79, 80, 81, 82,
83, -1, -1, 86, 87, -1, 89, -1, 91, 92,
-1, 94, 95, 96, -1, -1, 17, 18, 19, 20,
-1, 22, 23, 24, 25, 26, 27, 28, 29, 30,
2013-11-20 20:56:26 +04:00
31, 32, 115, 34, 35, 36, 37, 38, -1, -1,
-1, -1, -1, -1, -1, -1, -1, 48, 49, 50,
2013-11-20 20:56:26 +04:00
51, -1, -1, 54, 55, 56, -1, 58, -1, 60,
-1, -1, 63, -1, 65, 66, -1, -1, 69, 70,
71, 72, 73, -1, -1, 76, 77, 78, 79, 80,
81, 82, 83, -1, -1, 86, 87, -1, 89, -1,
2013-11-20 20:56:26 +04:00
91, 92, -1, 94, 95, 96, -1, -1, 17, 18,
19, 20, -1, 22, 23, 24, 25, 26, 27, 28,
29, 30, 31, 32, 115, 34, 35, 36, 37, 38,
-1, -1, -1, -1, -1, -1, -1, -1, -1, 48,
49, 50, 51, 100, 101, 54, 55, 56, 105, 106,
107, 108, 109, 110, 111, -1, 65, 66, 115, -1,
117, 70, 71, 72, 73, -1, -1, 76, 77, 78,
79, 80, 81, 82, 83, -1, -1, 86, 87, -1,
89, -1, -1, 100, 101, 94, 95, 96, 105, 106,
107, 108, 109, 110, 111, -1, -1, -1, 115, -1,
117, -1, 100, 101, -1, -1, 115, 105, 106, 107,
108, 109, 110, 111, -1, 100, 101, 115, -1, 117,
105, 106, 107, 108, 109, 110, 111, -1, 100, 101,
115, -1, 117, 105, 106, 107, 108, 109, 110, 111,
-1, 100, 101, 115, -1, 117, 105, 106, 107, 108,
109, 110, 111, -1, 100, 101, 115, -1, 117, 105,
106, 107, 108, 109, 110, 111, -1, 100, 101, 115,
-1, 117, 105, 106, 107, 108, 109, 110, 111, -1,
100, 101, 115, -1, 117, 105, 106, 107, 108, 109,
110, 111, -1, 100, 101, 115, -1, 117, 105, 106,
107, 108, 109, 110, 111, -1, 100, 101, 115, -1,
117, 105, 106, 107, 108, 109, 110, 111, -1, 100,
101, 115, -1, 117, 105, 106, 107, 108, 109, 110,
111, -1, 100, 101, 115, -1, 117, 105, 106, 107,
108, 109, 110, 111, -1, 100, 101, 115, -1, 117,
105, 106, 107, 108, 109, 110, 111, -1, 100, 101,
115, -1, 117, 105, 106, 107, 108, 109, 110, 111,
-1, 100, 101, 115, -1, 117, 105, 106, 107, 108,
109, 110, 111, -1, 100, 101, 115, -1, 117, 105,
106, 107, 108, 109, 110, 111, -1, 100, 101, 115,
-1, 117, 105, 106, 107, 108, 109, 110, 111, -1,
100, 101, -1, -1, 117, 105, 106, 107, 108, 109,
110, 111, -1, -1, -1, 115
2006-10-18 22:23:18 +04:00
};
/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
symbol of state STATE-NUM. */
static const yytype_uint8 yystos[] =
2006-10-18 22:23:18 +04:00
{
0, 17, 18, 19, 20, 22, 23, 24, 25, 26,
27, 28, 29, 30, 31, 32, 34, 35, 36, 37,
38, 48, 49, 50, 51, 54, 55, 56, 58, 60,
63, 65, 66, 69, 70, 71, 72, 73, 76, 77,
78, 79, 80, 81, 82, 83, 86, 87, 89, 91,
2013-11-20 20:56:26 +04:00
92, 94, 95, 96, 115, 123, 124, 126, 128, 129,
130, 131, 132, 133, 134, 135, 136, 137, 138, 139,
140, 141, 142, 143, 144, 145, 146, 147, 148, 149,
150, 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, 115, 46, 93, 115,
115, 3, 4, 5, 6, 7, 8, 9, 10, 11,
12, 13, 57, 65, 103, 104, 127, 115, 3, 4,
5, 6, 7, 67, 93, 102, 103, 104, 106, 115,
118, 119, 127, 177, 3, 4, 5, 6, 7, 67,
93, 102, 103, 104, 106, 109, 115, 118, 119, 121,
127, 178, 67, 109, 115, 178, 93, 93, 93, 14,
25, 33, 40, 41, 42, 43, 44, 45, 47, 88,
2013-11-20 20:56:26 +04:00
97, 115, 115, 115, 115, 115, 115, 115, 115, 115,
52, 115, 178, 67, 67, 178, 59, 61, 62, 178,
53, 64, 74, 75, 115, 178, 68, 98, 178, 178,
15, 16, 125, 125, 125, 115, 178, 178, 115, 115,
93, 115, 17, 31, 68, 84, 85, 115, 115, 178,
16, 67, 98, 115, 67, 90, 67, 115, 115, 178,
178, 17, 18, 19, 20, 22, 23, 24, 25, 26,
27, 28, 29, 30, 34, 35, 36, 37, 38, 48,
49, 50, 51, 54, 55, 56, 65, 66, 70, 71,
72, 73, 76, 77, 78, 79, 80, 81, 82, 83,
2013-11-20 20:56:26 +04:00
86, 87, 89, 94, 95, 96, 115, 126, 178, 0,
124, 115, 93, 93, 115, 116, 116, 116, 116, 116,
116, 125, 116, 116, 116, 177, 177, 177, 100, 101,
105, 106, 107, 108, 109, 110, 111, 117, 115, 178,
178, 178, 178, 178, 100, 101, 105, 106, 107, 108,
109, 110, 111, 115, 117, 178, 115, 115, 115, 115,
115, 115, 115, 151, 178, 151, 151, 151, 115, 115,
115, 67, 115, 67, 99, 115, 115, 178, 115, 67,
2013-11-20 20:56:26 +04:00
178, 106, 109, 178, 115, 93, 115, 115, 115, 115,
178, 125, 115, 116, 115, 178, 115, 115, 115, 178,
115, 115, 115, 115, 115, 115, 115, 178, 115, 178,
178, 115, 115, 115, 115, 115, 178, 67, 115, 115,
115, 115, 115, 115, 115, 115, 115, 115, 115, 115,
115, 115, 115, 115, 115, 115, 115, 115, 115, 115,
115, 115, 115, 115, 115, 115, 115, 115, 115, 115,
115, 115, 115, 115, 115, 115, 115, 115, 115, 115,
115, 115, 115, 115, 115, 115, 115, 115, 115, 115,
178, 178, 178, 178, 178, 178, 115, 178, 178, 178,
120, 177, 177, 177, 177, 177, 177, 177, 177, 177,
177, 120, 178, 178, 178, 178, 178, 178, 178, 178,
178, 178, 115, 151, 151, 151, 151, 115, 67, 115,
67, 115, 115, 115, 178, 178, 178, 178, 115, 115,
178, 115, 93, 115, 115, 115, 178, 115, 178, 115,
178, 115, 115, 178, 115, 115, 115, 115, 115, 115,
115, 115, 115, 115, 115, 115, 115, 115, 115, 115,
115, 115, 115, 115, 115, 115, 115, 115
};
2006-10-18 22:23:18 +04:00
#define yyerrok (yyerrstatus = 0)
#define yyclearin (yychar = YYEMPTY)
#define YYEMPTY (-2)
#define YYEOF 0
#define YYACCEPT goto yyacceptlab
#define YYABORT goto yyabortlab
#define YYERROR goto yyerrorlab
2006-10-18 22:23:18 +04:00
/* Like YYERROR except do call yyerror. This remains here temporarily
to ease the transition to the new meaning of YYERROR, for GCC.
2011-03-04 23:35:24 +03:00
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. */
2006-10-18 22:23:18 +04:00
#define YYFAIL goto yyerrlab
2011-03-04 23:35:24 +03:00
#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
2006-10-18 22:23:18 +04:00
#define YYRECOVERING() (!!yyerrstatus)
#define YYBACKUP(Token, Value) \
do \
if (yychar == YYEMPTY) \
{ \
yychar = (Token); \
yylval = (Value); \
YYPOPSTACK (yylen); \
yystate = *yyssp; \
goto yybackup; \
} \
else \
{ \
yyerror (YY_("syntax error: cannot back up")); \
2006-10-18 22:23:18 +04:00
YYERROR; \
} \
while (YYID (0))
/* Error token number */
2006-10-18 22:23:18 +04:00
#define YYTERROR 1
#define YYERRCODE 256
2013-01-28 21:53:50 +04:00
/* This macro is provided for backward compatibility. */
#ifndef YY_LOCATION_PRINT
2013-01-28 21:53:50 +04:00
# define YY_LOCATION_PRINT(File, Loc) ((void) 0)
#endif
2006-10-18 22:23:18 +04:00
2006-10-18 22:23:18 +04:00
/* YYLEX -- calling `yylex' with the right arguments. */
#ifdef YYLEX_PARAM
# define YYLEX yylex (YYLEX_PARAM)
#else
2006-10-18 22:23:18 +04:00
# define YYLEX yylex ()
#endif
/* Enable debugging if requested. */
#if YYDEBUG
# ifndef YYFPRINTF
# include <stdio.h> /* INFRINGES ON USER NAME SPACE */
# define YYFPRINTF fprintf
# endif
# define YYDPRINTF(Args) \
do { \
if (yydebug) \
YYFPRINTF Args; \
} while (YYID (0))
2006-10-18 22:23:18 +04:00
# 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))
2006-10-18 22:23:18 +04:00
/*--------------------------------.
| 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
{
FILE *yyo = yyoutput;
YYUSE (yyo);
if (!yyvaluep)
return;
# ifdef YYPRINT
if (yytype < YYNTOKENS)
YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
# else
YYUSE (yyoutput);
# endif
YYUSE (yytype);
}
/*--------------------------------.
| 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, ")");
}
2006-10-18 22:23:18 +04:00
/*------------------------------------------------------------------.
| yy_stack_print -- Print the state stack from its BOTTOM up to its |
| TOP (included). |
2006-10-18 22:23:18 +04:00
`------------------------------------------------------------------*/
#if (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
2006-10-18 22:23:18 +04:00
static void
2011-03-04 23:35:24 +03:00
yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop)
#else
2006-10-18 22:23:18 +04:00
static void
2011-03-04 23:35:24 +03:00
yy_stack_print (yybottom, yytop)
yytype_int16 *yybottom;
yytype_int16 *yytop;
#endif
2006-10-18 22:23:18 +04:00
{
YYFPRINTF (stderr, "Stack now");
2011-03-04 23:35:24 +03:00
for (; yybottom <= yytop; yybottom++)
{
int yybot = *yybottom;
YYFPRINTF (stderr, " %d", yybot);
}
2006-10-18 22:23:18 +04:00
YYFPRINTF (stderr, "\n");
}
# define YY_STACK_PRINT(Bottom, Top) \
do { \
if (yydebug) \
yy_stack_print ((Bottom), (Top)); \
} while (YYID (0))
2006-10-18 22:23:18 +04:00
/*------------------------------------------------.
| Report that the YYRULE is going to be reduced. |
`------------------------------------------------*/
#if (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
2006-10-18 22:23:18 +04:00
static void
yy_reduce_print (YYSTYPE *yyvsp, int yyrule)
2006-10-18 22:23:18 +04:00
#else
static void
yy_reduce_print (yyvsp, yyrule)
YYSTYPE *yyvsp;
2006-10-18 22:23:18 +04:00
int yyrule;
#endif
{
int yynrhs = yyr2[yyrule];
2006-10-18 22:23:18 +04:00
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++)
{
2011-03-04 23:35:24 +03:00
YYFPRINTF (stderr, " $%d = ", yyi + 1);
yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi],
&(yyvsp[(yyi + 1) - (yynrhs)])
);
2011-03-04 23:35:24 +03:00
YYFPRINTF (stderr, "\n");
}
}
2006-10-18 22:23:18 +04:00
# define YY_REDUCE_PRINT(Rule) \
do { \
if (yydebug) \
yy_reduce_print (yyvsp, Rule); \
} while (YYID (0))
2006-10-18 22:23:18 +04:00
/* 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)
2006-10-18 22:23:18 +04:00
# 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
2006-10-18 22:23:18 +04:00
/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
if the built-in stack extension method is used).
2006-10-18 22:23:18 +04:00
Do not make this value too large; the results are undefined if
YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
2006-10-18 22:23:18 +04:00
evaluated with infinite-precision integer arithmetic. */
#ifndef YYMAXDEPTH
# define YYMAXDEPTH 10000
#endif
2006-10-18 22:23:18 +04:00
#if YYERROR_VERBOSE
# ifndef yystrlen
# if defined __GLIBC__ && defined _STRING_H
2006-10-18 22:23:18 +04:00
# define yystrlen strlen
# else
/* Return the length of YYSTR. */
#if (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
2006-10-18 22:23:18 +04:00
static YYSIZE_T
yystrlen (const char *yystr)
#else
static YYSIZE_T
2006-10-18 22:23:18 +04:00
yystrlen (yystr)
const char *yystr;
#endif
2006-10-18 22:23:18 +04:00
{
YYSIZE_T yylen;
for (yylen = 0; yystr[yylen]; yylen++)
2006-10-18 22:23:18 +04:00
continue;
return yylen;
2006-10-18 22:23:18 +04:00
}
# endif
# endif
# ifndef yystpcpy
# if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE
2006-10-18 22:23:18 +04:00
# 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)
2006-10-18 22:23:18 +04:00
static char *
yystpcpy (char *yydest, const char *yysrc)
#else
static char *
2006-10-18 22:23:18 +04:00
yystpcpy (yydest, yysrc)
char *yydest;
const char *yysrc;
#endif
2006-10-18 22:23:18 +04:00
{
char *yyd = yydest;
const char *yys = yysrc;
2006-10-18 22:23:18 +04:00
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: ;
}
2006-10-18 22:23:18 +04:00
if (! yyres)
return yystrlen (yystr);
return yystpcpy (yyres, yystr) - yyres;
}
# endif
2006-10-18 22:23:18 +04:00
2013-01-28 21:53:50 +04:00
/* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message
about the unexpected token YYTOKEN for the state stack whose top is
YYSSP.
2013-01-28 21:53:50 +04:00
Return 0 if *YYMSG was successfully written. Return 1 if *YYMSG is
not large enough to hold the message. In that case, also set
*YYMSG_ALLOC to the required number of bytes. Return 2 if the
required number of bytes is too large to store. */
static int
yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg,
yytype_int16 *yyssp, int yytoken)
{
YYSIZE_T yysize0 = yytnamerr (YY_NULL, yytname[yytoken]);
2013-01-28 21:53:50 +04:00
YYSIZE_T yysize = yysize0;
enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 };
/* Internationalized format string. */
const char *yyformat = YY_NULL;
2013-01-28 21:53:50 +04:00
/* Arguments of yyformat. */
char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
/* Number of reported tokens (one for the "unexpected", one per
"expected"). */
int yycount = 0;
/* There are many possibilities here to consider:
- Assume YYFAIL is not used. It's too flawed to consider. See
<http://lists.gnu.org/archive/html/bison-patches/2009-12/msg00024.html>
for details. YYERROR is fine as it does not invoke this
function.
- If this state is a consistent state with a default action, then
the only way this function was invoked is if the default action
is an error action. In that case, don't check for expected
tokens because there are none.
- The only way there can be no lookahead present (in yychar) is if
this state is a consistent state with a default action. Thus,
detecting the absence of a lookahead is sufficient to determine
that there is no unexpected or expected token to report. In that
case, just report a simple "syntax error".
- Don't assume there isn't a lookahead just because this state is a
consistent state with a default action. There might have been a
previous inconsistent state, consistent state with a non-default
action, or user semantic action that manipulated yychar.
- Of course, the expected token list depends on states to have
correct lookahead information, and it depends on the parser not
to perform extra reductions after fetching a lookahead from the
scanner and before detecting a syntax error. Thus, state merging
(from LALR or IELR) and default reductions corrupt the expected
token list. However, the list is correct for canonical LR with
one exception: it will still contain any token that will not be
accepted due to an error action in a later state.
*/
if (yytoken != YYEMPTY)
{
int yyn = yypact[*yyssp];
yyarg[yycount++] = yytname[yytoken];
if (!yypact_value_is_default (yyn))
{
/* Start YYX at -YYN if negative to avoid negative indexes in
YYCHECK. In other words, skip the first -YYN actions for
this state because they are default actions. */
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 yyx;
for (yyx = yyxbegin; yyx < yyxend; ++yyx)
if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR
&& !yytable_value_is_error (yytable[yyx + yyn]))
{
if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
{
yycount = 1;
yysize = yysize0;
break;
}
yyarg[yycount++] = yytname[yyx];
{
YYSIZE_T yysize1 = yysize + yytnamerr (YY_NULL, yytname[yyx]);
if (! (yysize <= yysize1
&& yysize1 <= YYSTACK_ALLOC_MAXIMUM))
return 2;
yysize = yysize1;
}
2013-01-28 21:53:50 +04:00
}
}
}
2012-03-10 21:18:43 +04:00
2013-01-28 21:53:50 +04:00
switch (yycount)
{
# define YYCASE_(N, S) \
case N: \
yyformat = S; \
break
YYCASE_(0, YY_("syntax error"));
YYCASE_(1, YY_("syntax error, unexpected %s"));
YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s"));
YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s"));
YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s"));
YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"));
# undef YYCASE_
}
{
YYSIZE_T yysize1 = yysize + yystrlen (yyformat);
if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM))
return 2;
yysize = yysize1;
}
2012-04-24 21:50:41 +04:00
2013-01-28 21:53:50 +04:00
if (*yymsg_alloc < yysize)
{
*yymsg_alloc = 2 * yysize;
if (! (yysize <= *yymsg_alloc
&& *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM))
*yymsg_alloc = YYSTACK_ALLOC_MAXIMUM;
return 1;
}
2013-01-28 21:53:50 +04:00
/* 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 = *yymsg;
int yyi = 0;
while ((*yyp = *yyformat) != '\0')
if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount)
{
yyp += yytnamerr (yyp, yyarg[yyi++]);
yyformat += 2;
}
else
{
yyp++;
yyformat++;
}
}
return 0;
2006-10-18 22:23:18 +04:00
}
#endif /* YYERROR_VERBOSE */
2006-10-18 22:23:18 +04:00
/*-----------------------------------------------.
| Release the memory associated to this symbol. |
`-----------------------------------------------*/
/*ARGSUSED*/
#if (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
2006-10-18 22:23:18 +04:00
static void
yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep)
2006-10-18 22:23:18 +04:00
#else
static void
yydestruct (yymsg, yytype, yyvaluep)
const char *yymsg;
2006-10-18 22:23:18 +04:00
int yytype;
YYSTYPE *yyvaluep;
#endif
2006-10-18 22:23:18 +04:00
{
YYUSE (yyvaluep);
if (!yymsg)
yymsg = "Deleting";
YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
2006-10-18 22:23:18 +04:00
YYUSE (yytype);
2006-10-18 22:23:18 +04:00
}
2013-01-28 21:53:50 +04:00
2006-10-18 22:23:18 +04:00
2011-03-04 23:35:24 +03:00
/* The lookahead symbol. */
2006-10-18 22:23:18 +04:00
int yychar;
#ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
# define YY_IGNORE_MAYBE_UNINITIALIZED_END
#endif
#ifndef YY_INITIAL_VALUE
# define YY_INITIAL_VALUE(Value) /* Nothing. */
#endif
2011-03-04 23:35:24 +03:00
/* The semantic value of the lookahead symbol. */
YYSTYPE yylval YY_INITIAL_VALUE(yyval_default);
2006-10-18 22:23:18 +04:00
/* Number of syntax errors so far. */
int yynerrs;
2013-01-28 21:53:50 +04:00
/*----------.
| yyparse. |
`----------*/
2006-10-18 22:23:18 +04:00
#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
2006-10-18 22:23:18 +04:00
#else /* ! YYPARSE_PARAM */
#if (defined __STDC__ || defined __C99__FUNC__ \
|| defined __cplusplus || defined _MSC_VER)
2006-10-18 22:23:18 +04:00
int
yyparse (void)
#else
int
yyparse ()
#endif
2006-10-18 22:23:18 +04:00
#endif
{
2011-03-04 23:35:24 +03:00
int yystate;
/* Number of tokens to shift before error messages enabled. */
int yyerrstatus;
2006-10-18 22:23:18 +04:00
2011-03-04 23:35:24 +03:00
/* The stacks and their tools:
`yyss': related to states.
`yyvs': related to semantic values.
2006-10-18 22:23:18 +04:00
Refer to the stacks through separate pointers, to allow yyoverflow
2011-03-04 23:35:24 +03:00
to reallocate them elsewhere. */
2006-10-18 22:23:18 +04:00
2011-03-04 23:35:24 +03:00
/* The state stack. */
yytype_int16 yyssa[YYINITDEPTH];
yytype_int16 *yyss;
yytype_int16 *yyssp;
2006-10-18 22:23:18 +04:00
2011-03-04 23:35:24 +03:00
/* The semantic value stack. */
YYSTYPE yyvsa[YYINITDEPTH];
YYSTYPE *yyvs;
YYSTYPE *yyvsp;
2006-10-18 22:23:18 +04:00
2011-03-04 23:35:24 +03:00
YYSIZE_T yystacksize;
2006-10-18 22:23:18 +04:00
2011-03-04 23:35:24 +03:00
int yyn;
int yyresult;
/* Lookahead token as an internal (translated) token number. */
int yytoken = 0;
2006-10-18 22:23:18 +04:00
/* The variables used to return semantic value and location from the
action routines. */
YYSTYPE yyval;
2011-03-04 23:35:24 +03:00
#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))
2006-10-18 22:23:18 +04:00
/* The number of symbols on the RHS of the reduced rule.
Keep to zero when no symbol should be popped. */
int yylen = 0;
2006-10-18 22:23:18 +04:00
yyssp = yyss = yyssa;
yyvsp = yyvs = yyvsa;
2011-03-04 23:35:24 +03:00
yystacksize = YYINITDEPTH;
2006-10-18 22:23:18 +04:00
YYDPRINTF ((stderr, "Starting parse\n"));
yystate = 0;
yyerrstatus = 0;
yynerrs = 0;
2011-03-04 23:35:24 +03:00
yychar = YYEMPTY; /* Cause a token to be read. */
2006-10-18 22:23:18 +04:00
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. */
2006-10-18 22:23:18 +04:00
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
2006-10-18 22:23:18 +04:00
these so that the &'s don't force the real ones into
memory. */
YYSTYPE *yyvs1 = yyvs;
yytype_int16 *yyss1 = yyss;
2006-10-18 22:23:18 +04:00
/* 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"),
2006-10-18 22:23:18 +04:00
&yyss1, yysize * sizeof (*yyssp),
&yyvs1, yysize * sizeof (*yyvsp),
&yystacksize);
yyss = yyss1;
yyvs = yyvs1;
}
#else /* no yyoverflow */
# ifndef YYSTACK_RELOCATE
goto yyexhaustedlab;
2006-10-18 22:23:18 +04:00
# else
/* Extend the stack our own way. */
if (YYMAXDEPTH <= yystacksize)
goto yyexhaustedlab;
2006-10-18 22:23:18 +04:00
yystacksize *= 2;
if (YYMAXDEPTH < yystacksize)
yystacksize = YYMAXDEPTH;
{
yytype_int16 *yyss1 = yyss;
2006-10-18 22:23:18 +04:00
union yyalloc *yyptr =
(union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
if (! yyptr)
goto yyexhaustedlab;
2011-03-04 23:35:24 +03:00
YYSTACK_RELOCATE (yyss_alloc, yyss);
YYSTACK_RELOCATE (yyvs_alloc, yyvs);
2006-10-18 22:23:18 +04:00
# 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;
}
2006-10-18 22:23:18 +04:00
YYDPRINTF ((stderr, "Entering state %d\n", yystate));
2011-03-04 23:35:24 +03:00
if (yystate == YYFINAL)
YYACCEPT;
2006-10-18 22:23:18 +04:00
goto yybackup;
/*-----------.
| yybackup. |
`-----------*/
yybackup:
/* Do appropriate processing given the current state. Read a
2011-03-04 23:35:24 +03:00
lookahead token if we need one and don't already have one. */
2006-10-18 22:23:18 +04:00
2011-03-04 23:35:24 +03:00
/* First try to decide what to do without reference to lookahead token. */
2006-10-18 22:23:18 +04:00
yyn = yypact[yystate];
2013-01-28 21:53:50 +04:00
if (yypact_value_is_default (yyn))
2006-10-18 22:23:18 +04:00
goto yydefault;
2011-03-04 23:35:24 +03:00
/* Not known => get a lookahead token if don't already have one. */
2006-10-18 22:23:18 +04:00
2011-03-04 23:35:24 +03:00
/* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */
2006-10-18 22:23:18 +04:00
if (yychar == YYEMPTY)
{
2006-10-18 22:23:18 +04:00
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);
2006-10-18 22:23:18 +04:00
}
/* If the proper action on seeing token YYTOKEN is to reduce or to
detect an error, take that action. */
yyn += yytoken;
if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
goto yydefault;
yyn = yytable[yyn];
if (yyn <= 0)
{
2013-01-28 21:53:50 +04:00
if (yytable_value_is_error (yyn))
goto yyerrlab;
2006-10-18 22:23:18 +04:00
yyn = -yyn;
goto yyreduce;
}
2006-10-18 22:23:18 +04:00
/* Count tokens shifted since error; after three, turn off error
status. */
if (yyerrstatus)
yyerrstatus--;
2011-03-04 23:35:24 +03:00
/* Shift the lookahead token. */
YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
2011-03-04 23:35:24 +03:00
/* Discard the shifted token. */
yychar = YYEMPTY;
2006-10-18 22:23:18 +04:00
yystate = yyn;
YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
*++yyvsp = yylval;
YY_IGNORE_MAYBE_UNINITIALIZED_END
2006-10-18 22:23:18 +04:00
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:
2006-10-18 22:23:18 +04:00
/* yyn is the number of a rule to reduce with. */
yylen = yyr2[yyn];
/* If YYLEN is nonzero, implement the default value of the action:
`$$ = $1'.
Otherwise, the following line sets YYVAL to garbage.
This behavior is undocumented and Bison
users should not rely upon it. Assigning to YYVAL
unconditionally makes the parser a bit smaller, and it avoids a
GCC warning that YYVAL may be used uninitialized. */
yyval = yyvsp[1-yylen];
YY_REDUCE_PRINT (yyn);
switch (yyn)
{
case 53:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 194 "parser.y"
2006-10-18 22:23:18 +04:00
{
}
2006-10-18 22:23:18 +04:00
break;
case 55:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 201 "parser.y"
{ (yyval.bval)=(yyvsp[(1) - (1)].bval); }
2006-10-18 22:23:18 +04:00
break;
case 57:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 207 "parser.y"
{ (yyval.sval)=(yyvsp[(1) - (1)].sval); }
break;
case 63:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 217 "parser.y"
{ (yyval.uval)=(yyvsp[(1) - (1)].uval); }
2006-10-18 22:23:18 +04:00
break;
case 64:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 222 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_timebp_command(0, (yyvsp[(2) - (3)].uval));
free((yyvsp[(1) - (3)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 65:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 227 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_timebp_command(1, (yyvsp[(2) - (3)].uval));
free((yyvsp[(1) - (3)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 66:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 235 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_modebp_command();
free((yyvsp[(1) - (2)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 67:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 243 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_vmexitbp_command();
free((yyvsp[(1) - (2)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 68:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 251 "parser.y"
2011-05-06 12:29:23 +04:00
{
bx_dbg_show_command((yyvsp[(2) - (3)].sval));
free((yyvsp[(1) - (3)].sval)); free((yyvsp[(2) - (3)].sval));
2011-05-06 12:29:23 +04:00
}
break;
case 69:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 256 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_show_command("off");
free((yyvsp[(1) - (3)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 70:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 261 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_show_param_command((yyvsp[(2) - (3)].sval));
free((yyvsp[(1) - (3)].sval)); free((yyvsp[(2) - (3)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 71:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 266 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_show_command(0);
free((yyvsp[(1) - (2)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 72:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 274 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_xlate_address((yyvsp[(2) - (3)].uval));
free((yyvsp[(1) - (3)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 73:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 282 "parser.y"
2013-01-28 21:53:50 +04:00
{
bx_dbg_tlb_lookup((yyvsp[(2) - (3)].uval));
free((yyvsp[(1) - (3)].sval));
}
break;
case 74:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 290 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_ptime_command();
free((yyvsp[(1) - (2)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 75:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 298 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_trace_command((yyvsp[(2) - (3)].bval));
free((yyvsp[(1) - (3)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 76:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 306 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_trace_reg_command((yyvsp[(2) - (3)].bval));
free((yyvsp[(1) - (3)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 77:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 314 "parser.y"
{
bx_dbg_trace_mem_command((yyvsp[(2) - (3)].bval));
free((yyvsp[(1) - (3)].sval));
}
break;
case 78:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 322 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_print_stack_command(16);
free((yyvsp[(1) - (2)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 79:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 327 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_print_stack_command((yyvsp[(2) - (3)].uval));
free((yyvsp[(1) - (3)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 80:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 335 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_watchpoint_continue(0);
free((yyvsp[(1) - (3)].sval)); free((yyvsp[(2) - (3)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 81:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 340 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_watchpoint_continue(1);
free((yyvsp[(1) - (3)].sval)); free((yyvsp[(2) - (3)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 82:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 345 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_print_watchpoints();
free((yyvsp[(1) - (2)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 83:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 350 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_watch(0, (yyvsp[(3) - (4)].uval), 1); /* BX_READ */
free((yyvsp[(1) - (4)].sval)); free((yyvsp[(2) - (4)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 84:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 355 "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 85:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 360 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_watch(1, (yyvsp[(3) - (4)].uval), 1); /* BX_WRITE */
free((yyvsp[(1) - (4)].sval)); free((yyvsp[(2) - (4)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 86:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 365 "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 87:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 370 "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 88:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 375 "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 89:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 380 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_unwatch_all();
free((yyvsp[(1) - (2)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 90:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 385 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_unwatch((yyvsp[(2) - (3)].uval));
free((yyvsp[(1) - (3)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 91:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 393 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_symbol_command((yyvsp[(2) - (3)].sval), 0, 0);
free((yyvsp[(1) - (3)].sval)); free((yyvsp[(2) - (3)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 92:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 398 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_symbol_command((yyvsp[(2) - (4)].sval), 0, (yyvsp[(3) - (4)].uval));
free((yyvsp[(1) - (4)].sval)); free((yyvsp[(2) - (4)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 93:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 403 "parser.y"
2008-03-30 00:37:18 +03:00
{
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 94:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 408 "parser.y"
2006-10-18 22:23:18 +04:00
{
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));
}
2006-10-18 22:23:18 +04:00
break;
case 95:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 416 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_where_command();
free((yyvsp[(1) - (2)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 96:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 424 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_print_string_command((yyvsp[(2) - (3)].uval));
free((yyvsp[(1) - (3)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 97:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 432 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_continue_command();
free((yyvsp[(1) - (2)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 98:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 440 "parser.y"
2006-10-18 22:23:18 +04:00
{
2009-10-29 18:49:50 +03:00
bx_dbg_stepN_command(dbg_cpu, 1);
free((yyvsp[(1) - (2)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 99:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 445 "parser.y"
2006-10-18 22:23:18 +04:00
{
2009-10-29 18:49:50 +03:00
bx_dbg_stepN_command(dbg_cpu, (yyvsp[(2) - (3)].uval));
free((yyvsp[(1) - (3)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 100:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 450 "parser.y"
2009-10-29 18:49:50 +03:00
{
2009-11-13 00:06:41 +03:00
bx_dbg_stepN_command(-1, (yyvsp[(3) - (4)].uval));
2009-10-29 18:49:50 +03:00
free((yyvsp[(1) - (4)].sval)); free((yyvsp[(2) - (4)].sval));
}
break;
case 101:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 455 "parser.y"
2009-10-29 18:49:50 +03:00
{
bx_dbg_stepN_command((yyvsp[(2) - (4)].uval), (yyvsp[(3) - (4)].uval));
free((yyvsp[(1) - (4)].sval));
}
break;
case 102:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 463 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_step_over_command();
free((yyvsp[(1) - (2)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 103:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 471 "parser.y"
{
bx_dbg_set_auto_disassemble((yyvsp[(3) - (4)].bval));
free((yyvsp[(1) - (4)].sval)); free((yyvsp[(2) - (4)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 104:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 476 "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));
}
2006-10-18 22:23:18 +04:00
break;
case 105:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 481 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_set_reg8l_value((yyvsp[(2) - (5)].uval), (yyvsp[(4) - (5)].uval));
}
2006-10-18 22:23:18 +04:00
break;
case 106:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 485 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_set_reg8h_value((yyvsp[(2) - (5)].uval), (yyvsp[(4) - (5)].uval));
}
2006-10-18 22:23:18 +04:00
break;
case 107:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 489 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_set_reg16_value((yyvsp[(2) - (5)].uval), (yyvsp[(4) - (5)].uval));
}
2006-10-18 22:23:18 +04:00
break;
case 108:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 493 "parser.y"
{
bx_dbg_set_reg32_value((yyvsp[(2) - (5)].uval), (yyvsp[(4) - (5)].uval));
}
2006-10-18 22:23:18 +04:00
break;
case 109:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 497 "parser.y"
{
bx_dbg_set_reg64_value((yyvsp[(2) - (5)].uval), (yyvsp[(4) - (5)].uval));
}
2006-10-18 22:23:18 +04:00
break;
case 110:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 501 "parser.y"
{
bx_dbg_set_rip_value((yyvsp[(4) - (5)].uval));
}
break;
case 111:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 505 "parser.y"
{
bx_dbg_set_rip_value((yyvsp[(4) - (5)].uval));
}
break;
case 112:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 509 "parser.y"
{
bx_dbg_load_segreg((yyvsp[(2) - (5)].uval), (yyvsp[(4) - (5)].uval));
}
break;
case 113:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 516 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_vbreakpoint_command(bkAtIP, 0, 0);
free((yyvsp[(1) - (2)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 114:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 521 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_vbreakpoint_command(bkRegular, (yyvsp[(2) - (5)].uval), (yyvsp[(4) - (5)].uval));
free((yyvsp[(1) - (5)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 115:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 526 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_lbreakpoint_command(bkAtIP, 0);
free((yyvsp[(1) - (2)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 116:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 531 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_lbreakpoint_command(bkRegular, (yyvsp[(2) - (3)].uval));
free((yyvsp[(1) - (3)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 117:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 536 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_lbreakpoint_symbol_command((yyvsp[(2) - (3)].sval));
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 118:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 541 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_pbreakpoint_command(bkAtIP, 0);
free((yyvsp[(1) - (2)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 119:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 546 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_pbreakpoint_command(bkRegular, (yyvsp[(2) - (3)].uval));
free((yyvsp[(1) - (3)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 120:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 551 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_pbreakpoint_command(bkRegular, (yyvsp[(3) - (4)].uval));
free((yyvsp[(1) - (4)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 121:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 559 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_info_bpoints_command();
free((yyvsp[(1) - (2)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 122:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 567 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_info_symbols_command(0);
free((yyvsp[(1) - (2)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 123:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 572 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_info_symbols_command((yyvsp[(2) - (3)].sval));
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 124:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 580 "parser.y"
{
bx_dbg_info_bpoints_command();
free((yyvsp[(1) - (3)].sval)); free((yyvsp[(2) - (3)].sval));
}
break;
case 125:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 585 "parser.y"
2006-10-18 22:23:18 +04:00
{
2011-05-02 21:20:38 +04:00
bx_dbg_info_registers_command(-1);
free((yyvsp[(1) - (3)].sval)); free((yyvsp[(2) - (3)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 126:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 590 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_info_idt_command((yyvsp[(3) - (5)].uval), (yyvsp[(4) - (5)].uval));
free((yyvsp[(1) - (5)].sval)); free((yyvsp[(2) - (5)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 127:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 595 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_info_ivt_command((yyvsp[(3) - (5)].uval), (yyvsp[(4) - (5)].uval));
free((yyvsp[(1) - (5)].sval)); free((yyvsp[(2) - (5)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 128:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 600 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_info_gdt_command((yyvsp[(3) - (5)].uval), (yyvsp[(4) - (5)].uval));
free((yyvsp[(1) - (5)].sval)); free((yyvsp[(2) - (5)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 129:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 605 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_info_ldt_command((yyvsp[(3) - (5)].uval), (yyvsp[(4) - (5)].uval));
free((yyvsp[(1) - (5)].sval)); free((yyvsp[(2) - (5)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 130:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 610 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_dump_table();
free((yyvsp[(1) - (3)].sval)); free((yyvsp[(2) - (3)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 131:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 615 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_info_tss_command();
free((yyvsp[(1) - (3)].sval)); free((yyvsp[(2) - (3)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 132:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 620 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_info_flags();
free((yyvsp[(1) - (3)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 133:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 625 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_info_linux_command();
free((yyvsp[(1) - (3)].sval)); free((yyvsp[(2) - (3)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 134:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 630 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_info_symbols_command(0);
free((yyvsp[(1) - (3)].sval)); free((yyvsp[(2) - (3)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 135:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 635 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_info_symbols_command((yyvsp[(3) - (4)].sval));
free((yyvsp[(1) - (4)].sval)); free((yyvsp[(2) - (4)].sval)); free((yyvsp[(3) - (4)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 136:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 640 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_info_device("", "");
free((yyvsp[(1) - (3)].sval)); free((yyvsp[(2) - (3)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 137:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 645 "parser.y"
{
bx_dbg_info_device((yyvsp[(3) - (4)].sval), "");
free((yyvsp[(1) - (4)].sval)); free((yyvsp[(2) - (4)].sval));
}
break;
case 138:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 650 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_info_device((yyvsp[(3) - (5)].sval), (yyvsp[(4) - (5)].sval));
free((yyvsp[(1) - (5)].sval)); free((yyvsp[(2) - (5)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 139:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 655 "parser.y"
{
bx_dbg_info_device((yyvsp[(3) - (4)].sval), "");
free((yyvsp[(1) - (4)].sval)); free((yyvsp[(2) - (4)].sval));
}
2006-10-18 22:23:18 +04:00
break;
2013-01-28 21:53:50 +04:00
case 140:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 660 "parser.y"
2008-03-30 00:37:18 +03:00
{
bx_dbg_info_device((yyvsp[(3) - (5)].sval), (yyvsp[(4) - (5)].sval));
free((yyvsp[(1) - (5)].sval)); free((yyvsp[(2) - (5)].sval));
2008-03-30 00:37:18 +03:00
}
break;
2013-01-28 21:53:50 +04:00
case 141:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 667 "parser.y"
{ (yyval.uval) = EMPTY_ARG; }
break;
case 143:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 672 "parser.y"
{
bx_dbg_info_registers_command(BX_INFO_GENERAL_PURPOSE_REGS);
free((yyvsp[(1) - (2)].sval));
}
break;
case 144:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 680 "parser.y"
{
bx_dbg_info_registers_command(BX_INFO_FPU_REGS);
free((yyvsp[(1) - (2)].sval));
}
2008-03-30 00:37:18 +03:00
break;
case 145:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 688 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_info_registers_command(BX_INFO_MMX_REGS);
free((yyvsp[(1) - (2)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 146:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 696 "parser.y"
{
bx_dbg_info_registers_command(BX_INFO_SSE_REGS);
free((yyvsp[(1) - (2)].sval));
}
break;
case 147:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 704 "parser.y"
2011-05-02 21:20:38 +04:00
{
bx_dbg_info_registers_command(BX_INFO_YMM_REGS);
2011-05-02 21:20:38 +04:00
free((yyvsp[(1) - (2)].sval));
}
break;
case 148:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 712 "parser.y"
{
bx_dbg_info_registers_command(BX_INFO_ZMM_REGS);
free((yyvsp[(1) - (2)].sval));
}
break;
case 149:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 720 "parser.y"
{
bx_dbg_info_segment_regs_command();
free((yyvsp[(1) - (2)].sval));
}
break;
case 150:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 728 "parser.y"
{
bx_dbg_info_control_regs_command();
free((yyvsp[(1) - (2)].sval));
}
break;
case 151:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 736 "parser.y"
{
bx_dbg_info_debug_regs_command();
free((yyvsp[(1) - (2)].sval));
}
break;
case 152:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 744 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_del_breakpoint_command((yyvsp[(2) - (3)].uval));
free((yyvsp[(1) - (3)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 153:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 752 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_en_dis_breakpoint_command((yyvsp[(2) - (3)].uval), 1);
free((yyvsp[(1) - (3)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 154:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 759 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_en_dis_breakpoint_command((yyvsp[(2) - (3)].uval), 0);
free((yyvsp[(1) - (3)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 155:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 767 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_quit_command();
free((yyvsp[(1) - (2)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 156:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 775 "parser.y"
2006-10-18 22:23:18 +04:00
{
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));
}
2006-10-18 22:23:18 +04:00
break;
case 157:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 780 "parser.y"
2006-10-18 22:23:18 +04:00
{
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));
}
2006-10-18 22:23:18 +04:00
break;
case 158:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 785 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_examine_command((yyvsp[(1) - (3)].sval), NULL,0, (yyvsp[(2) - (3)].uval), 1);
free((yyvsp[(1) - (3)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 159:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 790 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_examine_command((yyvsp[(1) - (2)].sval), NULL,0, 0, 0);
free((yyvsp[(1) - (2)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 160:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 798 "parser.y"
2006-10-18 22:23:18 +04:00
{
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));
}
2006-10-18 22:23:18 +04:00
break;
case 161:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 806 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_writemem_command((yyvsp[(2) - (5)].sval), (yyvsp[(3) - (5)].uval), (yyvsp[(4) - (5)].uval));
free((yyvsp[(1) - (5)].sval)); free((yyvsp[(2) - (5)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 162:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 814 "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 163:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 822 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_query_command((yyvsp[(2) - (3)].sval));
free((yyvsp[(1) - (3)].sval)); free((yyvsp[(2) - (3)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 164:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 830 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_take_command((yyvsp[(2) - (3)].sval), 1);
free((yyvsp[(1) - (3)].sval)); free((yyvsp[(2) - (3)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 165:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 835 "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 166:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 840 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_take_command((yyvsp[(2) - (3)].sval), 1);
free((yyvsp[(1) - (3)].sval)); free((yyvsp[(2) - (3)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 167:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 848 "parser.y"
{
bx_dbg_disassemble_current(NULL);
free((yyvsp[(1) - (2)].sval));
}
break;
case 168:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 853 "parser.y"
{
bx_dbg_disassemble_command(NULL, (yyvsp[(2) - (3)].uval), (yyvsp[(2) - (3)].uval));
free((yyvsp[(1) - (3)].sval));
}
break;
case 169:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 858 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_disassemble_command(NULL, (yyvsp[(2) - (4)].uval), (yyvsp[(3) - (4)].uval));
free((yyvsp[(1) - (4)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 170:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 863 "parser.y"
{
bx_dbg_disassemble_current((yyvsp[(2) - (3)].sval));
free((yyvsp[(1) - (3)].sval)); free((yyvsp[(2) - (3)].sval));
}
break;
case 171:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 868 "parser.y"
2006-10-18 22:23:18 +04:00
{
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));
}
2006-10-18 22:23:18 +04:00
break;
case 172:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 873 "parser.y"
2006-10-18 22:23:18 +04:00
{
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));
}
2006-10-18 22:23:18 +04:00
break;
case 173:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 878 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_disassemble_switch_mode();
free((yyvsp[(1) - (3)].sval)); free((yyvsp[(2) - (3)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 174:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 883 "parser.y"
{
bx_dbg_disassemble_hex_mode_switch((yyvsp[(3) - (4)].bval));
free((yyvsp[(1) - (4)].sval)); free((yyvsp[(2) - (4)].sval));
}
break;
case 175:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 888 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_set_disassemble_size((yyvsp[(4) - (5)].uval));
free((yyvsp[(1) - (5)].sval)); free((yyvsp[(2) - (5)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 176:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 896 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_instrument_command((yyvsp[(2) - (3)].sval));
free((yyvsp[(1) - (3)].sval)); free((yyvsp[(2) - (3)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 177:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 901 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_instrument_command((yyvsp[(2) - (3)].sval));
free((yyvsp[(1) - (3)].sval)); free((yyvsp[(2) - (3)].sval));
2006-05-21 20:48:05 +04:00
}
2006-10-18 22:23:18 +04:00
break;
case 178:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 909 "parser.y"
{
bx_dbg_doit_command((yyvsp[(2) - (3)].uval));
free((yyvsp[(1) - (3)].sval));
}
break;
case 179:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 917 "parser.y"
{
bx_dbg_crc_command((yyvsp[(2) - (4)].uval), (yyvsp[(3) - (4)].uval));
free((yyvsp[(1) - (4)].sval));
}
break;
case 180:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 925 "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 181:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 930 "parser.y"
2006-10-18 22:23:18 +04:00
{
dbg_printf("c|cont|continue - continue executing\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 182:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 935 "parser.y"
2006-10-18 22:23:18 +04:00
{
2009-10-29 18:49:50 +03:00
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));
}
2006-10-18 22:23:18 +04:00
break;
case 183:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 942 "parser.y"
2006-10-18 22:23:18 +04:00
{
2013-01-28 21:53:50 +04:00
dbg_printf("n|next|p - execute instruction stepping over subroutines\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 184:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 947 "parser.y"
{
2013-01-28 21:53:50 +04:00
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 185:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 952 "parser.y"
2006-10-18 22:23:18 +04:00
{
2013-01-28 21:53:50 +04:00
dbg_printf("lb|lbreak <addr> - set a linear address instruction breakpoint\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 186:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 957 "parser.y"
2006-10-18 22:23:18 +04:00
{
2013-01-28 21:53:50 +04:00
dbg_printf("p|pb|break|pbreak <addr> - set a physical address instruction breakpoint\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 187:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 962 "parser.y"
{
2013-01-28 21:53:50 +04:00
dbg_printf("d|del|delete <n> - delete a breakpoint\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 188:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 967 "parser.y"
2006-10-18 22:23:18 +04:00
{
2013-01-28 21:53:50 +04:00
dbg_printf("bpe <n> - enable a breakpoint\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 189:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 972 "parser.y"
{
2013-01-28 21:53:50 +04:00
dbg_printf("bpd <n> - disable a breakpoint\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 190:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 977 "parser.y"
2006-10-18 22:23:18 +04:00
{
2013-01-28 21:53:50 +04:00
dbg_printf("blist - list all breakpoints (same as 'info break')\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 191:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 982 "parser.y"
2006-10-18 22:23:18 +04:00
{
2013-01-28 21:53:50 +04:00
dbg_printf("modebp - toggles mode switch breakpoint\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 192:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 987 "parser.y"
2006-10-18 22:23:18 +04:00
{
2013-01-28 21:53:50 +04:00
dbg_printf("vmexitbp - toggles VMEXIT switch breakpoint\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 193:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 992 "parser.y"
2006-10-18 22:23:18 +04:00
{
2013-01-28 21:53:50 +04:00
dbg_printf("crc <addr1> <addr2> - show CRC32 for physical memory range addr1..addr2\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 194:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 997 "parser.y"
2006-10-18 22:23:18 +04:00
{
2013-01-28 21:53:50 +04:00
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));
}
2006-10-18 22:23:18 +04:00
break;
case 195:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1003 "parser.y"
2006-10-18 22:23:18 +04:00
{
2013-01-28 21:53:50 +04:00
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));
}
2006-10-18 22:23:18 +04:00
break;
case 196:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1009 "parser.y"
2006-10-18 22:23:18 +04:00
{
2013-01-28 21:53:50 +04:00
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));
2006-03-25 00:01:44 +03:00
}
2006-10-18 22:23:18 +04:00
break;
case 197:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1015 "parser.y"
2006-10-18 22:23:18 +04:00
{
2013-01-28 21:53:50 +04:00
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));
2006-05-21 20:48:05 +04:00
}
2006-10-18 22:23:18 +04:00
break;
case 198:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1023 "parser.y"
2006-10-18 22:23:18 +04:00
{
2013-01-28 21:53:50 +04:00
dbg_printf("ptime - print current time (number of ticks since start of simulation)\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 199:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1028 "parser.y"
{
2013-01-28 21:53:50 +04:00
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 200:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1033 "parser.y"
{
2013-01-28 21:53:50 +04:00
dbg_printf("sba <time> - insert breakpoint at specific time\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 201:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1038 "parser.y"
{
2013-01-28 21:53:50 +04:00
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 202:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1043 "parser.y"
{
2013-01-28 21:53:50 +04:00
dbg_printf("ldsym [global] <filename> [offset] - load symbols from file\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 203:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1048 "parser.y"
{
2013-01-28 21:53:50 +04:00
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 204:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1053 "parser.y"
2009-12-30 22:20:27 +03:00
{
2013-01-28 21:53:50 +04:00
dbg_printf("r|reg|regs|registers - list of CPU registers and their contents (same as 'info registers')\n");
2009-12-30 22:20:27 +03:00
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 205:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1058 "parser.y"
2011-05-02 21:20:38 +04:00
{
2013-01-28 21:53:50 +04:00
dbg_printf("fp|fpu - print FPU state\n");
2011-05-02 21:20:38 +04:00
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 206:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1063 "parser.y"
2011-05-02 21:20:38 +04:00
{
2013-01-28 21:53:50 +04:00
dbg_printf("mmx - print MMX state\n");
2011-05-02 21:20:38 +04:00
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 207:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1068 "parser.y"
2011-05-02 21:20:38 +04:00
{
2013-01-28 21:53:50 +04:00
dbg_printf("xmm|sse - print SSE state\n");
2011-05-02 21:20:38 +04:00
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 208:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1073 "parser.y"
2011-05-06 12:29:23 +04:00
{
2013-01-28 21:53:50 +04:00
dbg_printf("ymm - print AVX state\n");
2011-05-06 12:29:23 +04:00
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 209:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1078 "parser.y"
{
dbg_printf("zmm - print AVX-512 state\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 210:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1083 "parser.y"
{
2013-01-28 21:53:50 +04:00
dbg_printf("sreg - show segment registers\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 211:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1088 "parser.y"
{
2013-01-28 21:53:50 +04:00
dbg_printf("creg - show control registers\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 212:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1093 "parser.y"
{
2013-01-28 21:53:50 +04:00
dbg_printf("dreg - show debug registers\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 213:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1098 "parser.y"
2013-01-28 21:53:50 +04:00
{
dbg_printf("writemem <filename> <laddr> <len> - dump 'len' bytes of virtual memory starting from the linear address 'laddr' into the file\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
break;
case 214:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1103 "parser.y"
2013-01-28 21:53:50 +04:00
{
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 215:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1108 "parser.y"
2006-10-18 22:23:18 +04:00
{
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));
}
2006-10-18 22:23:18 +04:00
break;
case 216:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1118 "parser.y"
2006-10-18 22:23:18 +04:00
{
dbg_printf("watch - print current watch point status\n");
dbg_printf("watch stop - stop simulation when a watchpoint is encountred\n");
dbg_printf("watch continue - do not stop the simulation when watch point is encountred\n");
dbg_printf("watch 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));
}
2006-10-18 22:23:18 +04:00
break;
case 217:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1129 "parser.y"
2006-10-18 22:23:18 +04:00
{
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));
}
2006-10-18 22:23:18 +04:00
break;
case 218:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1135 "parser.y"
2006-10-18 22:23:18 +04:00
{
dbg_printf("x /nuf <addr> - examine memory at linear address\n");
dbg_printf("xp /nuf <addr> - examine memory at physical address\n");
dbg_printf(" nuf is a sequence of numbers (how much values to display)\n");
dbg_printf(" and one or more of the [mxduotcsibhwg] format specificators:\n");
dbg_printf(" x,d,u,o,t,c,s,i select the format of the output (they stand for\n");
dbg_printf(" hex, decimal, unsigned, octal, binary, char, asciiz, instr)\n");
dbg_printf(" b,h,w,g select the size of a data element (for byte, half-word,\n");
dbg_printf(" word and giant word)\n");
dbg_printf(" m selects an alternative output format (memory dump)\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 219:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1148 "parser.y"
2006-10-18 22:23:18 +04:00
{
2009-10-31 20:46:12 +03:00
dbg_printf("instrument <command> - calls BX_INSTR_DEBUG_CMD instrumentation callback with <command>\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 220:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1153 "parser.y"
2006-10-18 22:23:18 +04:00
{
dbg_printf("set <regname> = <expr> - set register value to expression\n");
dbg_printf("set eflags = <expr> - set eflags value to expression, not all flags can be modified\n");
dbg_printf("set $cpu = <N> - move debugger control to cpu <N> in SMP simulation\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));
}
2006-10-18 22:23:18 +04:00
break;
case 221:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1164 "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 222:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1169 "parser.y"
2006-10-18 22:23:18 +04:00
{
dbg_printf("info break - show information about current breakpoint status\n");
dbg_printf("info cpu - show dump of all cpu registers\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");
2012-03-10 21:18:43 +04:00
dbg_printf("info device - show list of devices supported by this command\n");
2012-04-24 21:50:41 +04:00
dbg_printf("info device [string] - show state of device specified in string\n");
dbg_printf("info device [string] [string] - show state of device with options\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 223:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1185 "parser.y"
2006-10-18 22:23:18 +04:00
{
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));
}
2006-10-18 22:23:18 +04:00
break;
case 224:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1197 "parser.y"
2006-10-18 22:23:18 +04:00
{
dbg_printf("calc|? <expr> - calculate a expression and display the result.\n");
dbg_printf(" 'expr' can reference any general-purpose and segment\n");
dbg_printf(" registers, use any arithmetic and logic operations, and\n");
dbg_printf(" also the special ':' operator which computes the linear\n");
dbg_printf(" address for a segment:offset (in real and v86 mode) or\n");
dbg_printf(" of a selector:offset (in protected mode) pair.\n");
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 225:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1207 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_print_help();
free((yyvsp[(1) - (3)].sval));free((yyvsp[(2) - (3)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 226:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1212 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_print_help();
free((yyvsp[(1) - (2)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 227:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1220 "parser.y"
2006-10-18 22:23:18 +04:00
{
bx_dbg_calc_command((yyvsp[(2) - (3)].uval));
free((yyvsp[(1) - (3)].sval));
}
2006-10-18 22:23:18 +04:00
break;
case 228:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1237 "parser.y"
{ (yyval.uval) = (yyvsp[(1) - (1)].uval); }
2006-10-18 22:23:18 +04:00
break;
case 229:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1238 "parser.y"
{ (yyval.uval) = bx_dbg_get_symbol_value((yyvsp[(1) - (1)].sval)); free((yyvsp[(1) - (1)].sval));}
break;
case 230:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1239 "parser.y"
{ (yyval.uval) = bx_dbg_get_reg8l_value((yyvsp[(1) - (1)].uval)); }
2006-10-18 22:23:18 +04:00
break;
case 231:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1240 "parser.y"
{ (yyval.uval) = bx_dbg_get_reg8h_value((yyvsp[(1) - (1)].uval)); }
2006-10-18 22:23:18 +04:00
break;
case 232:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1241 "parser.y"
{ (yyval.uval) = bx_dbg_get_reg16_value((yyvsp[(1) - (1)].uval)); }
2006-10-18 22:23:18 +04:00
break;
case 233:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1242 "parser.y"
{ (yyval.uval) = bx_dbg_get_reg32_value((yyvsp[(1) - (1)].uval)); }
2006-10-18 22:23:18 +04:00
break;
case 234:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1243 "parser.y"
{ (yyval.uval) = bx_dbg_get_reg64_value((yyvsp[(1) - (1)].uval)); }
2006-10-18 22:23:18 +04:00
break;
case 235:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1244 "parser.y"
{ (yyval.uval) = bx_dbg_get_selector_value((yyvsp[(1) - (1)].uval)); }
2006-10-18 22:23:18 +04:00
break;
case 236:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1245 "parser.y"
{ (yyval.uval) = bx_dbg_get_ip (); }
2006-10-18 22:23:18 +04:00
break;
case 237:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1246 "parser.y"
{ (yyval.uval) = bx_dbg_get_eip(); }
2006-10-18 22:23:18 +04:00
break;
case 238:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1247 "parser.y"
{ (yyval.uval) = bx_dbg_get_instruction_pointer(); }
2006-10-18 22:23:18 +04:00
break;
case 239:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1248 "parser.y"
{ (yyval.uval) = (yyvsp[(1) - (3)].uval) + (yyvsp[(3) - (3)].uval); }
2006-10-18 22:23:18 +04:00
break;
case 240:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1249 "parser.y"
{ (yyval.uval) = (yyvsp[(1) - (3)].uval) - (yyvsp[(3) - (3)].uval); }
2006-10-18 22:23:18 +04:00
break;
case 241:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1250 "parser.y"
{ (yyval.uval) = (yyvsp[(1) - (3)].uval) * (yyvsp[(3) - (3)].uval); }
2006-10-18 22:23:18 +04:00
break;
case 242:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1251 "parser.y"
{ (yyval.uval) = (yyvsp[(1) - (3)].uval) / (yyvsp[(3) - (3)].uval); }
2006-10-18 22:23:18 +04:00
break;
case 243:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1252 "parser.y"
{ (yyval.uval) = (yyvsp[(1) - (3)].uval) >> (yyvsp[(3) - (3)].uval); }
2006-10-18 22:23:18 +04:00
break;
case 244:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1253 "parser.y"
{ (yyval.uval) = (yyvsp[(1) - (3)].uval) << (yyvsp[(3) - (3)].uval); }
2006-10-18 22:23:18 +04:00
break;
case 245:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1254 "parser.y"
{ (yyval.uval) = (yyvsp[(1) - (3)].uval) | (yyvsp[(3) - (3)].uval); }
2006-10-18 22:23:18 +04:00
break;
case 246:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1255 "parser.y"
{ (yyval.uval) = (yyvsp[(1) - (3)].uval) ^ (yyvsp[(3) - (3)].uval); }
2006-10-18 22:23:18 +04:00
break;
case 247:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1256 "parser.y"
{ (yyval.uval) = (yyvsp[(1) - (3)].uval) & (yyvsp[(3) - (3)].uval); }
2006-10-18 22:23:18 +04:00
break;
case 248:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1257 "parser.y"
{ (yyval.uval) = !(yyvsp[(2) - (2)].uval); }
2006-10-18 22:23:18 +04:00
break;
case 249:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1258 "parser.y"
{ (yyval.uval) = -(yyvsp[(2) - (2)].uval); }
2006-10-18 22:23:18 +04:00
break;
case 250:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1259 "parser.y"
{ (yyval.uval) = (yyvsp[(2) - (3)].uval); }
2006-10-18 22:23:18 +04:00
break;
case 251:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1265 "parser.y"
{ (yyval.uval) = (yyvsp[(1) - (1)].uval); }
2006-10-18 22:23:18 +04:00
break;
case 252:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1266 "parser.y"
{ (yyval.uval) = bx_dbg_get_symbol_value((yyvsp[(1) - (1)].sval)); free((yyvsp[(1) - (1)].sval));}
2006-10-18 22:23:18 +04:00
break;
case 253:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1267 "parser.y"
{ (yyval.uval) = bx_dbg_get_reg8l_value((yyvsp[(1) - (1)].uval)); }
2006-10-18 22:23:18 +04:00
break;
case 254:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1268 "parser.y"
{ (yyval.uval) = bx_dbg_get_reg8h_value((yyvsp[(1) - (1)].uval)); }
2006-10-18 22:23:18 +04:00
break;
case 255:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1269 "parser.y"
{ (yyval.uval) = bx_dbg_get_reg16_value((yyvsp[(1) - (1)].uval)); }
2006-10-18 22:23:18 +04:00
break;
case 256:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1270 "parser.y"
{ (yyval.uval) = bx_dbg_get_reg32_value((yyvsp[(1) - (1)].uval)); }
2006-10-18 22:23:18 +04:00
break;
case 257:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1271 "parser.y"
{ (yyval.uval) = bx_dbg_get_reg64_value((yyvsp[(1) - (1)].uval)); }
2006-10-18 22:23:18 +04:00
break;
case 258:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1272 "parser.y"
{ (yyval.uval) = bx_dbg_get_selector_value((yyvsp[(1) - (1)].uval)); }
2006-10-18 22:23:18 +04:00
break;
case 259:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1273 "parser.y"
{ (yyval.uval) = bx_dbg_get_ip (); }
2006-10-18 22:23:18 +04:00
break;
case 260:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1274 "parser.y"
{ (yyval.uval) = bx_dbg_get_eip(); }
2006-10-18 22:23:18 +04:00
break;
case 261:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1275 "parser.y"
{ (yyval.uval) = bx_dbg_get_instruction_pointer(); }
2006-10-18 22:23:18 +04:00
break;
case 262:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1276 "parser.y"
{ (yyval.uval) = bx_dbg_get_laddr ((yyvsp[(1) - (3)].uval), (yyvsp[(3) - (3)].uval)); }
2006-10-18 22:23:18 +04:00
break;
case 263:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1277 "parser.y"
{ (yyval.uval) = (yyvsp[(1) - (3)].uval) + (yyvsp[(3) - (3)].uval); }
2006-10-18 22:23:18 +04:00
break;
case 264:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1278 "parser.y"
{ (yyval.uval) = (yyvsp[(1) - (3)].uval) - (yyvsp[(3) - (3)].uval); }
2006-10-18 22:23:18 +04:00
break;
case 265:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1279 "parser.y"
{ (yyval.uval) = (yyvsp[(1) - (3)].uval) * (yyvsp[(3) - (3)].uval); }
2006-10-18 22:23:18 +04:00
break;
case 266:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1280 "parser.y"
{ (yyval.uval) = ((yyvsp[(3) - (3)].uval) != 0) ? (yyvsp[(1) - (3)].uval) / (yyvsp[(3) - (3)].uval) : 0; }
2006-10-18 22:23:18 +04:00
break;
case 267:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1281 "parser.y"
{ (yyval.uval) = (yyvsp[(1) - (3)].uval) >> (yyvsp[(3) - (3)].uval); }
2006-10-18 22:23:18 +04:00
break;
case 268:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1282 "parser.y"
{ (yyval.uval) = (yyvsp[(1) - (3)].uval) << (yyvsp[(3) - (3)].uval); }
2006-10-18 22:23:18 +04:00
break;
case 269:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1283 "parser.y"
{ (yyval.uval) = (yyvsp[(1) - (3)].uval) | (yyvsp[(3) - (3)].uval); }
2006-10-18 22:23:18 +04:00
break;
case 270:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1284 "parser.y"
{ (yyval.uval) = (yyvsp[(1) - (3)].uval) ^ (yyvsp[(3) - (3)].uval); }
2006-10-18 22:23:18 +04:00
break;
case 271:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1285 "parser.y"
{ (yyval.uval) = (yyvsp[(1) - (3)].uval) & (yyvsp[(3) - (3)].uval); }
2006-10-18 22:23:18 +04:00
break;
case 272:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1286 "parser.y"
{ (yyval.uval) = !(yyvsp[(2) - (2)].uval); }
break;
2006-10-18 22:23:18 +04:00
case 273:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1287 "parser.y"
{ (yyval.uval) = -(yyvsp[(2) - (2)].uval); }
break;
2006-10-18 22:23:18 +04:00
case 274:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1288 "parser.y"
{ (yyval.uval) = bx_dbg_lin_indirect((yyvsp[(2) - (2)].uval)); }
break;
case 275:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1289 "parser.y"
{ (yyval.uval) = bx_dbg_phy_indirect((yyvsp[(2) - (2)].uval)); }
break;
case 276:
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1290 "parser.y"
{ (yyval.uval) = (yyvsp[(2) - (3)].uval); }
break;
2006-10-18 22:23:18 +04:00
/* Line 1787 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 4176 "y.tab.c"
default: break;
}
2013-01-28 21:53:50 +04:00
/* User semantic actions sometimes alter yychar, and that requires
that yytoken be updated with the new translation. We take the
approach of translating immediately before every use of yytoken.
One alternative is translating here after every semantic action,
but that translation would be missed if the semantic action invokes
YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or
if it invokes YYBACKUP. In the case of YYABORT or YYACCEPT, an
incorrect destructor might then be invoked immediately. In the
case of YYERROR or YYBACKUP, subsequent parser actions might lead
to an incorrect destructor call or verbose syntax error message
before the lookahead is translated. */
YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
YYPOPSTACK (yylen);
yylen = 0;
2006-10-18 22:23:18 +04:00
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:
2013-01-28 21:53:50 +04:00
/* Make sure we have latest lookahead translation. See comments at
user semantic actions for why this is necessary. */
yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar);
2006-10-18 22:23:18 +04:00
/* If not already recovering from an error, report this error. */
if (!yyerrstatus)
{
2006-10-18 22:23:18 +04:00
++yynerrs;
#if ! YYERROR_VERBOSE
yyerror (YY_("syntax error"));
#else
2013-01-28 21:53:50 +04:00
# define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \
yyssp, yytoken)
{
2013-01-28 21:53:50 +04:00
char const *yymsgp = YY_("syntax error");
int yysyntax_error_status;
yysyntax_error_status = YYSYNTAX_ERROR;
if (yysyntax_error_status == 0)
yymsgp = yymsg;
else if (yysyntax_error_status == 1)
{
if (yymsg != yymsgbuf)
YYSTACK_FREE (yymsg);
yymsg = (char *) YYSTACK_ALLOC (yymsg_alloc);
if (!yymsg)
{
yymsg = yymsgbuf;
yymsg_alloc = sizeof yymsgbuf;
yysyntax_error_status = 2;
}
else
{
yysyntax_error_status = YYSYNTAX_ERROR;
yymsgp = yymsg;
}
}
yyerror (yymsgp);
if (yysyntax_error_status == 2)
goto yyexhaustedlab;
}
2013-01-28 21:53:50 +04:00
# undef YYSYNTAX_ERROR
#endif
2006-10-18 22:23:18 +04:00
}
if (yyerrstatus == 3)
{
2011-03-04 23:35:24 +03:00
/* If just tried and failed to reuse lookahead token after an
2006-10-18 22:23:18 +04:00
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;
}
}
2006-10-18 22:23:18 +04:00
2011-03-04 23:35:24 +03:00
/* Else will try to reuse lookahead token after shifting the error
2006-10-18 22:23:18 +04:00
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. |
`-------------------------------------------------------------*/
2006-10-18 22:23:18 +04:00
yyerrlab1:
yyerrstatus = 3; /* Each real token shifted decrements this. */
for (;;)
{
2006-10-18 22:23:18 +04:00
yyn = yypact[yystate];
2013-01-28 21:53:50 +04:00
if (!yypact_value_is_default (yyn))
2006-10-18 22:23:18 +04:00
{
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;
2006-10-18 22:23:18 +04:00
YY_STACK_PRINT (yyss, yyssp);
}
2006-10-18 22:23:18 +04:00
YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
2006-10-18 22:23:18 +04:00
*++yyvsp = yylval;
YY_IGNORE_MAYBE_UNINITIALIZED_END
2006-10-18 22:23:18 +04:00
/* Shift the error token. */
YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp);
2006-10-18 22:23:18 +04:00
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"));
2006-10-18 22:23:18 +04:00
yyresult = 2;
/* Fall through. */
#endif
yyreturn:
2011-03-04 23:35:24 +03:00
if (yychar != YYEMPTY)
2013-01-28 21:53:50 +04:00
{
/* Make sure we have latest lookahead translation. See comments at
user semantic actions for why this is necessary. */
yytoken = YYTRANSLATE (yychar);
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);
}
2006-10-18 22:23:18 +04:00
#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);
}
2006-10-18 22:23:18 +04:00
/* Line 2050 of yacc.c */
2013-11-20 20:56:26 +04:00
#line 1293 "parser.y"
2006-10-18 22:23:18 +04:00
#endif /* if BX_DEBUGGER */
/* The #endif is appended by the makefile after running yacc. */