diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 151edf76a8a..3f3ba6067f0 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2014-07-15 Simon Marchi + + * gdb.base/debug-expr.exp: Test string evaluation with + "debug expression" on. + 2014-07-15 Pedro Alves * gdb.base/reread.exp: Use clean_restart. diff --git a/gdb/testsuite/gdb.base/debug-expr.exp b/gdb/testsuite/gdb.base/debug-expr.exp index d7c82b06780..557609174c1 100644 --- a/gdb/testsuite/gdb.base/debug-expr.exp +++ b/gdb/testsuite/gdb.base/debug-expr.exp @@ -50,3 +50,8 @@ gdb_test_no_output "set debug expression 1" # This caused gdb to segfault. test_debug_expr "print /x {char\[4\]} array" \ "\[$\]$decimal = \\{0x0, 0x1, 0x2, 0x3\\}" + +# This caused gdb to output garbage and possibly segfault +gdb_test "print \"hello\"" \ + ".*OP_STRING\[^\r\n\]*Language-specific string type: 0.*\[\r\n\]\\$$decimal = \"hello\"\[\r\n\].*" \ + "String evaluation with debug expr"