Re: gdbserver for arm does not support multi-process debugging

Luis Machado <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
Hi,

On 10/17/19 3:19 AM, 鍒樺悍 wrote:
> Dear [email protected]
> 
> 
> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.