Skip a few tests on targets that can't use the "run" commmand.
[deliverable/binutils-gdb.git] / gdb / testsuite / lib / gdb.exp
index 9d8296a109eb18f637f43d2c95186e0fc7bfbe95..548cb068d426c80ea5c60cdd6582126b570acc96 100644 (file)
@@ -226,6 +226,19 @@ proc delete_breakpoints {} {
     }
 }
 
+# Returns true iff the target supports using the "run" command.
+
+proc target_can_use_run_cmd {} {
+    if [target_info exists use_gdb_stub] {
+       # In this case, when we connect, the inferior is already
+       # running.
+       return 0
+    }
+
+    # Assume yes.
+    return 1
+}
+
 # Generic run command.
 #
 # The second pattern below matches up to the first newline *only*.
This page took 0.024519 seconds and 4 git commands to generate.