]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdbserver: LoongArch: Simplify code with register number macros
authorYouling Tang <tangyouling@loongson.cn>
Sun, 10 Jul 2022 02:22:33 +0000 (10:22 +0800)
committerTiezhu Yang <yangtiezhu@loongson.cn>
Sun, 10 Jul 2022 09:27:50 +0000 (17:27 +0800)
commit3eba483364436567fd1b6ac4b5d82e23bb223a54
treee28a404bcf927b5bc244ccd8c96c70ce1551da50
parente5c0531cfe8667e4f510f6357e62f488113b7049
gdbserver: LoongArch: Simplify code with register number macros

Move "enum loongarch_regnum" to gdb/arch/loongarch.h so that the
macro definitions can be used in gdbserver/linux-loongarch-low.cc
to simplify the code.

Signed-off-by: Youling Tang <tangyouling@loongson.cn>
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
gdb/arch/loongarch.h
gdb/loongarch-tdep.h
gdbserver/linux-loongarch-low.cc