From owner-freebsd-questions@FreeBSD.ORG Fri Feb 17 22:41:55 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7AE9216A420 for ; Fri, 17 Feb 2006 22:41:55 +0000 (GMT) (envelope-from divs_83@yahoo.com) Received: from web31010.mail.mud.yahoo.com (web31010.mail.mud.yahoo.com [68.142.200.173]) by mx1.FreeBSD.org (Postfix) with SMTP id 0767643D48 for ; Fri, 17 Feb 2006 22:41:54 +0000 (GMT) (envelope-from divs_83@yahoo.com) Received: (qmail 15861 invoked by uid 60001); 17 Feb 2006 22:41:54 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=DQWxsqgf/+ocOjcO3EHmTW5Svx7klpOkfnjDfANt79GJWIl7uiOsRF1QMDUjYPQdkFJ0dGjJ0vg6T/GS3qsmi9elrt6ROl3cCNUj4CQiVhgjxlchYI0st+UePOljUV2jlcyDszVuQLVvuhIV8zaQudtoHFRqANkGNFgBkxKtdA0= ; Message-ID: <20060217224153.15856.qmail@web31010.mail.mud.yahoo.com> Received: from [69.162.203.163] by web31010.mail.mud.yahoo.com via HTTP; Fri, 17 Feb 2006 14:41:53 PST Date: Fri, 17 Feb 2006 14:41:53 -0800 (PST) From: divyesh shah To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: debugging kernel code.. 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: Fri, 17 Feb 2006 22:41:55 -0000 I have added a system call and a somple program which uses that call. However, I need to debug my system call code. gdb doesn't help as it doesnt allow me to step into kernel level code from my user test program. Is there any way I can write debug information(say like printf statements)? I have seen some kernel code using printf's but I wonder where would they be printed out. Is there some kind of kernel log file?? Please help -Divyesh Shah. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com