Date: Sat, 8 May 2010 14:15:09 +0300 From: Ali Polatel <alip@exherbo.org> To: freebsd-hackers@freebsd.org Subject: Ability to tell the difference between normal and syscall traps Message-ID: <20100508111509.GB8186@harikalardiyari>
next in thread | raw e-mail | index | archive | help
--mojUlQ0s9EVzWg2t Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Does FreeBSD's ptrace have a way to tell the difference between normal traps and those caused by a system call? On Linux=B9 this is possible by passing PTRACE_O_TRACESYSGOOD option to the ptrace request PTRACE_SETOPTIONS which makes the kernel set bit 7 in the syscall number when delivering system call traps, (i.e., deliver (SIGTRAP | 0x80)). I'm not sure if this is possible on FreeBSD. PT_LWPINFO request looks related but can't be sure. =B9: http://linux.die.net/man/2/ptrace --=20 Regards, Ali Polatel --mojUlQ0s9EVzWg2t Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) iEYEABECAAYFAkvlR70ACgkQQU4yORhF8iCx3gCgpUf/8eYvPKBnfN8onbzuhPGw 66sAoLIjdjLdq33XBiIy+9p8j/3DxOAA =yN3P -----END PGP SIGNATURE----- --mojUlQ0s9EVzWg2t--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100508111509.GB8186>