From owner-freebsd-hackers Fri Oct 15 16:40:39 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (Postfix) with ESMTP id 17DB11517E for ; Fri, 15 Oct 1999 16:40:35 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost [127.0.0.1]) by dingo.cdrom.com (8.9.3/8.8.8) with ESMTP id IAA03397; Fri, 15 Oct 1999 08:56:51 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Message-Id: <199910151556.IAA03397@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Greg Lehey Cc: srii_u1@yahoo.com, FreeBSD Hackers Subject: Re: debugging In-reply-to: Your message of "Fri, 15 Oct 1999 11:10:24 +1000." <19991015111024.37498@mojave.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 15 Oct 1999 08:56:50 -0700 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > On Thursday, 14 October 1999 at 12:05:48 +0530, Srinivasan. R wrote: > > can you tell me how to debug an application with ptrace systemcall and > > how can i fetch the processor register values stored at that particular > > moment and how can i access the u-area structure members along with > > the address of them. > > Sorry, I haven't much experience in this. But you'll probably get > better results from -hackers. I'm copying this reply there. The short answer is "use gdb". The slightly longer answer is "read ptrace(2)". -- \\ Give a man a fish, and you feed him for a day. \\ Mike Smith \\ Tell him he should learn how to fish himself, \\ msmith@freebsd.org \\ and he'll hate you for a lifetime. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message