[PATCH] PowerPC: bp-permanent.exp, kill-after-signal fix
Tom de Vries
tdevries@suse.de
Mon May 9 17:35:19 GMT 2022
On 5/3/22 22:10, Carl Love via Gdb-patches wrote:
> -gdb_test "stepi" "\r\nhandler .*"
> +
> +set test "handler"
> +gdb_test_multiple "stepi" $test {
> + -re "\r\nhandler .*" {
> + pass $test
> + }
Hi Carl,
gdb_test expects a gdb prompt after "\r\nhandler .*", but
gdb_test_multiple doesn't.
This causes:
...
(gdb) PASS: gdb.base/kill-after-signal.exp: continue
stepi^M
handler (signo=32767) at
/home/vries/gdb_versions/devel/src/gdb/testsuite/gdb.base/kill-after\
-signal.c:25^M
25 {^M
PASS: gdb.base/kill-after-signal.exp: handler
kill^M
(gdb) FAIL: gdb.base/kill-after-signal.exp: kill
...
Triggered on x86_64-linux with taskset -c 0.
This fixes it for me:
...
- -re "\r\nhandler .*" {
+ -re -wrap "\r\nhandler .*" {
...
Can you verify and commit?
Thanks,
- Tom
More information about the Gdb-patches
mailing list