diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-11-12 21:45:08 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-11-12 21:45:08 +0000 |
commit | df407dfe2e8452c0a3edfcf50d55942ff0273433 (patch) | |
tree | 11b770a7071b50d36d54f0e817d8c8c4f60ce076 /gdb/varobj.c | |
parent | 69e5711542042a5b591907f8f96d28fd8d2c3c17 (diff) | |
download | gdb-df407dfe2e8452c0a3edfcf50d55942ff0273433.zip gdb-df407dfe2e8452c0a3edfcf50d55942ff0273433.tar.gz gdb-df407dfe2e8452c0a3edfcf50d55942ff0273433.tar.bz2 |
2004-11-12 Andrew Cagney <cagney@gnu.org>
* value.h (VALUE_TYPE, VALUE_NEXT, VALUE_OFFSET, VALUE_BITSIZE)
(VALUE_BITPOS): Delete.
(value_type, value_offset, value_bitsize, value_bitpos): Declare.
* value.c (value_type, value_offset, value_bitpos)
(value_bitsize): New functions. Update references.
* arm-tdep.c, gnu-v3-abi.c, hpacc-abi.c, gnu-v2-abi.c: Update.
* f-valprint.c, cp-valprint.c, c-valprint.c: Update.
* ada-valprint.c, typeprint.c, scm-valprint.c, scm-exp.c: Update.
* p-valprint.c, jv-valprint.c, jv-lang.c, varobj.c: Update.
* objc-lang.c, ada-lang.c, std-regs.c, stack.c: Update.
* infcall.c, linespec.c, printcmd.c, valarith.c: Update.
* valops.c, eval.c, findvar.c, breakpoint.c: Update.
* tracepoint.c, ax-gdb.c, mi/mi-main.c, cli/cli-dump.c:
* rs6000-tdep.c, ppc-sysv-tdep.c: Update.
Diffstat (limited to 'gdb/varobj.c')
-rw-r--r-- | gdb/varobj.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/varobj.c b/gdb/varobj.c index 8c1cd57..23a8bb3 100644 --- a/gdb/varobj.c +++ b/gdb/varobj.c @@ -505,7 +505,7 @@ varobj_create (char *objname, else var->value = evaluate_type (var->root->exp); - var->type = VALUE_TYPE (var->value); + var->type = value_type (var->value); /* Set language info */ lang = variable_language (var); @@ -744,7 +744,7 @@ varobj_get_type (struct varobj *var) /* To print the type, we simply create a zero ``struct value *'' and cast it to our type. We then typeprint this variable. */ val = value_zero (var->type, not_lval); - type_print (VALUE_TYPE (val), "", stb, -1); + type_print (value_type (val), "", stb, -1); thetype = ui_file_xstrdup (stb, &length); do_cleanups (old_chain); @@ -1705,7 +1705,7 @@ type_of_child (struct varobj *var) /* If the child had no evaluation errors, var->value will be non-NULL and contain a valid type. */ if (var->value != NULL) - return VALUE_TYPE (var->value); + return value_type (var->value); /* Otherwise, we must compute the type. */ return (*var->root->lang->type_of_child) (var->parent, var->index); @@ -2093,7 +2093,7 @@ c_value_of_variable (struct varobj *var) if (VALUE_LAZY (var->value)) gdb_value_fetch_lazy (var->value); - val_print (VALUE_TYPE (var->value), + val_print (value_type (var->value), VALUE_CONTENTS_RAW (var->value), 0, VALUE_ADDRESS (var->value), stb, format_code[(int) var->format], 1, 0, 0); @@ -2378,8 +2378,8 @@ cplus_value_of_child (struct varobj *parent, int index) { struct value *temp = NULL; - if (TYPE_CODE (VALUE_TYPE (parent->value)) == TYPE_CODE_PTR - || TYPE_CODE (VALUE_TYPE (parent->value)) == TYPE_CODE_REF) + if (TYPE_CODE (value_type (parent->value)) == TYPE_CODE_PTR + || TYPE_CODE (value_type (parent->value)) == TYPE_CODE_REF) { if (!gdb_value_ind (parent->value, &temp)) return NULL; |