From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 18 06:11: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 597B816A4CE for ; Wed, 18 Aug 2004 06:11:25 +0000 (GMT) Received: from web53906.mail.yahoo.com (web53906.mail.yahoo.com [206.190.36.216]) by mx1.FreeBSD.org (Postfix) with SMTP id A3ECD43D5C for ; Wed, 18 Aug 2004 06:11:24 +0000 (GMT) (envelope-from easyeinfo@yahoo.com) Message-ID: <20040818061124.83583.qmail@web53906.mail.yahoo.com> Received: from [202.168.70.130] by web53906.mail.yahoo.com via HTTP; Tue, 17 Aug 2004 23:11:24 PDT Date: Tue, 17 Aug 2004 23:11:24 -0700 (PDT) From: Dennis George To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: 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:11:25 -0000 Hi, 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 through 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................ thanks Joseph --------------------------------- Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage!