gdb: LoongArch: fix failed testcases in gdb.base/align-c.exp
authorTiezhu Yang <yangtiezhu@loongson.cn>
Tue, 15 Mar 2022 00:53:27 +0000 (08:53 +0800)
committerTiezhu Yang <yangtiezhu@loongson.cn>
Tue, 15 Mar 2022 01:23:48 +0000 (09:23 +0800)
commite34f44e1bf02c91825da11d47b3fadebc5bef451
treed56414defb439d449b5b6f8bcb9f9505c4c902e3
parentbf573a0cc6e43e7630b4b22f59006116a31d28ff
gdb: LoongArch: fix failed testcases in gdb.base/align-c.exp

When execute the following command on LoongArch:

  make check-gdb TESTS="gdb.base/align-c.exp"

there exist some failed testcases:

  ...
  FAIL: gdb.base/align-c.exp: print _Alignof(struct align_pair_long_double_x_float)
  FAIL: gdb.base/align-c.exp: print _Alignof(struct align_pair_long_double_x_double)
  FAIL: gdb.base/align-c.exp: print _Alignof(struct align_pair_long_double_x_long_double)
  ...

According to LoongArch ELF ABI specification [1], set the target data types
of floating-point to fix the above failed testcases.

[1] https://loongson.github.io/LoongArch-Documentation/LoongArch-ELF-ABI-EN.html

Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
gdb/loongarch-tdep.c