diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2022-09-21 11:05:21 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2022-09-21 11:05:21 -0400 |
commit | df86565b31bf12aab6fdceade49169bc6f378b13 (patch) | |
tree | 76d5944661919552ce4ea01ac49188e151d72fa7 /gdb/nds32-tdep.c | |
parent | b6cdbc9a8173b9e6cc8cfc284caa0efa8129ca02 (diff) | |
download | fsf-binutils-gdb-df86565b31bf12aab6fdceade49169bc6f378b13.zip fsf-binutils-gdb-df86565b31bf12aab6fdceade49169bc6f378b13.tar.gz fsf-binutils-gdb-df86565b31bf12aab6fdceade49169bc6f378b13.tar.bz2 |
gdb: remove TYPE_LENGTH
Remove the macro, replace all uses with calls to type::length.
Change-Id: Ib9bdc954576860b21190886534c99103d6a47afb
Diffstat (limited to 'gdb/nds32-tdep.c')
-rw-r--r-- | gdb/nds32-tdep.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/nds32-tdep.c b/gdb/nds32-tdep.c index 5b55523..23e9ada 100644 --- a/gdb/nds32-tdep.c +++ b/gdb/nds32-tdep.c @@ -1453,7 +1453,7 @@ nds32_push_dummy_call (struct gdbarch *gdbarch, struct value *function, if (align == 0) continue; - sp -= TYPE_LENGTH (type); + sp -= type->length (); sp = align_down (sp, align); } @@ -1471,7 +1471,7 @@ nds32_push_dummy_call (struct gdbarch *gdbarch, struct value *function, type = value_type (args[i]); calling_use_fpr = nds32_check_calling_use_fpr (type); - len = TYPE_LENGTH (type); + len = type->length (); align = type_align (type); val = value_contents (args[i]).data (); @@ -1658,7 +1658,7 @@ nds32_extract_return_value (struct gdbarch *gdbarch, struct type *type, int len; calling_use_fpr = nds32_check_calling_use_fpr (type); - len = TYPE_LENGTH (type); + len = type->length (); if (abi_use_fpr && calling_use_fpr) { @@ -1748,7 +1748,7 @@ nds32_store_return_value (struct gdbarch *gdbarch, struct type *type, int len; calling_use_fpr = nds32_check_calling_use_fpr (type); - len = TYPE_LENGTH (type); + len = type->length (); if (abi_use_fpr && calling_use_fpr) { @@ -1809,7 +1809,7 @@ nds32_return_value (struct gdbarch *gdbarch, struct value *func_type, struct type *type, struct regcache *regcache, gdb_byte *readbuf, const gdb_byte *writebuf) { - if (TYPE_LENGTH (type) > 8) + if (type->length () > 8) { return RETURN_VALUE_STRUCT_CONVENTION; } |