diff options
author | Tom Tromey <tromey@adacore.com> | 2023-04-28 07:24:59 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-05-01 11:04:13 -0600 |
commit | 43048e46db188e546ba2107bdffcc7eb751c91df (patch) | |
tree | c7c8470c5d69cdac5657f5413ad1d1a185e38775 /gdb/cli | |
parent | b785bb6d1869657ec26003b97548bdd4bde43c90 (diff) | |
download | fsf-binutils-gdb-43048e46db188e546ba2107bdffcc7eb751c91df.zip fsf-binutils-gdb-43048e46db188e546ba2107bdffcc7eb751c91df.tar.gz fsf-binutils-gdb-43048e46db188e546ba2107bdffcc7eb751c91df.tar.bz2 |
Remove evaluate_expression
evaluate_expression is just a little wrapper for a method on
expression. Removing it also removes a lot of ugly (IMO) calls to
get().
Diffstat (limited to 'gdb/cli')
-rw-r--r-- | gdb/cli/cli-script.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/cli/cli-script.c b/gdb/cli/cli-script.c index 294a5f1..b96dd74 100644 --- a/gdb/cli/cli-script.c +++ b/gdb/cli/cli-script.c @@ -567,7 +567,7 @@ execute_control_command_1 (struct command_line *cmd, int from_tty) /* Evaluate the expression. */ { scoped_value_mark mark; - value *val = evaluate_expression (expr.get ()); + value *val = expr->evaluate (); cond_result = value_true (val); } @@ -622,7 +622,7 @@ execute_control_command_1 (struct command_line *cmd, int from_tty) /* Evaluate the conditional. */ { scoped_value_mark mark; - value *val = evaluate_expression (expr.get ()); + value *val = expr->evaluate (); /* Choose which arm to take commands from based on the value of the conditional expression. */ |