diff options
Diffstat (limited to 'gdb/testsuite/gdb.base/printcmds.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/printcmds.exp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/printcmds.exp b/gdb/testsuite/gdb.base/printcmds.exp index f2be549..2506f74 100644 --- a/gdb/testsuite/gdb.base/printcmds.exp +++ b/gdb/testsuite/gdb.base/printcmds.exp @@ -1077,7 +1077,10 @@ proc test_repeat_bytes {} { } } -# Test for BZ#24331 +# Test that 'set elements' correctly limits the number of characters +# printed from a string when a string ends with repeated characters. +# This is gdb/24331 + proc test_repeat_bytes_limit {} { gdb_test "print -elem 3 -- \"AAAAA\"" "= \"AAA\"..." gdb_test "print -char 3 -elem 10 -- \"AAAAA\"" "= \"AAA\"..." |