From owner-freebsd-questions@FreeBSD.ORG Sat Jan 16 19:12:42 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 267611065697 for ; Sat, 16 Jan 2010 19:12:42 +0000 (UTC) (envelope-from polatel@gmail.com) Received: from mail-ew0-f226.google.com (mail-ew0-f226.google.com [209.85.219.226]) by mx1.freebsd.org (Postfix) with ESMTP id A8A7F8FC12 for ; Sat, 16 Jan 2010 19:12:41 +0000 (UTC) Received: by ewy26 with SMTP id 26so2017363ewy.3 for ; Sat, 16 Jan 2010 11:12:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:date:from:to:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=UbftmMLSuAXyhvNvxUdSzUzkY+r/z80AFbeiWSgHFp8=; b=I3LwEc2wq/gcOuKcawECbDgR2bB1jxGAzihySZm616FLplMe4gx4nfDI03ctiHll4x 8VZl1vI9HIBBkpvd5X9ExV4rkhiyKv5+1zGBrLsZ1MIAwCctcMR5XD9ix0l9hs3q2jH9 GTBgO31efglaXyaV6xYMr7nPQZXNrV4bad1Oo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=Jn/ItR1GRO0gwf2+6xOxjmzRHRSN/LONKaOsi88DEMOjbxmjm2jy6cWOGG8E7dRVn4 Jv5jol+ZjamwvWlhmrnAnO+izilSJ8KLYS6R1QsW9ibdqGDA41kFx7FCVWLu89K4PTzG TQ1jqIcTxOtxHaVdTCuxASM3ORZBIpKbZkRhU= Received: by 10.213.110.200 with SMTP id o8mr112503ebp.37.1263669156542; Sat, 16 Jan 2010 11:12:36 -0800 (PST) Received: from harikalardiyari ([78.179.49.34]) by mx.google.com with ESMTPS id 7sm2901874eyg.33.2010.01.16.11.12.35 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 16 Jan 2010 11:12:35 -0800 (PST) Sender: Ali Polatel Date: Sat, 16 Jan 2010 21:12:34 +0200 From: Ali Polatel To: freebsd-questions@freebsd.org Message-ID: <20100116191234.GC11414@harikalardiyari> References: <20100116110254.GA6142@harikalardiyari> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LwW0XdcUbUexiWVK" Content-Disposition: inline In-Reply-To: <20100116110254.GA6142@harikalardiyari> User-Agent: Mutt/1.5.20 (2009-06-14) Subject: Re: A question about ptrace X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Jan 2010 19:12:42 -0000 --LwW0XdcUbUexiWVK Content-Type: text/plain; charset=iso-8859-9 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Ali Polatel yazm=FD=FE: > I'm trying to port a program using ptrace from Linux to FreeBSD. Answering myself after some more reading and trying... > assert(0 =3D=3D ptrace(PT_TO_SCE, pid, 0, 0)); The third argument of this call should be 1 not 0. --=20 Regards, Ali Polatel --LwW0XdcUbUexiWVK Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) iEYEABECAAYFAktSD6IACgkQQU4yORhF8iDkkACbBscI45N3XRJHZaBVbyFe8L9T QCUAniAeu5+V29PjhWRSzHqg2XX9mAJu =nfq6 -----END PGP SIGNATURE----- --LwW0XdcUbUexiWVK--