From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 18 06:37:25 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C310716A4CE for ; Wed, 18 Aug 2004 06:37:25 +0000 (GMT) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id CE13243D46 for ; Wed, 18 Aug 2004 06:37:24 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (localhost [127.0.0.1]) (authenticated bits=0) by cain.gsoft.com.au (8.12.11/8.12.10) with ESMTP id i7I6bLP4040869; Wed, 18 Aug 2004 16:07:21 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Wed, 18 Aug 2004 16:07:21 +0930 User-Agent: KMail/1.6.2 References: <20040818061124.83583.qmail@web53906.mail.yahoo.com> In-Reply-To: <20040818061124.83583.qmail@web53906.mail.yahoo.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <200408181607.21435.doconnor@gsoft.com.au> X-Spam-Score: -5.2 () CARRIAGE_RETURNS,IN_REP_TO,PGP_SIGNATURE,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_01_02,USER_AGENT,USER_AGENT_KMAIL X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) cc: Dennis George Subject: Re: Kernel Debugging X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Aug 2004 06:37:25 -0000 =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, 18 Aug 2004 15:41, Dennis George wrote: > I am studying the kernel source of FreeBSD. I like to know the flow of > packets from NIC to different modules of Kernel and then to the > user-level. I studied the code and identified some of the functions throu= gh > which the kernel handles network packets..... But I want to check from > where the control goes to that function....... > > So I decided to debug the kernel.... since I have only one machine I am > not checking for kgdb.... I decided to work with DDB so compiled the > kernel with option DDB and with debugging enabled (-g option). After > installing the new kernel I rebooted the system and in the boot prompt I > gave "-d" option to enter the debugging module..... My problem is that I > can't provide any breakpoints with this method... It gives me error > saying "symbol not found"..... Can anybody tell me where is the > problem................ Maybe you should try vmware then you can pretend you have 2 machines :) Not sure how to answer your actual question though. =2D --=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFBIvkh5ZPcIHs/zowRAhWKAJ90opCOwSjJVvWBTy7LhIufOzf/tgCfX+er n0sG45x5nGJez+nq1PxiZ+g=3D =3DwyB4 =2D----END PGP SIGNATURE-----