freebsd-dev/sys/modules/vinum/.gdbinit.vinum.paths
1999-03-31 05:54:20 +00:00

20 lines
550 B
Plaintext

dir /usr/src/sys/modules/vinum
dir /usr/src/sys/i386/conf
dir /usr/src/sys
define 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
document asf
Find the load address of Vinum in the kernel and add the symbols at this address
end