From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 27 20:35:11 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 AE16A106566B; Fri, 27 Aug 2010 20:35:11 +0000 (UTC) (envelope-from pebu3op@googlemail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 1140F8FC08; Fri, 27 Aug 2010 20:35:10 +0000 (UTC) Received: by bwz20 with SMTP id 20so2667382bwz.13 for ; Fri, 27 Aug 2010 13:35:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:reply-to:mail-followup-to:mime-version:content-type :content-disposition:user-agent; bh=CAfDdKH9Buvenv8kmh8OGfYmTNddK3saT86MN0rEzrk=; b=Ue9WLDMKoUgLCIYPTsQTyZBm6wDmlX2X5oq5nffVCGoDl8VloCnJQSDwUjE8+oEnGd n7YZdkPgWvzcBPV2iW6lnzy6PzTfHOU7JPqxcLs8ZJD7JnZAHr4xo/xrZmWHNj+RRFNm rqXgasn0IXi5+mDicDs89DDhAkc5bxsjSyZtU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:reply-to:mail-followup-to :mime-version:content-type:content-disposition:user-agent; b=UB1v+TiW0H+vYI3hOOLEsyeO6kB3X3GkZsAYZWXGsIvwn/xAk4JtLOcw7kdpiNDXXK pYtFKECj72sK0g0+HMTSiNuN3/La3ZmhkAnlKCyuLcopjL/qTpjuPYDICmmZBd/NilR6 5XAt/OLhsqEgdCuWWJze+ZjOTWc16F7FvDwyU= Received: by 10.204.54.193 with SMTP id r1mr871423bkg.123.1282939904117; Fri, 27 Aug 2010 13:11:44 -0700 (PDT) Received: from debmaster-laptop ([130.149.220.119]) by mx.google.com with ESMTPS id y2sm2844233bkx.20.2010.08.27.13.11.43 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 27 Aug 2010 13:11:43 -0700 (PDT) Date: Fri, 27 Aug 2010 22:11:41 +0200 From: Alexander Fiveg To: doc@FreeBSD.org, freebsd-hackers@freebsd.org Message-ID: <20100827201140.GA2812@debmaster-laptop> Mail-Followup-To: doc@FreeBSD.org, freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Cc: Subject: Debugging Loadable Modules Using GDB X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Alexander Fiveg 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 20:35:11 -0000 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? regards, Alex -- Alexander Fiveg Key fingerprint = ECBB 747C 919D 78F5 E8EC 7DBC 8B46 376D 107B CCAA