aboutsummaryrefslogtreecommitdiff
path: root/gdb/f-exp.y
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2019-01-17 14:42:15 +0000
committerAndrew Burgess <andrew.burgess@embecosm.com>2019-03-06 18:11:31 +0000
commite454224fa82aa52a1288a3d6a2e26e8d224d732a (patch)
tree95bc41cb7138cdc575e68b26df7d9e69fac578e6 /gdb/f-exp.y
parent9dad4a58a1bddeb1cc2ec8b3782d7463b03b7b4b (diff)
downloadgdb-e454224fa82aa52a1288a3d6a2e26e8d224d732a.zip
gdb-e454224fa82aa52a1288a3d6a2e26e8d224d732a.tar.gz
gdb-e454224fa82aa52a1288a3d6a2e26e8d224d732a.tar.bz2
gdb/fortran: Enable debugging of the Fortran parser
This commit allows 'set debug parser on' to work for the Fortran parser. gdb/ChangeLog: * f-exp.y (f_parse): Set yydebug.
Diffstat (limited to 'gdb/f-exp.y')
-rw-r--r--gdb/f-exp.y2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/f-exp.y b/gdb/f-exp.y
index 5e98094..c223d36 100644
--- a/gdb/f-exp.y
+++ b/gdb/f-exp.y
@@ -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;