mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 17:18:24 +08:00
gdb: include allocated/associated properties in 'maint print type'
Adds the allocated and associated dynamic properties into the output of the 'maintenance print type' command. gdb/ChangeLog: * gdbtypes (recursive_dump_type): Include allocated and associated properties.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2020-12-24 Andrew Burgess <andrew.burgess@embecosm.com>
|
||||||
|
|
||||||
|
* gdbtypes (recursive_dump_type): Include allocated and associated
|
||||||
|
properties.
|
||||||
|
|
||||||
2020-12-24 Lancelot SIX <lsix@lancelotsix.com>
|
2020-12-24 Lancelot SIX <lsix@lancelotsix.com>
|
||||||
|
|
||||||
* gdbtypes.c (is_scalar_type_recursive): Prevent comparison
|
* gdbtypes.c (is_scalar_type_recursive): Prevent comparison
|
||||||
|
@ -5271,6 +5271,24 @@ recursive_dump_type (struct type *type, int spaces)
|
|||||||
}
|
}
|
||||||
puts_filtered ("\n");
|
puts_filtered ("\n");
|
||||||
printf_filtered ("%*snfields %d ", spaces, "", type->num_fields ());
|
printf_filtered ("%*snfields %d ", spaces, "", type->num_fields ());
|
||||||
|
if (TYPE_ASSOCIATED_PROP (type) != nullptr
|
||||||
|
|| TYPE_ALLOCATED_PROP (type) != nullptr)
|
||||||
|
{
|
||||||
|
printf_filtered ("%*s", spaces, "");
|
||||||
|
if (TYPE_ASSOCIATED_PROP (type) != nullptr)
|
||||||
|
{
|
||||||
|
printf_filtered ("associated ");
|
||||||
|
dump_dynamic_prop (*TYPE_ASSOCIATED_PROP (type));
|
||||||
|
}
|
||||||
|
if (TYPE_ALLOCATED_PROP (type) != nullptr)
|
||||||
|
{
|
||||||
|
if (TYPE_ASSOCIATED_PROP (type) != nullptr)
|
||||||
|
printf_filtered (" ");
|
||||||
|
printf_filtered ("allocated ");
|
||||||
|
dump_dynamic_prop (*TYPE_ALLOCATED_PROP (type));
|
||||||
|
}
|
||||||
|
printf_filtered ("\n");
|
||||||
|
}
|
||||||
gdb_print_host_address (type->fields (), gdb_stdout);
|
gdb_print_host_address (type->fields (), gdb_stdout);
|
||||||
puts_filtered ("\n");
|
puts_filtered ("\n");
|
||||||
for (idx = 0; idx < type->num_fields (); idx++)
|
for (idx = 0; idx < type->num_fields (); idx++)
|
||||||
|
Reference in New Issue
Block a user