1999-03-28 09:12:17 +00:00
|
|
|
dir /usr/src/sys/modules/vinum
|
|
|
|
dir /usr/src/sys/i386/conf
|
|
|
|
dir /usr/src/sys
|
|
|
|
define asf
|
1999-08-26 04:01:37 +00:00
|
|
|
set $file = linker_files.tqh_first
|
1999-03-28 09:12:17 +00:00
|
|
|
set $found = 0
|
|
|
|
while ($found == 0)
|
|
|
|
if (*$file->filename == 'v')
|
|
|
|
set $found = 1
|
|
|
|
else
|
|
|
|
set $file = $file->link.tqe_next
|
|
|
|
end
|
|
|
|
end
|
1999-03-31 05:54:20 +00:00
|
|
|
shell /usr/bin/objdump --section-headers /modules/vinum.ko | grep ' .text' | awk '{print "add-symbol-file /modules/vinum.ko \$file->address+0x" $4}' > .asf
|
1999-03-28 09:12:17 +00:00
|
|
|
source .asf
|
|
|
|
end
|
|
|
|
document asf
|
|
|
|
Find the load address of Vinum in the kernel and add the symbols at this address
|
|
|
|
end
|