]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Add expected type parameter to evaluate_expression
authorTom Tromey <tom@tromey.com>
Wed, 16 Dec 2020 01:35:13 +0000 (18:35 -0700)
committerTom Tromey <tom@tromey.com>
Wed, 16 Dec 2020 01:57:07 +0000 (18:57 -0700)
commitefd7ff149a42c865cac422e3bafdf386c91c5373
tree1ad19dfafeaca30bc40c43adf55e826327ead802
parent2adab65cc07f07a581d57b05dfbc100952fab748
Add expected type parameter to evaluate_expression

While working on the expression rewrite, I found a few spots that
called the internal functions of the expression evaluator, just to
pass in an expected type.  This patch adds a parameter to
evaluate_expression so that these functions can avoid this dependency.

Regression tested on x86-64 Fedora 28.

gdb/ChangeLog
2020-12-15  Tom Tromey  <tom@tromey.com>

* stap-probe.c (stap_probe::evaluate_argument): Use
evaluate_expression.
* dtrace-probe.c (dtrace_probe::evaluate_argument): Use
evaluate_expression.
* value.h (evaluate_expression): Add expect_type parameter.
* objc-lang.c (print_object_command): Call evaluate_expression.
* eval.c (evaluate_expression): Add expect_type parameter.
gdb/ChangeLog
gdb/dtrace-probe.c
gdb/eval.c
gdb/objc-lang.c
gdb/stap-probe.c
gdb/value.h