diff options
author | grog <grog@FreeBSD.org> | 1999-03-13 07:42:15 +0000 |
---|---|---|
committer | grog <grog@FreeBSD.org> | 1999-03-13 07:42:15 +0000 |
commit | 91cf8ffed0ec0a6343df47baa2385304078693fc (patch) | |
tree | 96b8edb5e494c08f84add132f337f211ca669560 /sys/modules | |
parent | 01538c36aece79b0d77fba7507c294278c2f5282 (diff) | |
download | FreeBSD-src-91cf8ffed0ec0a6343df47baa2385304078693fc.zip FreeBSD-src-91cf8ffed0ec0a6343df47baa2385304078693fc.tar.gz |
Improve the manner in which the location of the kld is found. It
should now be completely automatic.
Diffstat (limited to 'sys/modules')
-rw-r--r-- | sys/modules/vinum/.gdbinit.crash | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/sys/modules/vinum/.gdbinit.crash b/sys/modules/vinum/.gdbinit.crash index 45eab04..d7362c8 100644 --- a/sys/modules/vinum/.gdbinit.crash +++ b/sys/modules/vinum/.gdbinit.crash @@ -628,4 +628,18 @@ def rqi end end end - +def asf + set $file = files.tqh_first + set $found = 0 + while ($found == 0) + if (*$file->filename == 'V') + set $found = 1 + else + set $file = $file->link.tqe_next + end + end + shell /usr/bin/objdump --section-headers /modules/vinum.ko | grep ' .text' | awk '{print "add-symbol-file /modules/vinum.ko \$file->address+0x" $4}' > .asf + source .asf +end +asf +f 1 |