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 | |
parent | 9dad4a58a1bddeb1cc2ec8b3782d7463b03b7b4b (diff) | |
download | binutils-gdb-e454224fa82aa52a1288a3d6a2e26e8d224d732a.tar.gz |
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.
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/f-exp.y | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a632de69c37..806847a5e6f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com> + * f-exp.y (f_parse): Set yydebug. + +2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com> + * f-lang.c (evaluate_subexp_f): New function. (exp_descriptor_f): New global. (f_language_defn): Use exp_descriptor_f instead of diff --git a/gdb/f-exp.y b/gdb/f-exp.y index 5e980944b19..c223d366db3 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; |