[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Problem with using PT_SYSCALL.
In article <201007161241.30007.aanisimov%inbox.ru@localhost>,
Ð Ñ Ñ ÐµÐ¼ Ð Ð½Ð¸Ñ Ð¸Ð¼Ð¾Ð² <aanisimov%inbox.ru@localhost> wrote:
> I've been experimenting with ptrace() and found out that simply following
>man (2) ptrace is not enough.
> The attached problem is supposed to run "/bin/ls /" and stop at every system
>call it makes. The problem is that ptrace(PT_SYSCALL,...) at the end of the
>main loop seems simply to resume the child and make it run until it exits, but
>not until it makes a system call.
> Attached program works as expected under FreeBSD and Linux, so I believe
>there is some detail that needs to be taken into account for NetBSD and that I
> Can you please give a hint how to correct this program?
I think that the problem is not with your program, someone broke PT_SYSCALL.
Please file a PR with the code so that it does not get lost.
Main Index |
Thread Index |