--- a/gdb/testsuite/gdb.base/dprintf.exp +++ b/gdb/testsuite/gdb.base/dprintf.exp @@ -129,6 +129,17 @@ if $target_can_dprintf { "\[\r\n\]\tbreakpoint already hit 2 times" "\[\r\n\] agent-printf \"arg=%d, g=%d\\\\n\", arg, g" } +} else { + delete_breakpoints + + gdb_test "dprintf foo,\"Hello\\n\"" \ + "Dprintf .*" + gdb_test_sequence "info breakpoints" "dprintf info 3" { + "\[\r\n\]Num Type Disp Enb Address +What" + "\[\r\n\]6 dprintf" + "\[\r\n\] printf \"Hello\\\\n\"" + "\[\r\n\] continue" + } } gdb_test "set dprintf-style foobar" "Undefined item: \"foobar\"." \