From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 27 15:51:16 2008 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 23C001065670 for ; Thu, 27 Mar 2008 15:51:16 +0000 (UTC) (envelope-from pisymbol@gmail.com) Received: from ti-out-0910.google.com (ti-out-0910.google.com [209.85.142.191]) by mx1.freebsd.org (Postfix) with ESMTP id 9FB968FC26 for ; Thu, 27 Mar 2008 15:51:15 +0000 (UTC) (envelope-from pisymbol@gmail.com) Received: by ti-out-0910.google.com with SMTP id j2so1548129tid.3 for ; Thu, 27 Mar 2008 08:51:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition; bh=NZ84DYFA+TzW19phcJ5dQkgfqKqwyvLYjfmUAg77SuQ=; b=us8lChY4cfKcc2zuOYPf6+UB+kcS/iMB/TpQm/ICRvWnmz9MfHdhtIu+tUsd54J8ZKZ9z6/zCzB7TvTZCiJttTgY4k/cklOLQ9ZZTRDdJkvijLEzmUwVRgQkrz9vLEYdMoEKvOQKmLKoTMgxE8RxSGWj9bg1F/+aH9I1oO3ebHU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition; b=XvHes/q1oTdOIZJInb7gtrUAaPjH+Ahn7vy61ERzdcwGRPyrpDNI3bs1Exejnrudo3siDE+IOUoX8LenW2GHsJHqB5/hBPgWz4PInbZ9GQW2CMZ09sJs4KLutHZAyxuJzV23ZPszERuM2BVXcsJh9ghK7blslhyYoms1UEQ6IqQ= Received: by 10.150.201.13 with SMTP id y13mr881740ybf.100.1206633072120; Thu, 27 Mar 2008 08:51:12 -0700 (PDT) Received: by 10.150.230.16 with HTTP; Thu, 27 Mar 2008 08:51:12 -0700 (PDT) Message-ID: <3c0b01820803270851x24bfe739pea0bd4fb0ebecfb0@mail.gmail.com> Date: Thu, 27 Mar 2008 11:51:12 -0400 From: "Alexander Sack" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: freebsd-drivers@freebsd.org Subject: Stupid driver build/debug questions 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: Thu, 27 Mar 2008 15:51:16 -0000 Hello: New to the FreeBSD kernel and I'm investigating a driver problem (wasn't sure what list this should go on). I was wondering how to make a driver statically built instead of a loadable module? Is this an artifact of the driver source build or the generic kernel configuration mechanism via options etc.? i.e. does a driver need to use something different than the bsd.kmod.mk template make file to build a static driver. What I am trying to do is break at attach time more easily than stepping through driver_probe_and_attach()/driver_attach_child() until the attach routine gets called. I realize I can add a kdb_enter() but I was trying to do this on a live system without rebuilding the kernel (I understand this contradicts my first question but I still want to know how to build drivers statically). Thanks! -aps -- "What lies behind us and what lies in front of us is of little concern to what lies within us." -Ralph Waldo Emerson