From owner-freebsd-net@FreeBSD.ORG Fri May 2 20:15:43 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C18D3106567E for ; Fri, 2 May 2008 20:15:43 +0000 (UTC) (envelope-from pisymbol@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.28]) by mx1.freebsd.org (Postfix) with ESMTP id 754F18FC15 for ; Fri, 2 May 2008 20:15:43 +0000 (UTC) (envelope-from pisymbol@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so5690ywe.13 for ; Fri, 02 May 2008 13:15:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=Yi8we0zE6+DReN2ZxPQmFn+6dhAlmF2UKpHjf0vUcG8=; b=ZYaKJArJJryEn6uX4JoY8uxoo9NpCaEtpul+iCgnkrhzw6OsIOMwNpqOMQTPfMDJuO7BEhSuup21VMBaxCbpuYayG7klUOCzlXb/5rV7M4W4RXHQ5c1oYeM6kpkr5FkmbFqYV63PGzIflfsCjC1Ecdq8YfqGU1Bu8ktLQ56DbjQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=aRhdH+GWLht38wkeXyo0jZ9e7LD4QCowgQNJMPoctXDQ5+w5Ut5bMRzz5KqzCWL8UiLY6IneBgf2nxdyDfcaP8XIFDtrBcA7YC/s4/xnM82VWwZtZgpvJuLVqgTkN4DIMWeq3cskeu/lWkCzdtc9rY1f7wICzrOAcQROx6PiJWI= Received: by 10.150.51.9 with SMTP id y9mr3983087yby.39.1209759337950; Fri, 02 May 2008 13:15:37 -0700 (PDT) Received: by 10.151.11.1 with HTTP; Fri, 2 May 2008 13:15:37 -0700 (PDT) Message-ID: <3c0b01820805021315i482fe0acg3e9238a2f412770e@mail.gmail.com> Date: Fri, 2 May 2008 16:15:37 -0400 From: "Alexander Sack" To: "David Christensen" In-Reply-To: <5D267A3F22FD854F8F48B3D2B523819324F09D65FA@IRVEXCHCCR01.corp.ad.broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <5D267A3F22FD854F8F48B3D2B523819324F09D65FA@IRVEXCHCCR01.corp.ad.broadcom.com> Cc: "freebsd-net@freebsd.org" Subject: Re: Not All Symbols Present in a Loadable Kernel Module X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 May 2008 20:15:43 -0000 On Thu, May 1, 2008 at 10:04 PM, David Christensen wrote: > I'm trying to build the "bce" driver as a kernel module under RELENG_7 but I'm > finding that not all of the functions in the driver are exported as symbols. This > makes it difficult to "call" a function from ddb because I get the error "Symbol > not found". I'm building and loading the driver from /usr/src/sys/modules/bce. > What am I doing wrong? How can I get all functions in the driver exported as > symbols usable by the debugger? Are you building a debug kernel or regular kernel? Have you turned on debug symbols? makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols Just a quick thought...I'm assuming these symbols are listed under your final kernel image (nm it etc.). -aps