diff --git a/gdb/testsuite/lib/ada.exp b/gdb/testsuite/lib/ada.exp index e20b35c8ebe..086866aca99 100644 --- a/gdb/testsuite/lib/ada.exp +++ b/gdb/testsuite/lib/ada.exp @@ -180,7 +180,8 @@ proc find_ada_tool {tool} { } # Compare the GNAT version against L2 using version_compare. If the -# compiler does not appear to be GCC, this will always return false. +# compiler does not appear to be GCC, this will assume that gnatmake +# is very new. proc gnat_version_compare {op l2} { set gnatmake [find_gnatmake] @@ -189,7 +190,8 @@ proc gnat_version_compare {op l2} { return 0 } if {![regexp {GNATMAKE ([0-9]+(\.[0-9]+)*)} $output match version]} { - return 0 + # Assume a "very new" version. + set version 99 } return [version_compare [split $version .] $op $l2]