DragonFly commits List (threaded) for 2004-06
cvs commit: src/usr.sbin/asf Makefile asf.8 asf.c
hmp 2004/06/18 14:20:55 PDT
DragonFly src repository
usr.sbin/asf Makefile asf.8 asf.c
Add a helper utility, called asf(8): Add Symbol File.
The purpose of this utility is to extract start addresses from kldstat(8)'s
output and prepare a .gdbinit style file (called .asf) with GDB commands to
load the KLD files at the right offset.
The file can then be given to the 'source' command of GDB so that it does
its magic. This is how one can invoke the asf(8) command:
# asf -k -f -s -x /modules gdb.kldsyms.asf
Note, the '-k' output invokes kldstat(8) automatically, otherwise it
accepts kldstat(8) sytle output on stdin, which can be produced by a
gdb macro so that is is equally useful in post-crash analysis.
One needs to compile the module with debugging symbols, though.
Obtained-from: FreeBSD (CVS, MAIN branch)