* Makefile.in (BISON): Add comment that when bison is used, it
must include the "-y" option. * c-exp.y, m2-exp.y (yyrule, yyname, yyss, yyssp, yyvs, yyvsp): Remove defines to remap non-yacc symbols, thus backing out of previous recent changes. Standard policy is that non-yacc parser generators get fixed, rather than adding bug workarounds in gdb for each new one that pops up. Expand comment to note this. * c-exp.y, m2-exp.y (YYDEBUG): Revert back to disabled by default.
This commit is contained in:
parent
8a1c3e9949
commit
19d0f3f41d
5 changed files with 59 additions and 52 deletions
|
@ -1,3 +1,14 @@
|
||||||
|
Thu Dec 31 11:06:38 1992 Fred Fish (fnf@cygnus.com)
|
||||||
|
|
||||||
|
* Makefile.in (BISON): Add comment that when bison is used, it
|
||||||
|
must include the "-y" option.
|
||||||
|
* c-exp.y, m2-exp.y (yyrule, yyname, yyss, yyssp, yyvs, yyvsp):
|
||||||
|
Remove defines to remap non-yacc symbols, thus backing out of
|
||||||
|
previous recent changes. Standard policy is that non-yacc parser
|
||||||
|
generators get fixed, rather than adding bug workarounds in gdb
|
||||||
|
for each new one that pops up. Expand comment to note this.
|
||||||
|
* c-exp.y, m2-exp.y (YYDEBUG): Revert back to disabled by default.
|
||||||
|
|
||||||
Thu Dec 31 09:03:02 1992 Stu Grossman (grossman at cygnus.com)
|
Thu Dec 31 09:03:02 1992 Stu Grossman (grossman at cygnus.com)
|
||||||
|
|
||||||
* partial-stab.h (near N_BINCL): Remove redundant code in N_BINCL
|
* partial-stab.h (near N_BINCL): Remove redundant code in N_BINCL
|
||||||
|
|
|
@ -75,6 +75,8 @@ srcdir = .
|
||||||
# CFLAGS section if your system doesn't have fcntl.h in /usr/include (which
|
# CFLAGS section if your system doesn't have fcntl.h in /usr/include (which
|
||||||
# is where it should be according to Posix).
|
# is where it should be according to Posix).
|
||||||
|
|
||||||
|
# If you use bison instead of yacc, it needs to include the "-y" argument.
|
||||||
|
#BISON="bison -y"
|
||||||
BISON=yacc
|
BISON=yacc
|
||||||
YACC=$(BISON)
|
YACC=$(BISON)
|
||||||
|
|
||||||
|
|
26
gdb/c-exp.y
26
gdb/c-exp.y
|
@ -43,9 +43,13 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||||
#include "language.h"
|
#include "language.h"
|
||||||
#include "c-lang.h"
|
#include "c-lang.h"
|
||||||
|
|
||||||
/* These MUST be included in any grammar file!!!! Please choose unique names!
|
/* Remap normal yacc parser interface names (yyparse, yylex, yyerror, etc),
|
||||||
Note that this are a combined list of variables that can be produced
|
as well as gratuitiously global symbol names, so we can have multiple
|
||||||
by any one of bison, byacc, or yacc. */
|
yacc generated parsers in gdb. Note that these are only the variables
|
||||||
|
produced by yacc. If other parser generators (bison, byacc, etc) produce
|
||||||
|
additional global names that conflict at link time, then those parser
|
||||||
|
generators need to be fixed instead of adding those names to this list. */
|
||||||
|
|
||||||
#define yymaxdepth c_maxdepth
|
#define yymaxdepth c_maxdepth
|
||||||
#define yyparse c_parse
|
#define yyparse c_parse
|
||||||
#define yylex c_lex
|
#define yylex c_lex
|
||||||
|
@ -73,28 +77,22 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||||
#define yy_yyv c_yyv
|
#define yy_yyv c_yyv
|
||||||
#define yyval c_val
|
#define yyval c_val
|
||||||
#define yylloc c_lloc
|
#define yylloc c_lloc
|
||||||
#define yyrule c_rule /* With YYDEBUG defined, byacc */
|
|
||||||
#define yyname c_name /* With YYDEBUG defined, byacc */
|
|
||||||
#define yyreds c_reds /* With YYDEBUG defined */
|
#define yyreds c_reds /* With YYDEBUG defined */
|
||||||
#define yytoks c_toks /* With YYDEBUG defined */
|
#define yytoks c_toks /* With YYDEBUG defined */
|
||||||
#define yyss c_yyss /* byacc */
|
|
||||||
#define yyssp c_yysp /* byacc */
|
#ifndef YYDEBUG
|
||||||
#define yyvs c_yyvs /* byacc */
|
#define YYDEBUG 0 /* Default to no yydebug support */
|
||||||
#define yyvsp c_yyvsp /* byacc */
|
#endif
|
||||||
|
|
||||||
int
|
int
|
||||||
yyparse PARAMS ((void));
|
yyparse PARAMS ((void));
|
||||||
|
|
||||||
int
|
static int
|
||||||
yylex PARAMS ((void));
|
yylex PARAMS ((void));
|
||||||
|
|
||||||
void
|
void
|
||||||
yyerror PARAMS ((char *));
|
yyerror PARAMS ((char *));
|
||||||
|
|
||||||
#if MAINTENANCE_CMDS
|
|
||||||
#define YYDEBUG 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
%}
|
%}
|
||||||
|
|
||||||
/* Although the yacc "value" of an expression is not used,
|
/* Although the yacc "value" of an expression is not used,
|
||||||
|
|
30
gdb/ch-exp.y
30
gdb/ch-exp.y
|
@ -60,9 +60,13 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||||
#include "parser-defs.h"
|
#include "parser-defs.h"
|
||||||
#include "ch-lang.h"
|
#include "ch-lang.h"
|
||||||
|
|
||||||
/* These MUST be included in any grammar file!!!! Please choose unique names!
|
/* Remap normal yacc parser interface names (yyparse, yylex, yyerror, etc),
|
||||||
Note that this are a combined list of variables that can be produced
|
as well as gratuitiously global symbol names, so we can have multiple
|
||||||
by any one of bison, byacc, or yacc. */
|
yacc generated parsers in gdb. Note that these are only the variables
|
||||||
|
produced by yacc. If other parser generators (bison, byacc, etc) produce
|
||||||
|
additional global names that conflict at link time, then those parser
|
||||||
|
generators need to be fixed instead of adding those names to this list. */
|
||||||
|
|
||||||
#define yymaxdepth chill_maxdepth
|
#define yymaxdepth chill_maxdepth
|
||||||
#define yyparse chill_parse
|
#define yyparse chill_parse
|
||||||
#define yylex chill_lex
|
#define yylex chill_lex
|
||||||
|
@ -90,14 +94,15 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||||
#define yy_yyv chill_yyv
|
#define yy_yyv chill_yyv
|
||||||
#define yyval chill_val
|
#define yyval chill_val
|
||||||
#define yylloc chill_lloc
|
#define yylloc chill_lloc
|
||||||
#define yyrule chill_rule /* With YYDEBUG defined, byacc */
|
|
||||||
#define yyname chill_name /* With YYDEBUG defined, byacc */
|
|
||||||
#define yyreds chill_reds /* With YYDEBUG defined */
|
#define yyreds chill_reds /* With YYDEBUG defined */
|
||||||
#define yytoks chill_toks /* With YYDEBUG defined */
|
#define yytoks chill_toks /* With YYDEBUG defined */
|
||||||
#define yyss chill_yyss /* byacc */
|
|
||||||
#define yyssp chill_yysp /* byacc */
|
#ifndef YYDEBUG
|
||||||
#define yyvs chill_yyvs /* byacc */
|
#define YYDEBUG 0 /* Default to no yydebug support */
|
||||||
#define yyvsp chill_yyvsp /* byacc */
|
#endif
|
||||||
|
|
||||||
|
int
|
||||||
|
yyparse PARAMS ((void));
|
||||||
|
|
||||||
static int
|
static int
|
||||||
yylex PARAMS ((void));
|
yylex PARAMS ((void));
|
||||||
|
@ -105,13 +110,6 @@ yylex PARAMS ((void));
|
||||||
void
|
void
|
||||||
yyerror PARAMS ((char *));
|
yyerror PARAMS ((char *));
|
||||||
|
|
||||||
int
|
|
||||||
yyparse PARAMS ((void));
|
|
||||||
|
|
||||||
#if MAINTENANCE_CMDS
|
|
||||||
#define YYDEBUG 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
%}
|
%}
|
||||||
|
|
||||||
/* Although the yacc "value" of an expression is not used,
|
/* Although the yacc "value" of an expression is not used,
|
||||||
|
|
42
gdb/m2-exp.y
42
gdb/m2-exp.y
|
@ -45,9 +45,13 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||||
#include "parser-defs.h"
|
#include "parser-defs.h"
|
||||||
#include "m2-lang.h"
|
#include "m2-lang.h"
|
||||||
|
|
||||||
/* These MUST be included in any grammar file!!!! Please choose unique names!
|
/* Remap normal yacc parser interface names (yyparse, yylex, yyerror, etc),
|
||||||
Note that this are a combined list of variables that can be produced
|
as well as gratuitiously global symbol names, so we can have multiple
|
||||||
by any one of bison, byacc, or yacc. */
|
yacc generated parsers in gdb. Note that these are only the variables
|
||||||
|
produced by yacc. If other parser generators (bison, byacc, etc) produce
|
||||||
|
additional global names that conflict at link time, then those parser
|
||||||
|
generators need to be fixed instead of adding those names to this list. */
|
||||||
|
|
||||||
#define yymaxdepth m2_maxdepth
|
#define yymaxdepth m2_maxdepth
|
||||||
#define yyparse m2_parse
|
#define yyparse m2_parse
|
||||||
#define yylex m2_lex
|
#define yylex m2_lex
|
||||||
|
@ -75,14 +79,21 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||||
#define yy_yyv m2_yyv
|
#define yy_yyv m2_yyv
|
||||||
#define yyval m2_val
|
#define yyval m2_val
|
||||||
#define yylloc m2_lloc
|
#define yylloc m2_lloc
|
||||||
#define yyrule m2_rule /* With YYDEBUG defined, byacc */
|
|
||||||
#define yyname m2_name /* With YYDEBUG defined, byacc */
|
|
||||||
#define yyreds m2_reds /* With YYDEBUG defined */
|
#define yyreds m2_reds /* With YYDEBUG defined */
|
||||||
#define yytoks m2_toks /* With YYDEBUG defined */
|
#define yytoks m2_toks /* With YYDEBUG defined */
|
||||||
#define yyss m2_yyss /* byacc */
|
|
||||||
#define yyssp m2_yysp /* byacc */
|
#ifndef YYDEBUG
|
||||||
#define yyvs m2_yyvs /* byacc */
|
#define YYDEBUG 0 /* Default to no yydebug support */
|
||||||
#define yyvsp m2_yyvsp /* byacc */
|
#endif
|
||||||
|
|
||||||
|
int
|
||||||
|
yyparse PARAMS ((void));
|
||||||
|
|
||||||
|
static int
|
||||||
|
yylex PARAMS ((void));
|
||||||
|
|
||||||
|
void
|
||||||
|
yyerror PARAMS ((char *));
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
static char *
|
static char *
|
||||||
|
@ -92,15 +103,6 @@ make_qualname PARAMS ((char *, char *));
|
||||||
static int
|
static int
|
||||||
parse_number PARAMS ((int));
|
parse_number PARAMS ((int));
|
||||||
|
|
||||||
static int
|
|
||||||
yylex PARAMS ((void));
|
|
||||||
|
|
||||||
void
|
|
||||||
yyerror PARAMS ((char *));
|
|
||||||
|
|
||||||
int
|
|
||||||
yyparse PARAMS ((void));
|
|
||||||
|
|
||||||
/* The sign of the number being parsed. */
|
/* The sign of the number being parsed. */
|
||||||
static int number_sign = 1;
|
static int number_sign = 1;
|
||||||
|
|
||||||
|
@ -110,10 +112,6 @@ static int number_sign = 1;
|
||||||
static struct block *modblock=0;
|
static struct block *modblock=0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if MAINTENANCE_CMDS
|
|
||||||
#define YYDEBUG 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
%}
|
%}
|
||||||
|
|
||||||
/* Although the yacc "value" of an expression is not used,
|
/* Although the yacc "value" of an expression is not used,
|
||||||
|
|
Loading…
Reference in a new issue