aboutsummaryrefslogtreecommitdiff
path: root/gdb/expression.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2023-04-28 08:08:54 -0600
committerTom Tromey <tromey@adacore.com>2023-05-23 13:57:54 -0600
commite360af5af8e0ecb3eb62cf3970e9d1df0289c781 (patch)
tree9820e02a855fa78f0fe361d7a69993c84a608ae1 /gdb/expression.h
parent78655a10f7718f2596c0ae2a9a401e2597c5041f (diff)
downloadbinutils-e360af5af8e0ecb3eb62cf3970e9d1df0289c781.zip
binutils-e360af5af8e0ecb3eb62cf3970e9d1df0289c781.tar.gz
binutils-e360af5af8e0ecb3eb62cf3970e9d1df0289c781.tar.bz2
Add PARSER_DEBUG flag
This adds a new PARSER_DEBUG constant and changes the parser code to use it. This lets us make the 'parser_debug' global 'static'.
Diffstat (limited to 'gdb/expression.h')
-rw-r--r--gdb/expression.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/expression.h b/gdb/expression.h
index 2e2d2a0..c485b15 100644
--- a/gdb/expression.h
+++ b/gdb/expression.h
@@ -296,6 +296,11 @@ enum parser_flag
/* This flag is set if a top-level comma terminates the
expression. */
PARSER_COMMA_TERMINATES = (1 << 1),
+
+ /* This flag is set if the parser should print debugging output as
+ it parses. For yacc-based parsers, this translates to setting
+ yydebug. */
+ PARSER_DEBUG = (1 << 2),
};
DEF_ENUM_FLAGS_TYPE (enum parser_flag, parser_flags);