summaryrefslogtreecommitdiffstats
path: root/gdb/p-exp.y
diff options
context:
space:
mode:
authorPierre Muller <muller@sourceware.org>2002-06-21 14:32:10 +0000
committerPierre Muller <muller@sourceware.org>2002-06-21 14:32:10 +0000
commitf461f5cf7932cc292cafd659b4bc101967f96dee (patch)
tree70e73ce75d2927180bd2f3555f7478a75d74d4ce /gdb/p-exp.y
parent19d833a2fa6c344238385c4edadb3ffdb9c71509 (diff)
downloadppe42-binutils-f461f5cf7932cc292cafd659b4bc101967f96dee.tar.gz
ppe42-binutils-f461f5cf7932cc292cafd659b4bc101967f96dee.zip
2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
* parse.c (parse_fprintf): New function used to avoid calls to fprintf in bison parser generated debug code. * parser-defs.h: Declaration of new parse_fprintf function. * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y: Set YYDEBUG to 1 by default. Set YYFPRINTF as parse_fprintf.
Diffstat (limited to 'gdb/p-exp.y')
-rw-r--r--gdb/p-exp.y4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/p-exp.y b/gdb/p-exp.y
index 7333f6d04a..fbdd3f69e1 100644
--- a/gdb/p-exp.y
+++ b/gdb/p-exp.y
@@ -104,9 +104,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#define yycheck pascal_yycheck
#ifndef YYDEBUG
-#define YYDEBUG 0 /* Default to no yydebug support */
+#define YYDEBUG 1 /* Default to yydebug support */
#endif
+#define YYFPRINTF parser_fprintf
+
int yyparse (void);
static int yylex (void);
OpenPOWER on IntegriCloud