gdb: LoongArch: Modify the result of the info reg command
authorHui Li <lihui@loongson.cn>
Thu, 16 Feb 2023 00:59:10 +0000 (08:59 +0800)
committerTiezhu Yang <yangtiezhu@loongson.cn>
Thu, 23 Feb 2023 12:35:56 +0000 (20:35 +0800)
commit9d7c73af4bf5f1d416a90ec5327279b6f1092a83
tree7660b36fe38976b108876f8444e5e4527efea303
parentd273049e140ef324be2b018e235ae0ba8021a769
gdb: LoongArch: Modify the result of the info reg command

The "info register" command should only display general registers,
but it shows the information of all registers in the current code,
add loongarch_register_reggroup_p() so that we can get the expected
result.

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