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)

Aktemur, Tankut Baris via Gdb-patches
2023-06-22T07:03:10Z

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

-Baris

Intel Deutschland GmbH
Registered Address: Am Campeon 10, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de <http://www.intel.de>
Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva