mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-28 23:39:35 +08:00
gdb: remove TYPE_LENGTH
Remove the macro, replace all uses with calls to type::length. Change-Id: Ib9bdc954576860b21190886534c99103d6a47afb
This commit is contained in:
@ -225,7 +225,7 @@ dump_value_to_file (const char *cmd, const char *mode, const char *file_format)
|
||||
/* Have everything. Open/write the data. */
|
||||
if (file_format == NULL || strcmp (file_format, "binary") == 0)
|
||||
dump_binary_file (filename.get (), mode, value_contents (val).data (),
|
||||
TYPE_LENGTH (value_type (val)));
|
||||
value_type (val)->length ());
|
||||
else
|
||||
{
|
||||
CORE_ADDR vaddr;
|
||||
@ -242,7 +242,7 @@ dump_value_to_file (const char *cmd, const char *mode, const char *file_format)
|
||||
|
||||
dump_bfd_file (filename.get (), mode, file_format, vaddr,
|
||||
value_contents (val).data (),
|
||||
TYPE_LENGTH (value_type (val)));
|
||||
value_type (val)->length ());
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user