Fix loongarch_iterate_over_regset_sections for non-native targets.
authorJohn Baldwin <jhb@FreeBSD.org>
Mon, 23 May 2022 17:59:13 +0000 (10:59 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Mon, 23 May 2022 17:59:13 +0000 (10:59 -0700)
commitd9b6e047f60ce2129eff28ad1c6690949293366b
tree9229222f5825b12c511978d404bc754319b5a14b
parenta6b446b22270b52dd4739e9ab094e11b307ff0b5
Fix loongarch_iterate_over_regset_sections for non-native targets.

Define a constant for the number of registers stored in a register set
and use this with register_size to compute the size of the
general-purpose register set in core dumps.

This also fixes the build on hosts such as FreeBSD that do not define
an elf_gregset_t type.
gdb/loongarch-linux-tdep.c