gdb_test_no_output "set print array-indexes off" \
"set print array-indexes to off"
+gdb_test "show print array-indexes" \
+ "Printing of array indexes is off\\." \
+ "show print array-indexes is off"
+
gdb_test "print array" \
"\\{1, 2, 3, 4\\}" \
"print array with array-indexes off"
gdb_test_no_output "set print array-indexes on" \
"set print array-indexes to on"
+gdb_test "show print array-indexes" \
+ "Printing of array indexes is on\\." \
+ "show print array-indexes is on"
+
gdb_test "print array" \
"\\{\\\[0\\\] = 1, \\\[1\\\] = 2, \\\[2\\\] = 3, \\\[3\\\] = 4\\}" \
"print array with array-indexes on"