]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Require GNAT debug info for some Ada tests
authorTom Tromey <tromey@adacore.com>
Thu, 17 Mar 2022 14:36:01 +0000 (08:36 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 12 Apr 2022 12:38:01 +0000 (06:38 -0600)
A few Ada tests require some debug info in the GNAT runtime.  When run
without this info, these tests can't pass.  This patch changes these
tests to detect this situation and stop with "untested".

gdb/testsuite/gdb.ada/interface.exp
gdb/testsuite/gdb.ada/iwide.exp
gdb/testsuite/gdb.ada/mi_interface.exp
gdb/testsuite/gdb.ada/tagged.exp
gdb/testsuite/gdb.ada/tagged_access.exp

index 834da12b153fe8247c17d6082859055ce6f80627..06b9660113bed16d45bc1c30e3a6b452511c5e99 100644 (file)
@@ -17,6 +17,11 @@ load_lib "ada.exp"
 
 if { [skip_ada_tests] } { return -1 }
 
+if {![gnat_runtime_has_debug_info]} {
+    untested "GNAT runtime debuginfo required for this test"
+    return -1
+}
+
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug additional_flags=-gnat05 ]] != "" } {
index 6f522ffb4f3cb14367613f372dc10344e2c40a06..5d24ae5fd58c70d4945f33aef04aeca1082e9c25 100644 (file)
@@ -17,6 +17,11 @@ load_lib "ada.exp"
 
 if { [skip_ada_tests] } { return -1 }
 
+if {![gnat_runtime_has_debug_info]} {
+    untested "GNAT runtime debuginfo required for this test"
+    return -1
+}
+
 standard_ada_testfile p
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug additional_flags=-gnat05 ]] != "" } {
index 89e2fde7b7b1177daa1c149e53aca7437168845c..fa176e21ef171c9598a21fc04190b9190d2886cc 100644 (file)
@@ -17,6 +17,11 @@ load_lib "ada.exp"
 
 if { [skip_ada_tests] } { return -1 }
 
+if {![gnat_runtime_has_debug_info]} {
+    untested "GNAT runtime debuginfo required for this test"
+    return -1
+}
+
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug additional_flags=-gnat12 ]] != "" } {
index 0e9d15faa0caf3620bf1344187aa0dc61d8cb8e2..6fb8a418149ae38353f512a64d7a49c6f0e7d377 100644 (file)
@@ -17,6 +17,11 @@ load_lib "ada.exp"
 
 if { [skip_ada_tests] } { return -1 }
 
+if {![gnat_runtime_has_debug_info]} {
+    untested "GNAT runtime debuginfo required for this test"
+    return -1
+}
+
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug]] != "" } {
index 664a50deb09e623e2ddd9cf345b47fb52bc738fb..3649c5474a7a3a47cccb80ac4097478c5d6b5b93 100644 (file)
@@ -17,6 +17,11 @@ load_lib "ada.exp"
 
 if { [skip_ada_tests] } { return -1 }
 
+if {![gnat_runtime_has_debug_info]} {
+    untested "GNAT runtime debuginfo required for this test"
+    return -1
+}
+
 standard_ada_testfile p
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug]] != "" } {