Re: [PATCH v3 01/11] gdbstub: Support disablement in a multi-threaded process

2024-02-19 Thread Ilya Leoshkevich
On Mon, 2024-02-19 at 14:05 +0100, Ilya Leoshkevich wrote: > On Sat, 2024-02-17 at 10:21 -1000, Richard Henderson wrote: > > On 2/16/24 03:05, Ilya Leoshkevich wrote: > > > The upcoming follow-fork-mode child support will require > > > disabling > > > gdbstub in the parent process, which may have m

Re: [PATCH v3 01/11] gdbstub: Support disablement in a multi-threaded process

2024-02-19 Thread Ilya Leoshkevich
On Sat, 2024-02-17 at 10:21 -1000, Richard Henderson wrote: > On 2/16/24 03:05, Ilya Leoshkevich wrote: > > The upcoming follow-fork-mode child support will require disabling > > gdbstub in the parent process, which may have multiple threads > > (which > > are represented as CPUs). > > > > Loop ov

Re: [PATCH v3 01/11] gdbstub: Support disablement in a multi-threaded process

2024-02-17 Thread Richard Henderson
On 2/16/24 03:05, Ilya Leoshkevich wrote: The upcoming follow-fork-mode child support will require disabling gdbstub in the parent process, which may have multiple threads (which are represented as CPUs). Loop over all CPUs in order to remove breakpoints and disable single-step. Move the respect

Re: [PATCH v3 01/11] gdbstub: Support disablement in a multi-threaded process

2024-02-16 Thread Alex Bennée
Ilya Leoshkevich writes: > The upcoming follow-fork-mode child support will require disabling > gdbstub in the parent process, which may have multiple threads (which > are represented as CPUs). > > Loop over all CPUs in order to remove breakpoints and disable > single-step. Move the respective co

[PATCH v3 01/11] gdbstub: Support disablement in a multi-threaded process

2024-02-16 Thread Ilya Leoshkevich
The upcoming follow-fork-mode child support will require disabling gdbstub in the parent process, which may have multiple threads (which are represented as CPUs). Loop over all CPUs in order to remove breakpoints and disable single-step. Move the respective code into a separate function. Signed-o