[05/11] gdb/fortran: Enable debugging of the Fortran parser
Commit Message
This commit allows 'set debug parser on' to work for the Fortran
parser.
gdb/ChangeLog:
* f-exp.y (f_parse): Set yydebug.
---
gdb/ChangeLog | 4 ++++
gdb/f-exp.y | 2 ++
2 files changed, 6 insertions(+)
@@ -1211,6 +1211,8 @@ f_parse (struct parser_state *par_state)
{
/* Setting up the parser state. */
scoped_restore pstate_restore = make_scoped_restore (&pstate);
+ scoped_restore restore_yydebug = make_scoped_restore (&yydebug,
+ parser_debug);
gdb_assert (par_state != NULL);
pstate = par_state;