diff options
author | Joel Brobecker <brobecker@gnat.com> | 2009-06-23 16:37:19 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2009-06-23 16:37:19 +0000 |
commit | 4b27a62068e668a3388d810ac078edadc5ff8822 (patch) | |
tree | 8f2bdbad9b4dc60daa8957f9eed8df34430d8f7c /gdb/objc-lang.c | |
parent | 69de3c6af9e2484e4ac27d2a79fa2abb25b552d9 (diff) | |
download | gdb-4b27a62068e668a3388d810ac078edadc5ff8822.zip gdb-4b27a62068e668a3388d810ac078edadc5ff8822.tar.gz gdb-4b27a62068e668a3388d810ac078edadc5ff8822.tar.bz2 |
* ada-lang.c (evaluate_subexp): Delete. Use the version from eval.c.
(evaluate_subexp_type): Reimplement using evaluate_subexp.
* value.h (evaluate_subexp): Add declaration.
* eval.c (evaluate_subexp): Make non-static.
* objc-lang.c (print_object_command): Use evaluate_subexp.
Diffstat (limited to 'gdb/objc-lang.c')
-rw-r--r-- | gdb/objc-lang.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/objc-lang.c b/gdb/objc-lang.c index cff54bb..a67ba37 100644 --- a/gdb/objc-lang.c +++ b/gdb/objc-lang.c @@ -1421,8 +1421,8 @@ print_object_command (char *args, int from_tty) make_cleanup (free_current_contents, &expr); int pc = 0; - object = expr->language_defn->la_exp_desc->evaluate_exp - (builtin_type (expr->gdbarch)->builtin_data_ptr, expr, &pc, EVAL_NORMAL); + object = evaluate_subexp (builtin_type (expr->gdbarch)->builtin_data_ptr, + expr, &pc, EVAL_NORMAL); do_cleanups (old_chain); } |