From owner-freebsd-hackers Tue Dec 27 00:48:30 1994 Return-Path: hackers-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id AAA10928 for hackers-outgoing; Tue, 27 Dec 1994 00:48:30 -0800 Received: from kithrup.com (kithrup.com [140.174.23.40]) by freefall.cdrom.com (8.6.9/8.6.6) with ESMTP id IAA10921 for ; Tue, 27 Dec 1994 08:48:28 GMT Received: (from sef@localhost) by kithrup.com (8.6.8/8.6.6) id AAA00564; Tue, 27 Dec 1994 00:47:53 -0800 Date: Tue, 27 Dec 1994 00:47:53 -0800 From: Sean Eric Fagan Message-Id: <199412270847.AAA00564@kithrup.com> To: hackers@freebsd.org, u923168@student.canberra.edu.au, ugen@netvision.net.il Subject: RE: ptrace Sender: hackers-owner@freebsd.org Precedence: bulk >>PTRACE_SYSCALL option should do in ptrace(2)? I've poked around in the >>sources (PTRACE_ATTACH and PTRACE_DETACH, though broken, can be acheived >>through procfs.. but no PTRACE_SYSCALL) but havn't found anything yet. >Huh!!!3 days ago that was the thing I asked..I was going to mix something >around strace..Well,probably the best thing to do is to really write that >PTRACE_SYSCALL myself but i have no time-i am hacking around IP. Back when I wrote it, I implemented most of the various stop-on-event things necessary for debugging. Stopping on syscall exit and syscall entry were two of them. The code needed is pretty small -- it consists of one routine, and then a conditional an a macro everywhere you want to have an event worth stopping on. Unfortunately, I've lost the code, but hopefully, I can find it again. The problem is that I never ported gdb to it, mainly because of lack of time and interest on my part. Sean.