From 47357fdc1db04240be98c683de776b3a351e945b Mon Sep 17 00:00:00 2001 From: Lancelot SIX Date: Fri, 16 Jul 2021 22:10:07 +0000 Subject: [PATCH] gdb/testsuite: Declare that riscv*-*-linux* cannot hardware_single_step Many tests fail in gdb/testsuite/gdb.base/sigstep.exp on riscv64-linux-gnu. Those tests check that when stepping, if the debuggee received a signal it should step inside the signal handler. This feature requires hardware support for single stepping (or at least kernel support), but none are available on riscv*-linux-gnu hosts, at the moment at least. This patch adds RISC-V to the list of configurations that does not have hardware single step capability, disabling tests relying on such feature. Tested on riscv64-linux-gnu. --- gdb/testsuite/lib/gdb.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 04ca56168a1..e79e0622f9d 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -2856,7 +2856,7 @@ proc can_hardware_single_step {} { if { [istarget "arm*-*-*"] || [istarget "mips*-*-*"] || [istarget "tic6x-*-*"] || [istarget "sparc*-*-linux*"] - || [istarget "nios2-*-*"] } { + || [istarget "nios2-*-*"] || [istarget "riscv*-*-linux*"] } { return 0 } -- 2.30.2