gdbserver for arm does not support multi-process debugging

Luis Machado luis.machado@linaro.org
Fri Oct 18 12:27:00 GMT 2019


Hi,

On 10/17/19 3:19 AM, 脕玫驴碌 wrote:
> Dear gdb@sourceware.org
> 
> 
> I am researching the gdbserver's source code for ARM, what confused me is that it does not support multi-process to debug the target's child process, cause it dose not interesting in PTRACE_EVENT_FORK, I don't know whether it's a bug or it's just a feature by design.

The handling of PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK and 
PTRACE_EVENT_CLONE is in generic linux code. See 
gdb/gdbserver/linux-low.c:handle_extended_wait.

As long as the kernel supports reporting such events via ptrace and we 
are debugging using extended remote mode (not regular remote mode), it 
should work. If it doesn't, then we may have a problem that we should fix.

Does that answer your question?

Luis



More information about the Gdb mailing list