From owner-freebsd-hackers Thu Nov 23 01:24:12 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id BAA27292 for hackers-outgoing; Thu, 23 Nov 1995 01:24:12 -0800 Received: from who.cdrom.com (who.cdrom.com [192.216.222.3]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id BAA27287 for ; Thu, 23 Nov 1995 01:24:10 -0800 Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by who.cdrom.com (8.6.12/8.6.11) with ESMTP id BAA25063 for ; Thu, 23 Nov 1995 01:22:46 -0800 Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id KAA22079; Thu, 23 Nov 1995 10:21:14 +0100 Received: by sax.sax.de (8.6.11/8.6.12-s1) with UUCP id KAA12842; Thu, 23 Nov 1995 10:21:13 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.6.12/8.6.9) id KAA26190; Thu, 23 Nov 1995 10:15:50 +0100 From: J Wunsch Message-Id: <199511230915.KAA26190@uriah.heep.sax.de> Subject: Re: ptrace() To: gavin@linux1.dlsu.edu.ph (Gavin Chan Lim) Date: Thu, 23 Nov 1995 10:15:50 +0100 (MET) Cc: hackers@freebsd.org Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: from "Gavin Chan Lim" at Nov 23, 95 01:36:09 pm X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 690 Sender: owner-hackers@freebsd.org Precedence: bulk As Gavin Chan Lim wrote: > > 1. What does "Attach/Detach to the process" mean? (PT_ATTACH, PT_DETACH)> Start/stop tracing a running process (by PID). Dunno if this is already working in FreeBSD. The "normal" case is to start the traced process under debugger control. > 2. Does request PT_READ_I mean read the text segment? > 3. Does request PT_READ_D mean read the data segment? Yup. > 4. What's the last argument (int data) of ptrace() for? Dunno, i think it's the data to read/write from/into the process image. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)