Fix "set debug parser"

While debugging my longer series, I discovered that I broken "set
debug parser" a couple years ago.  This patch fixes it and adds a
minimal test case so that it, hopefully, will not break again.

This patch also adds parser debugging to the C++ name canonicalizer.

Thanks to Tom de Vries for fixing the test case.
This commit is contained in:
Tom Tromey
2025-04-25 17:32:33 -06:00
parent 4a5312e736
commit 32c6e2fe20
5 changed files with 29 additions and 3 deletions

View File

@@ -60,8 +60,8 @@ show_expressiondebug (struct ui_file *file, int from_tty,
}
/* True if an expression parser should set yydebug. */
static bool parser_debug;
/* See parser-defs.h. */
bool parser_debug;
static void
show_parserdebug (struct ui_file *file, int from_tty,