aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom de Vries <tdevries@suse.de>2021-09-20 15:07:57 +0200
committerTom de Vries <tdevries@suse.de>2021-09-20 15:07:57 +0200
commit6f265beb28a7465c9e75fdb169d15a87f9a3a5d6 (patch)
treefd7451004a2db32cc9efba0f7ff5caf8e9a9b69f /gdb
parent56d9e3c5623d9ebaffb4532a503e67203e4d5488 (diff)
downloadgdb-6f265beb28a7465c9e75fdb169d15a87f9a3a5d6.zip
gdb-6f265beb28a7465c9e75fdb169d15a87f9a3a5d6.tar.gz
gdb-6f265beb28a7465c9e75fdb169d15a87f9a3a5d6.tar.bz2
[gdb/testsuite] Fix gdb.ada/big_packed_array.exp xfail for -m32
With test-case gdb.ada/big_packed_array.exp and target board unix/-m32 I run into: ... (gdb) print bad^M $2 = (0 => 0 <repeats 24 times>, 160)^M (gdb) FAIL: gdb.ada/big_packed_array.exp: scenario=minimal: print bad ... The problem is that while the variable is an array of 196 bits (== 24.5 bytes), the debug information describes it as 25 unsigned char. This is PR gcc/101643, and the test-case contains an xfail for this, which catches only: ... (gdb) print bad^M $2 = (0 => 0 <repeats 25 times>)^M ... Fix this by updating the xfail pattern. Tested on x86_64-linux.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/gdb.ada/big_packed_array.exp10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.ada/big_packed_array.exp b/gdb/testsuite/gdb.ada/big_packed_array.exp
index 32ff0dd..e62f053 100644
--- a/gdb/testsuite/gdb.ada/big_packed_array.exp
+++ b/gdb/testsuite/gdb.ada/big_packed_array.exp
@@ -43,6 +43,7 @@ foreach_with_prefix scenario {all minimal} {
set re "= \\(false <repeats 196 times>\\)"
set re_xfail "= \\(0 => 0 <repeats 25 times>\\)"
+ set re_xfail2 "= \\(0 => 0 <repeats 24 times>, ($decimal)\\)"
gdb_test_multiple "print bad" "" {
-re -wrap $re {
pass $gdb_test_name
@@ -54,5 +55,14 @@ foreach_with_prefix scenario {all minimal} {
}
fail $gdb_test_name
}
+ -re -wrap $re_xfail2 {
+ set last $expect_out(1,string)
+ if { $have_xfail && [string is integer $last] \
+ && [expr ($last & 0xf) == 0] } {
+ # gcc/101643
+ setup_xfail *-*-*
+ }
+ fail $gdb_test_name
+ }
}
}