mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 18:08:24 +08:00
Enable "set debug parser" for Ada
I noticed that "set debug parser 1" did not affect Ada parsing. This patch fixes the problem. Because this is rarely useful, and pretty much only for maintainers, I didn't write a test case.
This commit is contained in:
@ -1081,6 +1081,9 @@ ada_parse (struct parser_state *par_state)
|
|||||||
gdb_assert (par_state != NULL);
|
gdb_assert (par_state != NULL);
|
||||||
pstate = par_state;
|
pstate = par_state;
|
||||||
|
|
||||||
|
scoped_restore restore_yydebug = make_scoped_restore (&yydebug,
|
||||||
|
parser_debug);
|
||||||
|
|
||||||
lexer_init (yyin); /* (Re-)initialize lexer. */
|
lexer_init (yyin); /* (Re-)initialize lexer. */
|
||||||
obstack_free (&temp_parse_space, NULL);
|
obstack_free (&temp_parse_space, NULL);
|
||||||
obstack_init (&temp_parse_space);
|
obstack_init (&temp_parse_space);
|
||||||
|
Reference in New Issue
Block a user