]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/testsuite/gdb.base/attach.exp
Fix gdb.base/attach.exp --pid test skipping on native-extended-gdbserver
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.base / attach.exp
index 637f287f59e9761958a84ae6b040f2a1cee59b07..831e11f96a6f06ffb4cc8b80664af24d3be069a1 100644 (file)
@@ -445,7 +445,9 @@ proc_with_prefix do_command_attach_tests {} {
     global gdb_prompt
     global binfile
 
-    if {![isnative]} {
+    # The --pid option is used to attach to a process using the native
+    # target.
+    if { ![gdb_protocol_is_native] } {
        unsupported "command attach test"
        return 0
     }