Re: [PATCH 1/3] gdbstub: Refactor fork() handling

2024-02-01 Thread Alex Bennée
Ilya Leoshkevich writes: > Prepare for implementing follow-fork-mode child: > * Introduce gdbserver_fork_start(), which for now is a no-op. > * Rename gdbserver_fork() to gdbserver_fork_end(), call it in both > parent and child processes, and pass the fork()'s return value to it. > * Factor out

[PATCH 1/3] gdbstub: Refactor fork() handling

2024-01-31 Thread Ilya Leoshkevich
Prepare for implementing follow-fork-mode child: * Introduce gdbserver_fork_start(), which for now is a no-op. * Rename gdbserver_fork() to gdbserver_fork_end(), call it in both parent and child processes, and pass the fork()'s return value to it. * Factor out disable_gdbstub(). * Update ts_tid i