gdb: LoongArch: Fix code style issues
authorTiezhu Yang <yangtiezhu@loongson.cn>
Sat, 16 Jul 2022 11:05:39 +0000 (19:05 +0800)
committerTiezhu Yang <yangtiezhu@loongson.cn>
Tue, 26 Jul 2022 14:17:02 +0000 (22:17 +0800)
commit4a75d7c5384a2c1cbaa0f341d844713d9ae475d6
tree7cb0927b8e4e102dad31c5d3ff02acb8ed8d2d9d
parent91896b4d6a7d312e850094eaaa5b965a9e3dc39b
gdb: LoongArch: Fix code style issues

Fix some code style issues suggested by Tom Tromey and Andrew Burgess,
thank you.

(1) Put an introductory comment to explain the purpose for some functions.

(2) Modify the the attribute code to make it portable.

(3) Remove globals and pass pointers to locals.

(4) Remove "*" in the subsequent comment lines.

(5) Put two spaces before "{" and "}".

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