gdb/nds32: Use type_align instead of nds32_type_align
authorAndrew Burgess <andrew.burgess@embecosm.com>
Fri, 12 Apr 2019 14:07:51 +0000 (15:07 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Tue, 23 Apr 2019 21:02:59 +0000 (22:02 +0100)
commitecbc06d2a687f369da7c304201c9f2cbfed80ec6
tree0c773c576379bad72aa7415c64175fe46ce65ba6
parent030197b43cd8ccfe6869f798dd39fa27a29c0e01
gdb/nds32: Use type_align instead of nds32_type_align

The general type_align method should be a suitable alternative to
nds32_type_align, so switch to use that.

The only change this will introduce is related to static fields in a
struct or union, the existing code doesn't take account of static
fields when computing the alignment for structs of unions, though this
is probably a bug - which would probably be exposed by the test case
gdb.cp/many-args.exp, though I don't have any way to test this target
right now.

gdb/ChangeLog:

* nds32-tdep.c (nds32_type_align): Delete.
(nds32_push_dummy_call): Use type_align instead.
gdb/ChangeLog
gdb/nds32-tdep.c