[PATCH] gdb: Improve syscall entry/return tracking on Linux
Pedro Alves
palves@redhat.com
Fri Oct 9 18:09:00 GMT 2015
On 10/09/2015 06:57 PM, Josh Stone wrote:
> On 10/09/2015 03:48 AM, Pedro Alves wrote:
>> no-mmu / uclinux systems don't have fork. I'm not sure whether
>> fork returns ENOSYS or SYS_fork isn't even defined there.
>> Maybe just switch to vfork so we can keep catch syscall
>> coverage on those systems?
>
> In kernel/fork.c I see that lacking CONFIG_MMU returns EINVAL.
>
> But it appears a few archs don't implement fork/vfork syscalls at all,
> only clone.
Ah, yeah. Even on x86 glibc doesn't really implement fork
with the fork syscall.
> Maybe I should use CLONE_VFORK for broadest coverage?
That does sound the best.
Thanks,
Pedro Alves
More information about the Gdb-patches
mailing list