mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Improve the manner in which the location of the kld is found. It
should now be completely automatic.
This commit is contained in:
parent
962113a4bf
commit
ba90a5c31c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=44713
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user