diff options
author | Tom Tromey <tromey@adacore.com> | 2023-08-04 13:39:46 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-09-05 11:02:34 -0600 |
commit | dec28322cf6db3b2e65bb833ba825bdfc90a3bb1 (patch) | |
tree | 83fde1248fee247c40822a8029d545eaf8bfeb0d /gdb/gdbtypes.c | |
parent | 49ed499c44d9368d2b954697f362452d1447eecf (diff) | |
download | gdb-dec28322cf6db3b2e65bb833ba825bdfc90a3bb1.zip gdb-dec28322cf6db3b2e65bb833ba825bdfc90a3bb1.tar.gz gdb-dec28322cf6db3b2e65bb833ba825bdfc90a3bb1.tar.bz2 |
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.
Diffstat (limited to 'gdb/gdbtypes.c')
-rw-r--r-- | gdb/gdbtypes.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index 5e15ec6..6b2adc8 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -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), |