[gdb/testsuite] Handle SIGILL in two gdb.arch powerpc test-cases
authorTom de Vries <tdevries@zinfandel-3.arch.suse.de>
Tue, 2 Nov 2021 17:55:32 +0000 (18:55 +0100)
committerTom de Vries <tdevries@suse.de>
Tue, 2 Nov 2021 17:55:32 +0000 (18:55 +0100)
commitd74dfa8f63c2bb951609ab671773354536543ac2
treedd823525a7ce2dd64ad3d405e41ecf67ace66456
parentbd25c6eef8f1004fe54ee9c0b964f62497c84a08
[gdb/testsuite] Handle SIGILL in two gdb.arch powerpc test-cases

On powerpc64le-linux, with test-case gdb.arch/powerpc-addpcis.exp I run into
SIGILL:
...
(gdb) PASS: gdb.arch/powerpc-addpcis.exp: get hexadecimal valueof "$r3"
stepi^M
^M
Program terminated with signal SIGILL, Illegal instruction.^M
The program no longer exists.^M
(gdb) PASS: gdb.arch/powerpc-addpcis.exp: set r4
...
because it's a power9 insn, and I'm running on a power8 machine.

Fix this by handling the SIGILL.  Likewise in gdb.arch/powerpc-lnia.exp.

Tested on powerpc64le-linux.
gdb/testsuite/gdb.arch/powerpc-addpcis.exp
gdb/testsuite/gdb.arch/powerpc-lnia.exp