Re: RFA [PATCH v4] Implement 'catch syscall' for gdbserver (was Re: RFA [PATCH v3] Implement 'catch syscall' for gdbserver)

Pedro Alves
2013-10-05T09:15:28Z

Hi,

I don't have time right now for a more elaborate answer, but ...

On 10/04/2013 06:29 PM, Pedro Alves wrote:
>
> Thinking only in terms of multi-process/thread, I'm inclined to ignore the
> "per-process" thing now, and just leave it as gdbserver making catch
> syscall apply to all processes.

I just realized that we really can't do that. The syscall numbers
sent across the wire are the target-specific numbers. Since gdbserver
might well be debugging processes of different gdbarch's simultaneously
(see the multi-arch support patches from a while ago, the tdesc support
in gdbserver, etc.), we can't assume the same syscall array makes sense
for all processes under gdbserver's control.

--
Pedro Alves