Fix several "set remote foo-packet on/off" commands.
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / dprintf.exp
index a040580108050379a83a4978c65abab2744cc78b..afd3312b69bca591e2090064533a82c779b073a5 100644 (file)
@@ -153,3 +153,13 @@ if $target_can_dprintf {
 
 gdb_test "set dprintf-style foobar" "Undefined item: \"foobar\"." \
     "Set dprintf style to an unrecognized type"
+
+# Test that force-disabling the BreakpointCommands RSP feature works
+# as expected.  dprintf relies on support for target-side breakpoint
+# commands --- use it as proxy.
+if [gdb_is_target_remote] {
+    gdb_test_no_output "set remote breakpoint-commands-packet off"
+    gdb_test "set dprintf-style agent" \
+       "warning: Target cannot run dprintf commands.*" \
+       "set dprintf-style agent, with feature disabled"
+}
This page took 0.024403 seconds and 4 git commands to generate.