Re: [PATCH v2 3/3] gdb: introduce scoped debug prints

Simon Marchi via Gdb-patches
2021-01-04T17:02:16Z

> With this patch, gdb.threads/stepi-random-signal.exp becomes flaky. I folded
> this little fixup in the patch:
>
> commit 49c94827cbbe802726f177bc61c6c9d830907ffa
> Author: Simon Marchi <simon.marchi@polymtl.ca>
> Date: Tue Dec 22 16:33:40 2020 -0500
>
> fixup
>
> Change-Id: Ibd2f622df3e76c873fcf82bca7c4c7900654647e
>
> diff --git a/gdb/testsuite/gdb.threads/stepi-random-signal.exp b/gdb/testsuite/gdb.threads/stepi-random-signal.exp
> index 9a8b38c2acf5..689de8fdc632 100644
> --- a/gdb/testsuite/gdb.threads/stepi-random-signal.exp
> +++ b/gdb/testsuite/gdb.threads/stepi-random-signal.exp
> @@ -86,12 +86,13 @@ if {$prev_addr == ""} {
> set seen 0
>
> set test "stepi"
> -if {[gdb_test_multiple "stepi" "$test" {
> +set prompt "$gdb_prompt \\\[infrun\\\] fetch_inferior_event: exit\r\n$"
> +if {[gdb_test_multiple "stepi" "$test" -prompt $prompt {
> -re {\[infrun\] handle_signal_stop: random signal} {
> set seen 1
> exp_continue
> }
> - -re "$gdb_prompt $" {
> + -re "$prompt$" {
> }
> }] != 0} {
> return
>
>
> Simon
>

I pushed this series, including this fix.

Simon