summaryrefslogtreecommitdiff
path: root/gdb/parser-defs.h
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/parser-defs.h
parent19d833a2fa6c344238385c4edadb3ffdb9c71509 (diff)
downloadbinutils-gdb-f461f5cf7932cc292cafd659b4bc101967f96dee.tar.gz
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/parser-defs.h')
-rw-r--r--gdb/parser-defs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/parser-defs.h b/gdb/parser-defs.h
index 7db1c77e123..062c34d54a3 100644
--- a/gdb/parser-defs.h
+++ b/gdb/parser-defs.h
@@ -216,4 +216,9 @@ struct op_print
extern int target_map_name_to_register (char *, int);
+/* Function used to avoid direct calls to fprintf
+ in the code generated by the bison parser. */
+
+extern void parser_fprintf (FILE *, const char *, ...) ATTR_FORMAT (printf, 2 ,3);
+
#endif /* PARSER_DEFS_H */