diff options
author | Tom Tromey <tromey@adacore.com> | 2023-04-28 08:45:48 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-05-23 13:57:54 -0600 |
commit | 2c64cbb737e801c5c3b0e0d8b03901b65b2f84dc (patch) | |
tree | 5cfbfd7e20f09dd213495cbe16b31383a01b96fc | |
parent | 87b647cfb13a47effebe185b7dcc733b45f51789 (diff) | |
download | binutils-2c64cbb737e801c5c3b0e0d8b03901b65b2f84dc.zip binutils-2c64cbb737e801c5c3b0e0d8b03901b65b2f84dc.tar.gz binutils-2c64cbb737e801c5c3b0e0d8b03901b65b2f84dc.tar.bz2 |
Add flags to parse_and_eval
This adds a flags parameter to parse_and_eval.
-rw-r--r-- | gdb/eval.c | 4 | ||||
-rw-r--r-- | gdb/value.h | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -67,9 +67,9 @@ parse_and_eval_long (const char *exp) } struct value * -parse_and_eval (const char *exp) +parse_and_eval (const char *exp, parser_flags flags) { - expression_up expr = parse_expression (exp); + expression_up expr = parse_expression (exp, nullptr, flags); return expr->evaluate (); } diff --git a/gdb/value.h b/gdb/value.h index d042d81..a9c77a0 100644 --- a/gdb/value.h +++ b/gdb/value.h @@ -1313,7 +1313,7 @@ extern void fetch_subexp_value (struct expression *exp, std::vector<value_ref_ptr> *val_chain, bool preserve_errors); -extern struct value *parse_and_eval (const char *exp); +extern struct value *parse_and_eval (const char *exp, parser_flags flags = 0); extern struct value *parse_to_comma_and_eval (const char **expp); |