mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-12-19 01:19:41 +08:00
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().
This commit is contained in:
@@ -1164,9 +1164,7 @@ print_object_command (const char *args, int from_tty)
|
||||
{
|
||||
expression_up expr = parse_expression (args);
|
||||
|
||||
object
|
||||
= evaluate_expression (expr.get (),
|
||||
builtin_type (expr->gdbarch)->builtin_data_ptr);
|
||||
object = expr->evaluate (builtin_type (expr->gdbarch)->builtin_data_ptr);
|
||||
}
|
||||
|
||||
/* Validate the address for sanity. */
|
||||
|
||||
Reference in New Issue
Block a user