forked from Imagelibrary/binutils-gdb
Introduce TYPE_SPECIFIC_RUST_STUFF
This adds a new enum constant, TYPE_SPECIFIC_RUST_STUFF, and changes the DWARF reader to set this on Rust types. This will be used as a flag in a later patch. Note that the size of the type_specific_field bitfield had to be increased. I checked that this did not impact the size of main_type.
This commit is contained in:
@@ -5383,6 +5383,10 @@ recursive_dump_type (struct type *type, int spaces)
|
||||
print_gnat_stuff (type, spaces);
|
||||
break;
|
||||
|
||||
case TYPE_SPECIFIC_RUST_STUFF:
|
||||
gdb_printf ("%*srust\n", spaces, "");
|
||||
break;
|
||||
|
||||
case TYPE_SPECIFIC_FLOATFORMAT:
|
||||
gdb_printf ("%*sfloatformat ", spaces, "");
|
||||
if (TYPE_FLOATFORMAT (type) == NULL
|
||||
@@ -5623,6 +5627,9 @@ copy_type_recursive (struct type *type, htab_t copied_types)
|
||||
case TYPE_SPECIFIC_GNAT_STUFF:
|
||||
INIT_GNAT_SPECIFIC (new_type);
|
||||
break;
|
||||
case TYPE_SPECIFIC_RUST_STUFF:
|
||||
INIT_RUST_SPECIFIC (new_type);
|
||||
break;
|
||||
case TYPE_SPECIFIC_SELF_TYPE:
|
||||
set_type_self_type (new_type,
|
||||
copy_type_recursive (TYPE_SELF_TYPE (type),
|
||||
|
||||
Reference in New Issue
Block a user