# print.
gdb_test_no_output {maint expand-symtabs "\(pck\|foo\)\.adb"}
-set gcc_major_version [gcc_major_version]
-set have_xfail [expr {$gcc_major_version >= 8 && $gcc_major_version <= 9}]
+set have_xfail [expr {[gnat_version_compare >= 8] && [gnat_version_compare < 10]}]
# The xfail is for PR gcc/94469, which occurs with target board
# unix/-flto/-O0/-flto-partition=none/-ffat-lto-objects and gcc-8 and later.
# declarations only") is required. The commit makes sure that file-scope
# function and variable declarations are emitted in dwarf. This allows the
# description of imported entries, making them available to the debugger.
-require {expr {[gcc_major_version] >= 8}}
+require {gnat_version_compare >= 8}
standard_ada_testfile prog
# (without pinpointing it to a specific gcc PR or commit).
foreach func {"pkg.imported_func_ada" "imported_func"} {
clean_restart $testfile
- if { [gcc_major_version] < 10 } {
+ if { [gnat_version_compare < 10] } {
setup_xfail *-*-*
}
gdb_breakpoint $func message