Add `set print repeats' tests for C/C++ arrays
authorMaciej W. Rozycki <macro@embecosm.com>
Wed, 19 Jan 2022 21:55:10 +0000 (21:55 +0000)
committerMaciej W. Rozycki <macro@embecosm.com>
Wed, 19 Jan 2022 21:55:10 +0000 (21:55 +0000)
commit6b4338c868e96a549af44fdf17141f4eac77e225
treef6ee13d6fa7de6ccc26f17cf6d1ee2b69d70c999
parent476f77a94cd51aede979e1b54c46cebe2ec9dde9
Add `set print repeats' tests for C/C++ arrays

Add `set print repeats' tests for C/C++ arrays, complementing one for
Fortran arrays and covering the different interpretation of the `set
print elements' setting in particular where the per-dimension count of
the elements handled is matched against the trigger rather than the
total element count as with Fortran arrays.
gdb/testsuite/gdb.base/array-repeat.c [new file with mode: 0644]
gdb/testsuite/gdb.base/array-repeat.exp [new file with mode: 0644]
gdb/testsuite/gdb.base/array-repeat.exp.tcl [new file with mode: 0644]
gdb/testsuite/gdb.cp/array-repeat.exp [new file with mode: 0644]