-# Copyright 2005, 2007 Free Software Foundation, Inc.
+# Copyright 2005, 2007-2012 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# gdb can correctly print arrays with indexes for each element of the
# array.
-if $tracelevel {
- strace $tracelevel
-}
-
set testfile "arrayidx"
set srcfile ${testfile}.c
set binfile ${objdir}/${subdir}/${testfile}
# First, print the array without the indexes
-gdb_test "set print array-indexes off" \
- "" \
+gdb_test_no_output "set print array-indexes off" \
"Set print array-indexes to off"
gdb_test "print array" \
# Second, print the same array with the indexes
-gdb_test "set print array-indexes on" \
- "" \
+gdb_test_no_output "set print array-indexes on" \
"Set print array-indexes to on"
gdb_test "print array" \