diff options
Diffstat (limited to 'gdb/stack.c')
-rw-r--r-- | gdb/stack.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/stack.c b/gdb/stack.c index c36f144..9e239ed 100644 --- a/gdb/stack.c +++ b/gdb/stack.c @@ -467,7 +467,7 @@ print_frame_arg (const frame_print_options &fp_opts, because our standard indentation here is 4 spaces, and val_print indents 2 for each recurse. */ - annotate_arg_value (value_type (arg->val)); + annotate_arg_value (arg->val->type ()); /* Use the appropriate language to display our symbol, unless the user forced the language to a specific language. */ @@ -578,7 +578,7 @@ read_frame_arg (const frame_print_options &fp_opts, if (val && entryval && !current_uiout->is_mi_like_p ()) { - struct type *type = value_type (val); + struct type *type = val->type (); if (value_lazy (val)) value_fetch_lazy (val); @@ -601,7 +601,7 @@ read_frame_arg (const frame_print_options &fp_opts, val_deref = coerce_ref (val); if (value_lazy (val_deref)) value_fetch_lazy (val_deref); - type_deref = value_type (val_deref); + type_deref = val_deref->type (); entryval_deref = coerce_ref (entryval); if (value_lazy (entryval_deref)) @@ -2742,7 +2742,7 @@ return_command (const char *retval_exp, int from_tty) error (_("Return value type not available for selected " "stack frame.\n" "Please use an explicit cast of the value to return.")); - return_type = value_type (return_value); + return_type = return_value->type (); } return_type = check_typedef (return_type); return_value = value_cast (return_type, return_value); @@ -2765,7 +2765,7 @@ return_command (const char *retval_exp, int from_tty) return_value = NULL; else if (thisfun != NULL) { - if (is_nocall_function (check_typedef (value_type (function)))) + if (is_nocall_function (check_typedef (function->type ()))) { query_prefix = string_printf ("Function '%s' does not follow the target " @@ -2817,7 +2817,7 @@ return_command (const char *retval_exp, int from_tty) /* Store RETURN_VALUE in the just-returned register set. */ if (return_value != NULL) { - struct type *return_type = value_type (return_value); + struct type *return_type = return_value->type (); struct gdbarch *cache_arch = get_current_regcache ()->arch (); gdb_assert (rv_conv != RETURN_VALUE_STRUCT_CONVENTION |