From owner-freebsd-net Fri Jun 2 0:39:48 2000 Delivered-To: freebsd-net@freebsd.org Received: from sasi.com (sasi.com [164.164.56.2]) by hub.freebsd.org (Postfix) with ESMTP id 99D5A37B88D; Fri, 2 Jun 2000 00:39:37 -0700 (PDT) (envelope-from gbnaidu@sasi.com) Received: from samar (sasi.com [164.164.56.2]) by sasi.com (8.9.3/8.9.3) with SMTP id NAA25444; Fri, 2 Jun 2000 13:07:24 +0530 (IST) Received: from pcd75.sasi.com ([10.0.16.75]) by sasi.com; Fri, 02 Jun 2000 13:07:23 +0000 (IST) Received: from localhost (gbnaidu@localhost) by pcd75.sasi.com (8.9.3/8.9.3) with ESMTP id NAA01866; Fri, 2 Jun 2000 13:07:15 +0530 Date: Fri, 2 Jun 2000 13:07:14 +0530 (IST) From: "G.B.Naidu" To: Bruce Evans Cc: freebsd-hackers@FreeBSD.ORG, freebsd-net@FreeBSD.ORG Subject: Re: DDB is not setting break points... In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, Thanks Bruse for the reply. I am running 3.3-Release of FreeBSD. And my kernel is elf kernel. So according to Bruce, I cannot set the breakpoints from DDB until sysinit() finishes. So what is the safe point from where I can set break points from DDB? I want to use DDB because I want to debug online. thanks for the help. --gb On Fri, 2 Jun 2000, Bruce Evans wrote: > On Thu, 1 Jun 2000, G.B.Naidu wrote: > > > I am having problems with DDB while setting breakpoints in the kernel. I > > entered the DDB by giving kernel -d at boot prompt. After that I tried to > > set break point at ip_output() by giving "b ip_output". But it complains > > saying that "sumbol not found". I thought this might be due to stripped > > Early setting of breakpoints by name was broken by the switch to elf in > FreeBSD-3.0 (symbols aren't available until the kernel module sysinit runs > much later). I think it works for aout kernels in 3.x but not in 4.0 or > -current. Use gdb or set breakpoints early by value in broken versions. > > Bruce > -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message