From cadfc59b0d721599b32fab6eeaba401360602e0f Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sun, 8 Jan 2023 10:53:55 -0700 Subject: Rename to allow_gdbserver_tests This changes skip_gdbserver_tests to invert the sense, and renames it to allow_gdbserver_tests. --- gdb/testsuite/lib/gdbserver-support.exp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'gdb/testsuite/lib') diff --git a/gdb/testsuite/lib/gdbserver-support.exp b/gdb/testsuite/lib/gdbserver-support.exp index 49ae561..30d94fd 100644 --- a/gdb/testsuite/lib/gdbserver-support.exp +++ b/gdb/testsuite/lib/gdbserver-support.exp @@ -160,12 +160,12 @@ proc find_gdbserver { } { return "" } -# Return non-zero if we should skip gdbserver-specific tests. +# Return non-zero if we should run gdbserver-specific tests. -proc skip_gdbserver_tests { } { - if { [find_gdbserver] == "" } { - return 1 - } +proc allow_gdbserver_tests { } { + if { [find_gdbserver] == "" } { + return 0 + } # If GDB is lack of XML support, and targets, like arm, have # multiple target descriptions, GDB doesn't know which target @@ -179,10 +179,10 @@ proc skip_gdbserver_tests { } { || [istarget "s390*-*-linux*"] || [istarget "x86_64-*-linux*"] || [istarget "i\[34567\]86-*-linux*"]) } { - return 1 + return 0 } - return 0 + return 1 } # Download the currently loaded program to the target if necessary. -- cgit v1.1