Re: [PATCH v2] gdb/infrun: do not restart a stepped thread if not running (was: gdb/infrun: reset thread control's step info in end_stepping_range)

Bruno Larsen via Gdb-patches
2023-06-22T07:40:24Z

On 22/06/2023 09:02, Aktemur, Tankut Baris wrote:
> On Wednesday, June 21, 2023 2:35 PM, Bruno Larsen wrote:
>>> Regression-tested on X86_64 Linux using the default, native-gdbserver,
>>> and native-extended-gdbserver board files.
>> Hi Tankut!
>>
>> Thanks for working on this. I don't see any regressions, but the test
>> you added doesn't seem to fail before your change. Does it not work with
>> the default options for the testsuite?
> Hi Bruno,
>
> Thanks for checking. The bug condition is triggered when the target is all-stop.
> Could you please try with --target_board=native-extended-gdbserver ?
> Then you should see
>
> FAIL: gdb.multi/detach-stepi.exp: detach inferior 1
>
> === gdb Summary ===
>
> # of expected passes 8
> # of unexpected failures 1
>
Ah got it! I have tested and it fixes the problem :)

Tested-By: Bruno Larsen <blarsen@redhat.com>

--
Cheers,
Bruno