aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.server/attach-flag.exp
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2022-12-14 10:05:03 -0700
committerTom Tromey <tom@tromey.com>2023-01-13 13:18:56 -0700
commit06e93b057c2967e64ba988102dc66461a64e6c7d (patch)
tree9226c431e8b439beea236fc9a69c61d86bd7b8f4 /gdb/testsuite/gdb.server/attach-flag.exp
parent8ce7423fda0c4b148cc0a48c68ba103476f3f5b7 (diff)
downloadgdb-06e93b057c2967e64ba988102dc66461a64e6c7d.zip
gdb-06e93b057c2967e64ba988102dc66461a64e6c7d.tar.gz
gdb-06e93b057c2967e64ba988102dc66461a64e6c7d.tar.bz2
Use require can_spawn_for_attach
This changes some tests to use "require can_spawn_for_attach".
Diffstat (limited to 'gdb/testsuite/gdb.server/attach-flag.exp')
-rw-r--r--gdb/testsuite/gdb.server/attach-flag.exp4
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.server/attach-flag.exp b/gdb/testsuite/gdb.server/attach-flag.exp
index 5f9019d..ea4c87e 100644
--- a/gdb/testsuite/gdb.server/attach-flag.exp
+++ b/gdb/testsuite/gdb.server/attach-flag.exp
@@ -25,9 +25,7 @@ if { [skip_gdbserver_tests] } {
return 0
}
-if {![can_spawn_for_attach]} {
- return 0
-}
+require can_spawn_for_attach
# Start the test program, attach to it using gdbserver's --attach flag, connect
# to it with GDB, check that what we see makes sense.