aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdb-gdb.py
diff options
context:
space:
mode:
authorDoug Evans <xdje42@gmail.com>2015-01-31 21:40:57 -0800
committerDoug Evans <xdje42@gmail.com>2015-01-31 21:40:57 -0800
commitae6ae97502b183d0cdb9c298a60fa05240f230bf (patch)
tree21c2fcba0eba7afd4d1ac80e98ec2dd21698fcd1 /gdb/gdb-gdb.py
parent09e2d7c72040dd2d1833c140b5f04a85bc3f6a0f (diff)
downloadgdb-ae6ae97502b183d0cdb9c298a60fa05240f230bf.zip
gdb-ae6ae97502b183d0cdb9c298a60fa05240f230bf.tar.gz
gdb-ae6ae97502b183d0cdb9c298a60fa05240f230bf.tar.bz2
Move vptr_{fieldno,basetype} out of main_type, and update everything accordingly.
Every type has to pay the price in memory usage for their presence. The proper place for them is in the type_specific field which exists for this purpose. gdb/ChangeLog: * dwarf2read.c (process_structure_scope): Update setting of TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO. * gdbtypes.c (internal_type_vptr_fieldno): New function. (set_type_vptr_fieldno): New function. (internal_type_vptr_basetype): New function. (set_type_vptr_basetype): New function. (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE. (allocate_cplus_struct_type): Initialize vptr_fieldno. (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ... (print_cplus_stuff): ... moved here. (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE. * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype moved to ... (struct cplus_struct_type): ... here. All uses updated. (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite. (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare. (internal_type_vptr_basetype, set_type_vptr_basetype): Declare. * stabsread.c (read_tilde_fields): Update setting of TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE. gdb/testsuite/ChangeLog: * gdb.base/maint.exp <maint print type argc>: Update expected output.
Diffstat (limited to 'gdb/gdb-gdb.py')
-rw-r--r--gdb/gdb-gdb.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/gdb/gdb-gdb.py b/gdb/gdb-gdb.py
index 5cc045b..61493b6 100644
--- a/gdb/gdb-gdb.py
+++ b/gdb/gdb-gdb.py
@@ -226,7 +226,6 @@ class StructMainTypePrettyPrinter:
fields.append("flags = [%s]" % self.flags_to_string())
fields.append("owner = %s" % self.owner_to_string())
fields.append("target_type = %s" % self.val['target_type'])
- fields.append("vptr_basetype = %s" % self.val['vptr_basetype'])
if self.val['nfields'] > 0:
for fieldno in range(self.val['nfields']):
fields.append(self.struct_field_img(fieldno))