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/expression.h | |
parent | b785bb6d1869657ec26003b97548bdd4bde43c90 (diff) | |
download | binutils-43048e46db188e546ba2107bdffcc7eb751c91df.zip binutils-43048e46db188e546ba2107bdffcc7eb751c91df.tar.gz binutils-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/expression.h')
-rw-r--r-- | gdb/expression.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/expression.h b/gdb/expression.h index 77949dd..5bfb051 100644 --- a/gdb/expression.h +++ b/gdb/expression.h @@ -222,7 +222,8 @@ struct expression /* Evaluate the expression. EXPECT_TYPE is the context type of the expression; normally this should be nullptr. NOSIDE controls how evaluation is performed. */ - struct value *evaluate (struct type *expect_type, enum noside noside); + struct value *evaluate (struct type *expect_type = nullptr, + enum noside noside = EVAL_NORMAL); /* Language it was entered in. */ const struct language_defn *language_defn; |