diff options
author | Pedro Alves <palves@redhat.com> | 2011-02-14 11:24:19 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2011-02-14 11:24:19 +0000 |
commit | 9fbdca0d6697412dee250b11fea99691673cd022 (patch) | |
tree | f759c0ac4300d04b7cf7a5e455de95098a13871d /gdb/value.c | |
parent | c8c1c22feaaf76ddd437776a3cdeaedf4695916a (diff) | |
download | gdb-9fbdca0d6697412dee250b11fea99691673cd022.zip gdb-9fbdca0d6697412dee250b11fea99691673cd022.tar.gz gdb-9fbdca0d6697412dee250b11fea99691673cd022.tar.bz2 |
gdb/
* value.c (struct internalvar) <enum internalvar_kind>: Remove
INTERNALVAR_POINTER.
<pointer>: Delete.
(value_of_internalvar): Remove INTERNALVAR_POINTER handling.
(set_internalvar): Remove special TYPE_CODE_PTR handling.
(preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
Diffstat (limited to 'gdb/value.c')
-rw-r--r-- | gdb/value.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/gdb/value.c b/gdb/value.c index a8be549..92d857f 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -1444,9 +1444,6 @@ struct internalvar /* The variable holds an integer value. */ INTERNALVAR_INTEGER, - /* The variable holds a pointer value. */ - INTERNALVAR_POINTER, - /* The variable holds a GDB-provided string. */ INTERNALVAR_STRING, @@ -1478,13 +1475,6 @@ struct internalvar LONGEST val; } integer; - /* A pointer value used with INTERNALVAR_POINTER. */ - struct - { - struct type *type; - CORE_ADDR val; - } pointer; - /* A string value used with INTERNALVAR_STRING. */ char *string; } u; @@ -1636,10 +1626,6 @@ value_of_internalvar (struct gdbarch *gdbarch, struct internalvar *var) val = value_from_longest (var->u.integer.type, var->u.integer.val); break; - case INTERNALVAR_POINTER: - val = value_from_pointer (var->u.pointer.type, var->u.pointer.val); - break; - case INTERNALVAR_STRING: val = value_cstring (var->u.string, strlen (var->u.string), builtin_type (gdbarch)->builtin_char); @@ -1770,12 +1756,6 @@ set_internalvar (struct internalvar *var, struct value *val) new_data.integer.val = value_as_long (val); break; - case TYPE_CODE_PTR: - new_kind = INTERNALVAR_POINTER; - new_data.pointer.type = value_type (val); - new_data.pointer.val = value_as_address (val); - break; - default: new_kind = INTERNALVAR_VALUE; new_data.value = value_copy (val); @@ -1974,12 +1954,6 @@ preserve_one_internalvar (struct internalvar *var, struct objfile *objfile, = copy_type_recursive (objfile, var->u.integer.type, copied_types); break; - case INTERNALVAR_POINTER: - if (TYPE_OBJFILE (var->u.pointer.type) == objfile) - var->u.pointer.type - = copy_type_recursive (objfile, var->u.pointer.type, copied_types); - break; - case INTERNALVAR_VALUE: preserve_one_value (var->u.value, objfile, copied_types); break; |