]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: LoongArch: Adjust loongarch_stopped_data_address()
authorHui Li <lihui@loongson.cn>
Mon, 6 Jan 2025 10:21:22 +0000 (18:21 +0800)
committerTiezhu Yang <yangtiezhu@loongson.cn>
Wed, 15 Jan 2025 13:31:10 +0000 (21:31 +0800)
commit493975edcb722a548344893114615c6f1c194502
tree67bdbf4e4910cec2a5661f71d50d7c3f43f250d5
parentf6f845bb3533fe145285526a09ef4a03dc9fd8b6
gdb: LoongArch: Adjust loongarch_stopped_data_address()

loongarch_stopped_data_address() is a common function and will be used by
gdb and gdbserver, so move its definition from gdb/loongarch-linux-nat.c
to gdb/nat/loongarch-hw-point.c. This is preparation for later gdbserver
patch on LoongArch and is no effect for the current code.

Signed-off-by: Hui Li <lihui@loongson.cn>
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
gdb/loongarch-linux-nat.c
gdb/nat/loongarch-hw-point.c
gdb/nat/loongarch-hw-point.h