From owner-freebsd-current@FreeBSD.ORG Fri Jun 27 11:00:47 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7AEC037B401 for ; Fri, 27 Jun 2003 11:00:47 -0700 (PDT) Received: from mail.cyberonic.com (mail.cyberonic.com [4.17.179.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8CAF643F85 for ; Fri, 27 Jun 2003 11:00:46 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (node-40244c0a.sfo.onnet.us.uu.net [64.36.76.10]) by mail.cyberonic.com (8.12.8/8.12.5) with ESMTP id h5RIPdED028300 for ; Fri, 27 Jun 2003 14:25:40 -0400 Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.9/8.11.6) id h5RI1Ame072067 for current@FreeBSD.org; Fri, 27 Jun 2003 11:01:10 -0700 (PDT) (envelope-from jmg) Date: Fri, 27 Jun 2003 11:01:10 -0700 From: John-Mark Gurney To: current@FreeBSD.org Message-ID: <20030627180110.GC55920@funkthat.com> Mail-Followup-To: current@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.2-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html Subject: KLD symbol loading for gdb X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John-Mark Gurney List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jun 2003 18:00:48 -0000 Hello, I have updated my scripts for loading KLD symbols into kgdb. This is designed to work with core dumps. It will search out and find the symbol files automaticly. It will search both the compile directory and the modules directory of the source tree. This is for people who want to work on a module, but don't want to rebuild their entire kernel tree to get it. This updated version should automaticly detect all paths now. It uses the info.x file from the crash dump to get the compile path. It assumes crash dumps are in /var/crash Basic usage is: sh kgdb -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."