From 03eb1c79d47c095c3777ad8c382723b3b720b733 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Thu, 4 Nov 2010 18:52:11 +0000 Subject: [PATCH] gdb/testsuite/ * gdb.ada/null_array.exp (print my_table): Call get_compiler_info and check test_compiler_info. --- gdb/testsuite/ChangeLog | 6 ++++++ gdb/testsuite/gdb.ada/null_array.exp | 9 +++++++++ 2 files changed, 15 insertions(+) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index cc60e46209..914d0449da 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2010-11-04 Jan Kratochvil + Joel Brobecker + + * gdb.ada/null_array.exp (print my_table): Call get_compiler_info and + check test_compiler_info. + 2010-11-03 Ken Werner * gdb.base/gnu_vector.exp: Adjust expect messages. diff --git a/gdb/testsuite/gdb.ada/null_array.exp b/gdb/testsuite/gdb.ada/null_array.exp index 45bc9679a2..4d46b4ce01 100644 --- a/gdb/testsuite/gdb.ada/null_array.exp +++ b/gdb/testsuite/gdb.ada/null_array.exp @@ -37,6 +37,15 @@ gdb_load ${binfile} set bp_location [gdb_get_line_number "START" ${testdir}/foo.adb] runto "foo.adb:$bp_location" +if [get_compiler_info ${binfile}] { + return -1; +} + +if {[test_compiler_info {gcc-[0-3]-*}] + || [test_compiler_info {gcc-4-[0-4]-*}]} { + # Ada array bounds are missing in older GCCs. + setup_xfail *-*-* +} gdb_test "print my_table" \ "= \\(\\)" \ "print my_table"