detach with in-line step over in progress
authorPedro Alves <pedro@palves.net>
Mon, 11 Jan 2021 23:11:57 +0000 (23:11 +0000)
committerPedro Alves <pedro@palves.net>
Wed, 3 Feb 2021 01:15:16 +0000 (01:15 +0000)
commitac7d717c1eb2421d64135ef0e6cf19de74b8d5d3
tree53a4eeb69008dd409f66134ca0e9af4b72812ee6
parente87f0fe82375ffe508da44172fcfe04e258ddc9c
detach with in-line step over in progress

A following patch will add a testcase that has a number of threads
constantly stepping over a breakpoint, and then has GDB detach the
process.  That testcase exercises both "set displaced-stepping
on/off".  Testing with "set displaced-stepping off" reveals that GDB
does not handle the case of the user typing "detach" just while some
thread is in the middle of an in-line step over.  If that thread
belongs to the inferior that is being detached, then the step-over
never finishes, and threads of other inferiors are never re-resumed.
This fixes it.

gdb/ChangeLog:

* infrun.c (struct step_over_info): Initialize fields.
(prepare_for_detach): Handle ongoing in-line step over.
gdb/ChangeLog
gdb/infrun.c
This page took 0.026871 seconds and 4 git commands to generate.