NetBSD/sys/gdbscripts/module

17 lines
380 B
Plaintext

define modules
set $h = module_list
set $e = $h->tqh_first
while ($e != 0)
if ($e->mod_kobj != 0)
printf "module %s\t0x%016x-0x%016x\n", \
$e->mod_info.mi_name, \
$e->mod_kobj->ko_address, \
$e->mod_kobj->ko_address + $e->mod_kobj->ko_size
else
printf "module %s\n", \
$e->mod_info.mi_name
end
set $e = $e->mod_chain.tqe_next
end
end