Fix several "set remote foo-packet on/off" commands.
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.trace / ftrace.exp
index 6d9e76e50699b5255ffc8ae2513d687bbb34e4e1..aa8a660e8350b2343a847f718c98d80652fb6c58 100644 (file)
@@ -159,6 +159,22 @@ proc test_fast_tracepoints {} {
                "look at collected local, second time"
 
        }
+
+       # If debugging with the remote target, try force disabling the
+       # fast tracepoints RSP feature, and confirm fast tracepoints
+       # can no longer be downloaded.
+       set test "fast tracepoint could not be downloaded with the feature disabled"
+       if [gdb_is_target_remote] {
+           gdb_test "set remote fast-tracepoints-packet off"
+
+           gdb_test_multiple "tstart" $test {
+               -re "warning: Target does not support fast tracepoints, downloading .* as regular tracepoint.*\r\n$gdb_prompt $" {
+                   pass $test
+               }
+           }
+       } else {
+           unsupported $test
+       }
     }
 }
 
This page took 0.024283 seconds and 4 git commands to generate.