gdb: LoongArch: Handle the function return value
authorTiezhu Yang <yangtiezhu@loongson.cn>
Mon, 25 Jul 2022 12:42:59 +0000 (20:42 +0800)
committerTiezhu Yang <yangtiezhu@loongson.cn>
Tue, 26 Jul 2022 14:17:06 +0000 (22:17 +0800)
commitecbff28a4457d0ebe11023fa9671d62251e7463d
tree282d7982fec7aaf8dc8b851f7838e39646e3d9a2
parent4a75d7c5384a2c1cbaa0f341d844713d9ae475d6
gdb: LoongArch: Handle the function return value

According to LoongArch ELF ABI specification [1], handle the function
return value of various types.

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

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