diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2019-01-17 14:42:15 +0000 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2019-03-06 18:11:31 +0000 |
commit | e454224fa82aa52a1288a3d6a2e26e8d224d732a (patch) | |
tree | 95bc41cb7138cdc575e68b26df7d9e69fac578e6 /gdb/f-exp.y | |
parent | 9dad4a58a1bddeb1cc2ec8b3782d7463b03b7b4b (diff) | |
download | gdb-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.y | 2 |
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; |