diff options
author | Tom Tromey <tromey@redhat.com> | 2010-02-10 18:57:21 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2010-02-10 18:57:21 +0000 |
commit | 92981e24467c4247c8bf16780cac90b340c0a4c2 (patch) | |
tree | 2d06fe7a6dc3736da642110496f8417d85b4a28c /gdb/c-exp.y | |
parent | 9fd3625f79a17480dd4017136edf4f9a21e834df (diff) | |
download | binutils-gdb-92981e24467c4247c8bf16780cac90b340c0a4c2.tar.gz |
gdb
* parser-defs.h (parser_debug): Declare.
* parse.c (_initialize_parse): Install "debug parser" set/show
command.
(parser_debug): New global.
(show_parserdebug): New function.
* c-exp.y (c_parse): Set yydebug.
gdb/testsuite
* gdb.texinfo (Debugging Output): Document set debug parser and
show debug parser.
Diffstat (limited to 'gdb/c-exp.y')
-rw-r--r-- | gdb/c-exp.y | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/c-exp.y b/gdb/c-exp.y index 8e00979ff8a..845771c9b96 100644 --- a/gdb/c-exp.y +++ b/gdb/c-exp.y @@ -2450,6 +2450,9 @@ c_parse (void) gdb_assert (! macro_original_text); make_cleanup (scan_macro_cleanup, 0); + make_cleanup_restore_integer (&yydebug); + yydebug = parser_debug; + /* Initialize some state used by the lexer. */ last_was_structop = 0; saw_name_at_eof = 0; |