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/objc-lang.c | |
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/objc-lang.c')
-rw-r--r-- | gdb/objc-lang.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/objc-lang.c b/gdb/objc-lang.c index 4a9dee4..ccbe7c1 100644 --- a/gdb/objc-lang.c +++ b/gdb/objc-lang.c @@ -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. */ |