From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 27 21:28:08 2010 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D70661065670 for ; Fri, 27 Aug 2010 21:28:08 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id EED9A8FC13 for ; Fri, 27 Aug 2010 21:28:07 +0000 (UTC) Received: from porto.topspin.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id AAA24927; Sat, 28 Aug 2010 00:28:06 +0300 (EEST) (envelope-from avg@icyb.net.ua) Received: from localhost.topspin.kiev.ua ([127.0.0.1]) by porto.topspin.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1Op6T0-0003T0-7M; Sat, 28 Aug 2010 00:28:06 +0300 Message-ID: <4C782DE5.2030904@icyb.net.ua> Date: Sat, 28 Aug 2010 00:28:05 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.2.8) Gecko/20100822 Lightning/1.0b2 Thunderbird/3.1.2 MIME-Version: 1.0 To: doc@FreeBSD.org, freebsd-hackers@FreeBSD.org References: <20100827201140.GA2812@debmaster-laptop> In-Reply-To: <20100827201140.GA2812@debmaster-laptop> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Subject: Re: Debugging Loadable Modules Using GDB X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Aug 2010 21:28:08 -0000 on 27/08/2010 23:11 Alexander Fiveg said the following: > Hi, > from "FreeBSD Developers' Handbook, 10.7 Debugging Loadable Modules Using > GDB": > "... > (kgdb) add-symbol-file /sys/modules/linux/linux.ko 0xc0ae22d0 > ... > " > Actually I couldn't debug my modules using .ko-file. Moreover, I've find out that .ko files do not contain sections with debugging info. With .kld-file debugging works out. Do I something incorrectly or the info in the Developers Book is outdated? I think the latter. .ko.symbols should work too [see relation between add-*symbol*-file and .ko.*symbols* ? :-) ] -- Andriy Gapon