gdb: remove TYPE_LENGTH
Remove the macro, replace all uses with calls to type::length. Change-Id: Ib9bdc954576860b21190886534c99103d6a47afb
This commit is contained in:
parent
b6cdbc9a81
commit
df86565b31
150 changed files with 1320 additions and 1323 deletions
|
@ -1041,8 +1041,8 @@ parse_symbol (SYMR *sh, union aux_ext *ax, char *ext_sh, int bigend,
|
|||
are hopefully rare enough.
|
||||
Alpha cc -migrate has a sh.value field of zero, we adjust
|
||||
that too. */
|
||||
if (TYPE_LENGTH (t) == t->num_fields ()
|
||||
|| TYPE_LENGTH (t) == 0)
|
||||
if (t->length () == t->num_fields ()
|
||||
|| t->length () == 0)
|
||||
t->set_length (gdbarch_int_bit (gdbarch) / HOST_CHAR_BIT);
|
||||
for (ext_tsym = ext_sh + external_sym_size;
|
||||
;
|
||||
|
@ -1869,7 +1869,7 @@ upgrade_type (int fd, struct type **tpp, int tq, union aux_ext *ax, int bigend,
|
|||
dbx seems to ignore it too. */
|
||||
|
||||
/* TYPE_TARGET_STUB now takes care of the zero TYPE_LENGTH problem. */
|
||||
if (TYPE_LENGTH (*tpp) == 0)
|
||||
if ((*tpp)->length () == 0)
|
||||
t->set_target_is_stub (true);
|
||||
|
||||
*tpp = t;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue