Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] gdbserver: Remove srv_linux_usrregs setting in RISCV
@ 2022-05-09 12:39 Youling Tang
  2022-05-09 14:17 ` Tom Tromey
  0 siblings, 1 reply; 4+ messages in thread
From: Youling Tang @ 2022-05-09 12:39 UTC (permalink / raw)
  To: gdb-patches; +Cc: Maciej W . Rozycki

In the linux kernel code of RISCV, ptrace does not have the implementation
of PTRACE_POKEUSR/PTRACE_PEEKUSR in the arch_ptrace function (like aarch64),
If srv_linux_usrregs is set to yes, HAVE_LINUX_USRREGS will be defined, so
remove the srv_linux_usrregs setting.

Signed-off-by: Youling Tang <tangyouling@loongson.cn>
---
 gdbserver/configure.srv | 1 -
 1 file changed, 1 deletion(-)

diff --git a/gdbserver/configure.srv b/gdbserver/configure.srv
index d37053628fc..6840c3964cf 100644
--- a/gdbserver/configure.srv
+++ b/gdbserver/configure.srv
@@ -257,7 +257,6 @@ case "${gdbserver_host}" in
 			srv_tgtobj="${srv_tgtobj} linux-riscv-low.o"
 			srv_tgtobj="${srv_tgtobj} ${srv_linux_obj}"
 			srv_linux_regsets=yes
-			srv_linux_usrregs=yes
 			srv_linux_thread_db=yes
 			;;
   s390*-*-linux*)	srv_regobj="s390-linux32.o"
-- 
2.20.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-05-13 16:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-09 12:39 [PATCH] gdbserver: Remove srv_linux_usrregs setting in RISCV Youling Tang
2022-05-09 14:17 ` Tom Tromey
2022-05-09 14:44   ` Maciej W. Rozycki
2022-05-13 16:32   ` Palmer Dabbelt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox