1dir /usr/src/sys/modules/vinum
2dir /usr/src/sys/i386/conf
3dir /usr/src/sys
4define asf
5   set $file = linker_files.tqh_first
6   set $found = 0
7   while ($found == 0)
8     if (*$file->filename == 'v')
9	set $found = 1
10     else
11       set $file = $file->link.tqe_next
12     end
13   end
14   shell /usr/bin/objdump --section-headers /modules/vinum.ko | grep ' .text' | awk '{print "add-symbol-file /modules/vinum.ko \$file->address+0x" $4}' > .asf
15   source .asf
16end
17document asf
18Find the load address of Vinum in the kernel and add the symbols at this address
19end
20