summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYouling Tang <tangyouling@loongson.cn>2022-05-30 20:08:30 +0800
committerTiezhu Yang <yangtiezhu@loongson.cn>2022-06-14 22:21:43 +0800
commite5ab6af52d38ee068c1860ef113b7db4cc985cfb (patch)
tree8bad8cacb35f0635adbe82e3ed6837c0f5b9e3ef /gdbserver/configure.srv
parentRevert "Fix fbsd core matching" (diff)
downloadbinutils-gdb-e5ab6af52d38ee068c1860ef113b7db4cc985cfb.tar.gz
binutils-gdb-e5ab6af52d38ee068c1860ef113b7db4cc985cfb.tar.bz2
binutils-gdb-e5ab6af52d38ee068c1860ef113b7db4cc985cfb.zip
gdbserver: Add LoongArch/Linux support
Implement LoongArch/Linux support, including XML target description handling based on features determined, GPR regset support, and software breakpoint handling. In the Linux kernel code of LoongArch, ptrace implements PTRACE_POKEUSR and PTRACE_PEEKUSR in the arch_ptrace function, so srv_linux_usrregs is set to yes. With this patch on LoongArch: $ make check-gdb TESTS="gdb.server/server-connect.exp" [...] # of expected passes 18 [...] Signed-off-by: Youling Tang <tangyouling@loongson.cn> Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Diffstat (limited to 'gdbserver/configure.srv')
-rw-r--r--gdbserver/configure.srv6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdbserver/configure.srv b/gdbserver/configure.srv
index d37053628fc..ebb6b32a6c4 100644
--- a/gdbserver/configure.srv
+++ b/gdbserver/configure.srv
@@ -126,6 +126,12 @@ case "${gdbserver_host}" in
srv_tgtobj="$srv_linux_obj linux-ia64-low.o"
srv_linux_usrregs=yes
;;
+ loongarch*-*-linux*) srv_tgtobj="arch/loongarch.o linux-loongarch-low.o"
+ srv_tgtobj="${srv_tgtobj} ${srv_linux_obj}"
+ srv_linux_regsets=yes
+ srv_linux_usrregs=yes
+ srv_linux_thread_db=yes
+ ;;
m68*-*-linux*) if test "$gdb_cv_m68k_is_coldfire" = yes; then
srv_regobj=reg-cf.o
else