From ea0d04f36e776ba238362e6ec616b21e5bdeaa7c Mon Sep 17 00:00:00 2001 From: Ian Dowse Date: Fri, 21 Mar 2003 00:30:53 +0000 Subject: 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 --- gnu/usr.bin/binutils/gdb/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gnu/usr.bin/binutils/gdb/Makefile') diff --git a/gnu/usr.bin/binutils/gdb/Makefile b/gnu/usr.bin/binutils/gdb/Makefile index aebd00230b2f6..f30885ad52247 100644 --- a/gnu/usr.bin/binutils/gdb/Makefile +++ b/gnu/usr.bin/binutils/gdb/Makefile @@ -39,7 +39,7 @@ XSRCS= annotate.c arch-utils.c ax-general.c ax-gdb.c bcache.c \ scm-exp.c scm-lang.c scm-valprint.c \ coffread.c dbxread.c dwarfread.c dwarf2read.c elfread.c \ solib.c solib-svr4.c solib-legacy.c -XSRCS+= freebsd-uthread.c kvm-fbsd.c +XSRCS+= freebsd-uthread.c kvm-fbsd.c solib-fbsd-kld.c SRCS= init.c ${XSRCS} nm.h tm.h xm.h gdbversion.c xregex.h .if exists(${.CURDIR}/Makefile.${TARGET_ARCH}) -- cgit v1.3