gcc/testsuite/ChangeLog:
        PR jit/110466
        * jit.dg/jit.exp (jit-check-debug-info): Gracefully handle too
        early versions of gdb that don't support our dwarf version, via
        "unsupported".

(cherry picked from commit r14-2223-gc3c0ba5436170e)

Signed-off-by: David Malcolm <dmalc...@redhat.com>
---
 gcc/testsuite/jit.dg/jit.exp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gcc/testsuite/jit.dg/jit.exp b/gcc/testsuite/jit.dg/jit.exp
index 35d38cec5bc..83fb6371fd2 100644
--- a/gcc/testsuite/jit.dg/jit.exp
+++ b/gcc/testsuite/jit.dg/jit.exp
@@ -440,6 +440,10 @@ proc jit-check-debug-info { obj_file cmds match } {
         send $cmd
     }
     expect {
+       -re "Dwarf Error: wrong version in compilation unit header" {
+           set testcase [testname-for-summary]
+           unsupported "$testcase: gdb does not support dwarf version"
+       }
         -re $match { pass OK }
         default { fail FAIL }
     }
-- 
2.26.3

Reply via email to