Remove gnatmake_version_at_least
Checks
Context |
Check |
Description |
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 |
success
|
Build passed
|
linaro-tcwg-bot/tcwg_gdb_build--master-arm |
success
|
Build passed
|
linaro-tcwg-bot/tcwg_gdb_check--master-aarch64 |
success
|
Test passed
|
linaro-tcwg-bot/tcwg_gdb_check--master-arm |
success
|
Test passed
|
Commit Message
This removes gnatmake_version_at_least in favor of using the more
flexible gnat_version_compare. I think these two version numbers
should be the same, as gnatmake is shipped with the compiler.
---
gdb/testsuite/gdb.ada/mi_prot.exp | 2 +-
.../gdb.ada/rename_subscript_param.exp | 2 +-
gdb/testsuite/gdb.ada/scalar_storage.exp | 2 +-
gdb/testsuite/gdb.ada/verylong.exp | 2 +-
gdb/testsuite/lib/ada.exp | 21 -------------------
5 files changed, 4 insertions(+), 25 deletions(-)
@@ -16,7 +16,7 @@
load_lib "ada.exp"
require allow_ada_tests
-require {gnatmake_version_at_least 8}
+require {gnat_version_compare >= 8}
standard_ada_testfile prot
@@ -17,7 +17,7 @@ load_lib "ada.exp"
require allow_ada_tests
-require {gnatmake_version_at_least 8}
+require {gnat_version_compare >= 8}
standard_ada_testfile pb30_012
@@ -36,7 +36,7 @@ if {![runto "storage.adb:$bp_location"]} {
gdb_test "print V_LE" "= \\(value => 126, another_value => 12, color => green\\)"
# This requires a compiler fix that is in GCC 14.
-if { ![gnatmake_version_at_least 14] } {
+if { ![gnat_version_compare >= 14] } {
setup_kfail "DW_AT_endianity on enum types" *-*-*
}
gdb_test "print V_BE" "= \\(value => 126, another_value => 12, color => green\\)"
@@ -16,7 +16,7 @@
load_lib "ada.exp"
require allow_ada_tests
-require {gnatmake_version_at_least 11}
+require {gnat_version_compare >= 11}
standard_ada_testfile prog
@@ -167,27 +167,6 @@ proc find_ada_tool {tool} {
return $result
}
-# Return 1 if gnatmake is at least version $MAJOR.x.x
-
-proc gnatmake_version_at_least { major } {
- set gnatmake [find_gnatmake]
- set gnatmake [lindex [split $gnatmake] 0]
- if {[catch {exec $gnatmake --version} output]} {
- return 0
- }
- if { [regexp {GNATMAKE ([^ .]+).([^ .]+).([^ .]+)} $output \
- match gnatmake_major gnatmake_minor gnatmake_micro] } {
- if { $gnatmake_major >= $major } {
- return 1
- } else {
- return 0
- }
- }
-
- # Unknown, return 1
- return 1
-}
-
# Compare the GNAT version against L2 using version_compare. If the
# compiler does not appear to be GCC, this will always return false.