jit.exp: handle dwarf version mismatch in jit-check-debug-info [PR110466]

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".

Signed-off-by: David Malcolm <dmalcolm@redhat.com>
This commit is contained in:
David Malcolm 2023-06-30 11:20:02 -04:00
parent 6735d66083
commit c3c0ba5436

View file

@ -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 }
}