summaryrefslogtreecommitdiffstats
path: root/tools/KSE
diff options
context:
space:
mode:
authoriedowse <iedowse@FreeBSD.org>2003-03-21 00:30:53 +0000
committeriedowse <iedowse@FreeBSD.org>2003-03-21 00:30:53 +0000
commit2c7df26ff68fffa33e908dde9f23c21843e909c1 (patch)
tree9017d433e325550c546ea24b5a1017aa7b1c752d /tools/KSE
parent18bbff56056cc6fd3c51a8a21a50f257c2ef1fcd (diff)
downloadFreeBSD-src-2c7df26ff68fffa33e908dde9f23c21843e909c1.zip
FreeBSD-src-2c7df26ff68fffa33e908dde9f23c21843e909c1.tar.gz
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: ./<module>.ko.debug ./<module>.ko $DIR/<module>.ko.debug $DIR/<module>.ko /boot/kernel/<module>.ko.debug /boot/kernel/<module>.ko Approved by: obrien, mp
Diffstat (limited to 'tools/KSE')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud