diff options
author | Pierre Muller <muller@ics.u-strasbg.fr> | 2002-06-21 14:32:10 +0000 |
---|---|---|
committer | Pierre Muller <muller@ics.u-strasbg.fr> | 2002-06-21 14:32:10 +0000 |
commit | 749e35df592250836ccc0bcda26b992ce1182713 (patch) | |
tree | 2b80746253728019790c5d9506262270c7dddd15 /gdb/parser-defs.h | |
parent | 7eb84d16b746ea5dc5e3a295e5ccebf21a4f153b (diff) | |
download | gdb-749e35df592250836ccc0bcda26b992ce1182713.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.h | 5 |
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 */ |