GDB (xrefs)
|
#include "defs.h"
#include "expression.h"
#include "language.h"
#include "value.h"
#include "parser-defs.h"
#include "m2-lang.h"
#include "block.h"
#include "m2-exp.h"
#include "yy-remap.h"
#include <limits.h>
Go to the source code of this file.
Classes | |
union | m2_exp_YYSTYPE |
union | m2_exp_yyalloc |
struct | keyword |
Macros | |
#define | YYBISON 30802 |
#define | YYBISON_VERSION "3.8.2" |
#define | YYSKELETON_NAME "yacc.c" |
#define | YYPURE 0 |
#define | YYPUSH 0 |
#define | YYPULL 1 |
#define | parse_type(ps) builtin_type (ps->gdbarch ()) |
#define | parse_m2_type(ps) builtin_m2_type (ps->gdbarch ()) |
#define | GDB_YY_REMAP_PREFIX m2_ |
#define | YY_CAST(Type, Val) ((Type) (Val)) |
#define | YY_REINTERPRET_CAST(Type, Val) ((Type) (Val)) |
#define | YY_NULLPTRPTR ((void*)0) |
#define | YYTOKENTYPE |
#define | YYEMPTY -2 |
#define | YYEOF 0 |
#define | YYerror 256 |
#define | YYUNDEF 257 |
#define | INT 258 |
#define | HEX 259 |
#define | ERROR 260 |
#define | UINT 261 |
#define | M2_TRUE 262 |
#define | M2_FALSE 263 |
#define | CHAR 264 |
#define | FLOAT 265 |
#define | STRING 266 |
#define | NAME 267 |
#define | BLOCKNAME 268 |
#define | IDENT 269 |
#define | VARNAME 270 |
#define | TYPENAME 271 |
#define | SIZE 272 |
#define | CAP 273 |
#define | ORD 274 |
#define | HIGH 275 |
#define | ABS 276 |
#define | MIN_FUNC 277 |
#define | MAX_FUNC 278 |
#define | FLOAT_FUNC 279 |
#define | VAL 280 |
#define | CHR 281 |
#define | ODD 282 |
#define | TRUNC 283 |
#define | TSIZE 284 |
#define | INC 285 |
#define | DEC 286 |
#define | INCL 287 |
#define | EXCL 288 |
#define | COLONCOLON 289 |
#define | DOLLAR_VARIABLE 290 |
#define | ABOVE_COMMA 291 |
#define | ASSIGN 292 |
#define | LEQ 293 |
#define | GEQ 294 |
#define | NOTEQUAL 295 |
#define | IN 296 |
#define | OROR 297 |
#define | LOGICAL_AND 298 |
#define | DIV 299 |
#define | MOD 300 |
#define | UNARY 301 |
#define | DOT 302 |
#define | NOT 303 |
#define | QID 304 |
#define | m2_exp_YYSTYPE_IS_TRIVIAL 1 |
#define | m2_exp_YYSTYPE_IS_DECLARED 1 |
#define | YYPTRDIFF_T long |
#define | YYPTRDIFF_MAXIMUM LONG_MAX |
#define | YYSIZE_T unsigned |
#define | YYSIZE_MAXIMUM |
#define | YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X)) |
#define | YY_(Msgid) Msgid |
#define | YY_ATTRIBUTE_PURE |
#define | YY_ATTRIBUTE_UNUSED |
#define | YY_USE(E) ((void) (E)) |
#define | YY_INITIAL_VALUE(Value) Value |
#define | YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
#define | YY_IGNORE_MAYBE_UNINITIALIZED_END |
#define | YY_IGNORE_USELESS_CAST_BEGIN |
#define | YY_IGNORE_USELESS_CAST_END |
#define | YY_ASSERT(E) ((void) (0 && (E))) |
#define | YYSTACK_ALLOC YYMALLOC |
#define | YYSTACK_FREE YYFREE |
#define | YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
#define | YYMALLOC xmalloc |
#define | YYFREE xfree |
#define | YYSTACK_GAP_MAXIMUM (YYSIZEOF (union m2_exp_yyalloc) - 1) |
#define | YYSTACK_BYTES(N) |
#define | YYCOPY_NEEDED 1 |
#define | YYSTACK_RELOCATE(Stack_alloc, Stack) |
#define | YYCOPY(Dst, Src, Count) |
#define | YYFINAL 69 |
#define | YYLAST 890 |
#define | YYNTOKENS 69 |
#define | YYNNTS 15 |
#define | YYNRULES 81 |
#define | YYNSTATES 185 |
#define | YYMAXUTOK 304 |
#define | YYTRANSLATE(YYX) |
#define | YY_ACCESSING_SYMBOL(State) YY_CAST (m2_exp_yysymbol_kind_t, yystos[State]) |
#define | YYPACT_NINF (-89) |
#define | yypact_value_is_default(Yyn) ((Yyn) == YYPACT_NINF) |
#define | YYTABLE_NINF (-75) |
#define | yytable_value_is_error(Yyn) ((Yyn) == YYTABLE_NINF) |
#define | yyerrok (yyerrstatus = 0) |
#define | yyclearin (yychar = YYEMPTY) |
#define | YYACCEPT goto yyacceptlab |
#define | YYABORT goto yyabortlab |
#define | YYERROR goto yyerrorlab |
#define | YYNOMEM goto yyexhaustedlab |
#define | YYRECOVERING() (!!yyerrstatus) |
#define | YYBACKUP(Token, Value) |
#define | YYERRCODE YYUNDEF |
#define | YYDPRINTF(Args) |
#define | YY_SYMBOL_PRINT(Title, Kind, Value, Location) |
#define | YY_STACK_PRINT(Bottom, Top) |
#define | YY_REDUCE_PRINT(Rule) |
#define | YYINITDEPTH 200 |
#define | YYMAXDEPTH 10000 |
#define | YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) |
Typedefs | |
typedef enum yytokentype | yytoken_kind_t |
typedef union m2_exp_YYSTYPE | m2_exp_YYSTYPE |
typedef enum m2_exp_yysymbol_kind_t | m2_exp_yysymbol_kind_t |
typedef signed char | yytype_int8 |
typedef short | yytype_int16 |
typedef unsigned char | yytype_uint8 |
typedef unsigned short | yytype_uint16 |
typedef yytype_uint8 | yy_state_t |
typedef int | yy_state_fast_t |
Functions | |
int | yyparse (void) |
static int | yylex (void) |
static void | yyerror (const char *) |
static int | parse_number (int) |
void * | xmalloc (YYSIZE_T) |
void | xfree (void *) |
static const char * | yysymbol_name (m2_exp_yysymbol_kind_t yysymbol) YY_ATTRIBUTE_UNUSED |
static void | yy_symbol_value_print (FILE *yyo, m2_exp_yysymbol_kind_t yykind, m2_exp_YYSTYPE const *const yyvaluep) |
static void | yy_symbol_print (FILE *yyo, m2_exp_yysymbol_kind_t yykind, m2_exp_YYSTYPE const *const yyvaluep) |
static void | yy_stack_print (yy_state_t *yybottom, yy_state_t *yytop) |
static void | yy_reduce_print (yy_state_t *yyssp, m2_exp_YYSTYPE *yyvsp, int yyrule) |
static void | yydestruct (const char *yymsg, m2_exp_yysymbol_kind_t yykind, m2_exp_YYSTYPE *yyvaluep) |
Variables | ||
static struct parser_state * | pstate = NULL | |
static int | number_sign = 1 | |
int | yydebug | |
m2_exp_YYSTYPE | yylval | |
static const yytype_int8 | yytranslate [] | |
static const yytype_int16 | yyrline [] | |
static const char *const | yytname [] | |
static const yytype_int16 | yypact [] | |
static const yytype_int8 | yydefact [] | |
static const yytype_int8 | yypgoto [] | |
static const yytype_uint8 | yydefgoto [] | |
static const yytype_int16 | yytable [] | |
static const yytype_int16 | yycheck [] | |
static const yytype_int8 | yystos [] | |
static const yytype_int8 | yyr1 [] | |
static const yytype_int8 | yyr2 [] | |
int | yychar | |
int | yynerrs | |
struct { | ||
char name [2] | ||
int token | ||
} | tokentab2 [] | |
static struct keyword | keytab [] | |
static int | paren_depth | |
#define CHAR 264 |
Definition at line 210 of file m2-exp.c.
Referenced by parse_number(), and yylex().
#define ERROR 260 |
Definition at line 206 of file m2-exp.c.
Referenced by parse_number(), and yylex().
#define FLOAT 265 |
Definition at line 211 of file m2-exp.c.
Referenced by parse_number().
#define INT 258 |
Definition at line 204 of file m2-exp.c.
Referenced by parse_number().
#define parse_m2_type | ( | ps | ) | builtin_m2_type (ps->gdbarch ()) |
Definition at line 83 of file m2-exp.c.
Referenced by parse_number(), and yyparse().
#define parse_type | ( | ps | ) | builtin_type (ps->gdbarch ()) |
#define UINT 261 |
Definition at line 207 of file m2-exp.c.
Referenced by windows_nat::windows_process_info::add_dll(), and parse_number().
#define YY_ACCESSING_SYMBOL | ( | State | ) | YY_CAST (m2_exp_yysymbol_kind_t, yystos[State]) |
Accessing symbol of state STATE.
Definition at line 779 of file m2-exp.c.
Referenced by yy_reduce_print(), and yyparse().
#define YY_ASSERT | ( | E | ) | ((void) (0 && (E))) |
#define YY_CAST | ( | Type, | |
Val ) ((Type) (Val)) |
#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
Definition at line 552 of file m2-exp.c.
Referenced by yy_symbol_value_print(), yydestruct(), and yyparse().
#define YY_IGNORE_MAYBE_UNINITIALIZED_END |
Definition at line 553 of file m2-exp.c.
Referenced by yy_symbol_value_print(), yydestruct(), and yyparse().
#define YY_IGNORE_USELESS_CAST_BEGIN |
#define YY_IGNORE_USELESS_CAST_END |
#define YY_REDUCE_PRINT | ( | Rule | ) |
#define YY_STACK_PRINT | ( | Bottom, | |
Top ) |
#define YY_SYMBOL_PRINT | ( | Title, | |
Kind, | |||
Value, | |||
Location ) |
Definition at line 1182 of file m2-exp.c.
Referenced by yydestruct(), and yyparse().
#define YY_USE | ( | E | ) | ((void) (E)) |
Definition at line 529 of file m2-exp.c.
Referenced by yy_symbol_value_print(), and yydestruct().
#define YYACCEPT goto yyacceptlab |
#define YYBACKUP | ( | Token, | |
Value ) |
#define YYCOPY | ( | Dst, | |
Src, | |||
Count ) |
#define YYDPRINTF | ( | Args | ) |
#define YYNOMEM goto yyexhaustedlab |
#define YYNTOKENS 69 |
Definition at line 706 of file m2-exp.c.
Referenced by yy_symbol_print(), and yyparse().
#define yypact_value_is_default | ( | Yyn | ) | ((Yyn) == YYPACT_NINF) |
#define YYSIZE_MAXIMUM |
#define YYSIZEOF | ( | X | ) | YY_CAST (YYPTRDIFF_T, sizeof (X)) |
#define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
#define YYSTACK_BYTES | ( | N | ) |
#define YYSTACK_GAP_MAXIMUM (YYSIZEOF (union m2_exp_yyalloc) - 1) |
#define YYSTACK_RELOCATE | ( | Stack_alloc, | |
Stack ) |
Definition at line 667 of file m2-exp.c.
Referenced by yyparse().
#define yytable_value_is_error | ( | Yyn | ) | ((Yyn) == YYTABLE_NINF) |
#define YYTRANSLATE | ( | YYX | ) |
typedef enum m2_exp_yysymbol_kind_t m2_exp_yysymbol_kind_t |
typedef int yy_state_fast_t |
typedef yytype_uint8 yy_state_t |
typedef enum yytokentype yytoken_kind_t |
typedef short yytype_int16 |
typedef signed char yytype_int8 |
typedef unsigned short yytype_uint16 |
typedef unsigned char yytype_uint8 |
enum yytokentype |
|
static |
Definition at line 2322 of file m2-exp.c.
References CHAR, ERROR, fits_in_type(), FLOAT, expr_builder::gdbarch(), gdbarch_int_bit(), input_radix, INT, parser_state::lexptr, m2_exp_YYSTYPE::lval, number_sign, parse_float(), parse_m2_type, pstate, RANGE_CHECK, range_error(), UINT, m2_exp_YYSTYPE::ulval, m2_exp_YYSTYPE::val, and yylval.
Referenced by yylex().
void xfree | ( | void * | ) |
void * xmalloc | ( | YYSIZE_T | ) |
|
static |
Definition at line 1256 of file m2-exp.c.
References YY_ACCESSING_SYMBOL, yy_symbol_print(), YYFPRINTF, yyr2, yyrline, yyrule, yyssp, and yyvsp.
|
static |
|
static |
Definition at line 1217 of file m2-exp.c.
References yy_symbol_value_print(), YYFPRINTF, YYNTOKENS, and yysymbol_name().
Referenced by yy_reduce_print().
|
static |
Definition at line 1199 of file m2-exp.c.
References YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN, YY_IGNORE_MAYBE_UNINITIALIZED_END, and YY_USE.
Referenced by yy_symbol_print().
|
static |
Definition at line 1318 of file m2-exp.c.
References YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN, YY_IGNORE_MAYBE_UNINITIALIZED_END, YY_SYMBOL_PRINT, and YY_USE.
Referenced by yyparse().
|
static |
Definition at line 2750 of file m2-exp.c.
References parser_state::lexptr, parser_state::prev_lexptr, and pstate.
|
static |
Definition at line 2477 of file m2-exp.c.
References symbol::aclass(), BLOCKNAME, CHAR, parser_state::comma_terminates, copy_name(), DOLLAR_VARIABLE, DOT, ERROR, parser_state::expression_context_block, keytab, keyword::keyw, expr_builder::language(), stoken::length, parser_state::lexptr, LOC_ARG, LOC_BLOCK, LOC_COMPUTED, LOC_CONST, LOC_CONST_BYTES, LOC_LABEL, LOC_LOCAL, LOC_OPTIMIZED_OUT, LOC_REF_ARG, LOC_REGISTER, LOC_REGPARM_ADDR, LOC_STATIC, LOC_TYPEDEF, LOC_UNDEF, LOC_UNRESOLVED, lookup_symbol(), lookup_symtab(), lookup_typename(), M2_FALSE, M2_TRUE, NAME, name, paren_depth, parse_number(), parser_state::prev_lexptr, pstate, stoken::ptr, STRING, m2_exp_YYSTYPE::sval, block_symbol::symbol, token, tokentab2, TYPENAME, m2_exp_YYSTYPE::ulval, VAR_DOMAIN, and yylval.
Referenced by yyparse().
int yyparse | ( | void | ) |
Definition at line 1348 of file m2-exp.c.
References symbol::aclass(), parser_state::arglist_len, parser_state::block_tracker, copy_name(), parser_state::end_arglist(), parser_state::expression_context_block, expr_builder::language(), LOC_BLOCK, lookup_symbol(), lookup_typename(), name, number_sign, parse_m2_type, parser_state::pop(), parser_state::pop_vector(), pstate, parser_state::push_dollar(), parser_state::push_new(), parser_state::push_symbol(), parser_state::start_arglist(), block_symbol::symbol, symbol_read_needs_frame(), innermost_block_tracker::update(), VAR_DOMAIN, parser_state::wrap(), parser_state::wrap2(), YY_, YY_ACCESSING_SYMBOL, YY_ASSERT, YY_CAST, YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN, YY_IGNORE_MAYBE_UNINITIALIZED_END, YY_IGNORE_USELESS_CAST_BEGIN, YY_IGNORE_USELESS_CAST_END, YY_REDUCE_PRINT, YY_STACK_PRINT, YY_SYMBOL_PRINT, YYABORT, YYACCEPT, yychar, yycheck, yydefact, yydefgoto, yydestruct(), YYDPRINTF, YYEMPTY, YYEOF, YYerror, YYERROR, yyerror, YYFINAL, YYINITDEPTH, YYLAST, yylen, yylex(), yylhs, yylloc, yylval, YYMAXDEPTH, yynerrs, YYNOMEM, YYNSTATES, YYNTOKENS, yypact, yypact_value_is_default, yypgoto, YYPOPSTACK, YYPTRDIFF_T, yyr1, yyr2, YYSIZE_T, YYSIZEOF, yyss, m2_exp_yyalloc::yyss_alloc, yyssp, YYSTACK_ALLOC, YYSTACK_BYTES, YYSTACK_FREE, YYSTACK_RELOCATE, yystacksize, yystate, YYSYMBOL_YYEMPTY, YYSYMBOL_YYEOF, YYSYMBOL_YYerror, yytable, yytable_value_is_error, YYTRANSLATE, YYUNDEF, yyval, yyvs, m2_exp_yyalloc::yyvs_alloc, and yyvsp.
|
static |
|
static |
Definition at line 2440 of file m2-exp.c.
Referenced by yylex().
|
static |
Definition at line 104 of file m2-exp.c.
Referenced by parse_number(), and yyparse().
|
static |
int token |
Definition at line 2422 of file m2-exp.c.
Referenced by copy_name(), copy_token_string(), cp_skip_operator_token(), get_next_token_for_substitution(), is_cast_operator(), rust_parser::lex_identifier(), lex_one_token(), lex_one_token(), lex_one_token(), rust_parser::lex_operator(), linespec_lex_to_end(), linespec_lexer_lex_string(), linespec_parse_basic(), mi_execute_command(), mi_print_exception(), parse_linespec(), rocm_bfd_iovec_open(), stap_parse_single_operand(), unexpected_linespec_error(), yylex(), yylex(), and yylex().
struct { ... } tokentab2[] |
Referenced by yylex().
|
static |
|
static |
Definition at line 848 of file m2-exp.c.
Referenced by yyparse().
|
static |
m2_exp_YYSTYPE yylval |
Definition at line 1336 of file m2-exp.c.
Referenced by parse_number(), yylex(), and yyparse().
|
static |
Definition at line 822 of file m2-exp.c.
Referenced by yyparse().
|
static |
|
static |
Definition at line 1102 of file m2-exp.c.
Referenced by yyparse().
|
static |
Definition at line 1116 of file m2-exp.c.
Referenced by yy_reduce_print(), and yyparse().
|
static |
Definition at line 764 of file m2-exp.c.
Referenced by yy_reduce_print().
|
static |
|
static |
|
static |
Definition at line 788 of file m2-exp.c.
Referenced by yysymbol_name().
|
static |