aboutsummaryrefslogtreecommitdiff
path: root/gdb/eval.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2023-04-28 08:08:49 -0600
committerTom Tromey <tromey@adacore.com>2023-05-23 13:57:54 -0600
commitb8c03634d6537ee7ad068ab840b6e78483aaca80 (patch)
treeaf65690289d5f6db975f3318064a830d3f95e8ca /gdb/eval.c
parent562db568441ed0f7e258b843916c34572170cc6d (diff)
downloadgdb-b8c03634d6537ee7ad068ab840b6e78483aaca80.zip
gdb-b8c03634d6537ee7ad068ab840b6e78483aaca80.tar.gz
gdb-b8c03634d6537ee7ad068ab840b6e78483aaca80.tar.bz2
Introduce and use parser flags
This patch adds a new parser_flags type and changes the parser APIs to use it rather than a collection of 'int' and 'bool'. More flags will be added in subsquent patches.
Diffstat (limited to 'gdb/eval.c')
-rw-r--r--gdb/eval.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/eval.c b/gdb/eval.c
index 9d5ca0b..d8d53c2 100644
--- a/gdb/eval.c
+++ b/gdb/eval.c
@@ -81,7 +81,8 @@ parse_and_eval (const char *exp)
struct value *
parse_to_comma_and_eval (const char **expp)
{
- expression_up expr = parse_exp_1 (expp, 0, nullptr, 1);
+ expression_up expr = parse_exp_1 (expp, 0, nullptr,
+ PARSER_COMMA_TERMINATES);
return expr->evaluate ();
}