Update comments for the gdb/24331 fix.
authorPaul Pluzhnikov <ppluzhnikov@google.com>
Mon, 15 May 2023 15:03:38 +0000 (15:03 +0000)
committerPaul Pluzhnikov <ppluzhnikov@google.com>
Tue, 16 May 2023 12:27:47 +0000 (12:27 +0000)
Approved-by: Andrew Burgess <aburgess@redhat.com>
gdb/testsuite/gdb.base/printcmds.exp
gdb/testsuite/gdb.python/py-format-string.exp

index f2be549f2a5ab9e652ff2ccd958d94e379a2a7da..2506f745f20a83578d510852de5767c69a306401 100644 (file)
@@ -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\"..."
index 2a011ebd45acbc0d760693ddaa6e09179a1c902a..55a37766bffa9f039803bb71efb966d52593407c 100644 (file)
@@ -745,8 +745,6 @@ proc test_max_string_one { setting unlimited } {
       "${default_pointer_regexp} \"hel\"..."
     check_format_string "a_binary_string" $opts \
       "${default_pointer_regexp} \"hel\"..."
-    # This will print four characters instead of three, see
-    # <https://sourceware.org/bugzilla/show_bug.cgi?id=24331>.
     check_format_string "a_binary_string_array" $opts \
       "\"hel\"..."
     check_format_string "a_big_string" $opts \