]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Require GNAT 8 for gdb.ada/recursive-access.exp
authorTom Tromey <tromey@adacore.com>
Tue, 2 Dec 2025 15:04:37 +0000 (08:04 -0700)
committerTom Tromey <tromey@adacore.com>
Tue, 2 Dec 2025 16:07:31 +0000 (09:07 -0700)
Tom pointed out that gdb.ada/recursive-access.exp causes a compiler
crash with gcc 7.5.  This patch adjusts the test case to skip testing
in this case.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=33664
Approved-By: Tom de Vries <tdevries@suse.de>
gdb/testsuite/gdb.ada/recursive-access.exp

index 833be936a10ddd3ff7df3c4bd679c82ad347e59d..ff29d276ee83d7de1c7cbff708b371ff07634a3c 100644 (file)
@@ -19,6 +19,11 @@ load_lib "ada.exp"
 
 require allow_ada_tests
 
+# This test causes at least the 7.5 compiler to crash.  We're not sure
+# when the bug was fixed so we're choosing a version newer than the
+# known crash.
+require {gnat_version_compare >= 8}
+
 standard_ada_testfile prog
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable {debug}] != ""} {