From owner-cvs-src@FreeBSD.ORG Tue Jan 29 23:44:34 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C6DB116A417; Tue, 29 Jan 2008 23:44:34 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id B526813C459; Tue, 29 Jan 2008 23:44:34 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m0TNiYx7039017; Tue, 29 Jan 2008 23:44:34 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m0TNiYrd039016; Tue, 29 Jan 2008 23:44:34 GMT (envelope-from jhb) Message-Id: <200801292344.m0TNiYrd039016@repoman.freebsd.org> From: John Baldwin Date: Tue, 29 Jan 2008 23:44:34 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/gnu/usr.bin/gdb/kgdb kgdb.h kld.c trgt.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jan 2008 23:44:34 -0000 jhb 2008-01-29 23:44:34 UTC FreeBSD src repository Modified files: gnu/usr.bin/gdb/kgdb kgdb.h kld.c trgt.c Log: - Rework the kld support to hook into GDB's shared library support. kgdb(8) now treats kld's as shared libraries relative to the kernel "binary". Thus, you can use 'info sharedlibrary' to list the kld's along with 'sharedlibrary' and 'nosharedlibrary' to manage symbol loading and unloading. Note that there isn't an easy way to force GDB to use a specific path for a shared library. However, you can use 'nosharedlibrary' to unload all the klds and then use 'sharedlibrary' to load specific klds where it gets the kld correct and use 'add-kld' for the kld's where the default open behavior doesn't work. klds opened via 'sharedlibrary' (and during startup) do have their sections listed in 'info files'. - Change the 'add-kld' command to use filename completion to complete its argument. Revision Changes Path 1.11 +1 -0 src/gnu/usr.bin/gdb/kgdb/kgdb.h 1.6 +165 -79 src/gnu/usr.bin/gdb/kgdb/kld.c 1.10 +1 -4 src/gnu/usr.bin/gdb/kgdb/trgt.c