From owner-cvs-src Thu Mar 20 16:30:56 2003 Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A5C9037B401; Thu, 20 Mar 2003 16:30:54 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4FD0343FBD; Thu, 20 Mar 2003 16:30:54 -0800 (PST) (envelope-from iedowse@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h2L0Us0U076991; Thu, 20 Mar 2003 16:30:54 -0800 (PST) (envelope-from iedowse@repoman.freebsd.org) Received: (from iedowse@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h2L0UsXj076988; Thu, 20 Mar 2003 16:30:54 -0800 (PST) Message-Id: <200303210030.h2L0UsXj076988@repoman.freebsd.org> From: Ian Dowse Date: Thu, 20 Mar 2003 16:30:53 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/gnu/usr.bin/binutils/gdb Makefile fbsd-kgdb.h kvm-fbsd.c solib-fbsd-kld.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-src@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG iedowse 2003/03/20 16:30:53 PST FreeBSD src repository Modified files: gnu/usr.bin/binutils/gdb Makefile fbsd-kgdb.h kvm-fbsd.c Added files: gnu/usr.bin/binutils/gdb solib-fbsd-kld.c Log: Attempt to automatically read in kernel module symbols when a live or dead kernel core is loaded into gdb. This extends gdb's existing shared library support, so the "info sharedlibrary", "sharedlibrary" and "nosharedlibrary" commands can be used to view and change the list of loaded symbol files. The current implementation is more than a kludge however, and it will not always manage to find the .ko.debug file corresponding to the loaded module. In particular, for modules whose build directory cannot be easily guessed from the module name such as all the netgraph modules, the debug version of the .ko will not be found automatically. The logic for finding the module file first attempts to guess at the module build directory by parsing the version[] string. Then using that directory ($DIR), it tries the following paths in turn: ./.ko.debug ./.ko $DIR/.ko.debug $DIR/.ko /boot/kernel/.ko.debug /boot/kernel/.ko Approved by: obrien, mp Revision Changes Path 1.65 +1 -1 src/gnu/usr.bin/binutils/gdb/Makefile 1.4 +1 -0 src/gnu/usr.bin/binutils/gdb/fbsd-kgdb.h 1.45 +30 -1 src/gnu/usr.bin/binutils/gdb/kvm-fbsd.c 1.1 +298 -0 src/gnu/usr.bin/binutils/gdb/solib-fbsd-kld.c (new) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-src" in the body of the message