X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fm2-exp.y;h=0002e451ce1ef1098bbeafc277322b2a53e1b80d;hb=403cb6b138c38faf72f7abc034db3505b9bdb82f;hp=eb46b7b32b0eb4df4682be7137fe2d5aaa974c3b;hpb=b486de60627b63bbb87af1187b01669b2b6dbc39;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/m2-exp.y b/gdb/m2-exp.y index eb46b7b32b..0002e451ce 100644 --- a/gdb/m2-exp.y +++ b/gdb/m2-exp.y @@ -1,6 +1,5 @@ /* YACC grammar for Modula-2 expressions, for GDB. - Copyright (C) 1986, 1989-1996, 1999-2000, 2007-2012 Free Software - Foundation, Inc. + Copyright (C) 1986-2013 Free Software Foundation, Inc. Generated from expread.y (now c-exp.y) and contributed by the Department of Computer Science at the State University of New York at Buffalo, 1991. @@ -100,6 +99,12 @@ #define yygindex m2_yygindex #define yytable m2_yytable #define yycheck m2_yycheck +#define yyss m2_yyss +#define yysslim m2_yysslim +#define yyssp m2_yyssp +#define yystacksize m2_yystacksize +#define yyvs m2_yyvs +#define yyvsp m2_yyvsp #ifndef YYDEBUG #define YYDEBUG 1 /* Default to yydebug support */ @@ -596,7 +601,7 @@ variable: block COLONCOLON NAME /* Base case for variables. */ variable: NAME { struct symbol *sym; - int is_a_field_of_this; + struct field_of_this_result is_a_field_of_this; sym = lookup_symbol (copy_name ($1), expression_context_block, @@ -622,12 +627,12 @@ variable: NAME } else { - struct minimal_symbol *msymbol; + struct bound_minimal_symbol msymbol; char *arg = copy_name ($1); msymbol = - lookup_minimal_symbol (arg, NULL, NULL); - if (msymbol != NULL) + lookup_bound_minimal_symbol (arg); + if (msymbol.minsym != NULL) write_exp_msymbol (msymbol); else if (!have_full_symbols () && !have_partial_symbols ()) error (_("No symbol table is loaded. Use the \"symbol-file\" command.")); @@ -657,7 +662,7 @@ type static int parse_number (int olen) { - char *p = lexptr; + const char *p = lexptr; LONGEST n = 0; LONGEST prevn = 0; int c,i,ischar=0; @@ -809,7 +814,7 @@ yylex (void) int c; int namelen; int i; - char *tokstart; + const char *tokstart; char quote; retry: @@ -922,7 +927,7 @@ yylex (void) { /* It's a number. */ int got_dot = 0, got_e = 0; - char *p = tokstart; + const char *p = tokstart; int toktype; for (++p ;; ++p)