Module Name: src Committed By: yamt Date: Wed Nov 2 16:51:21 UTC 2011
Modified Files: src/sys/gdbscripts: Makefile.inc Added Files: src/sys/gdbscripts: module Log Message: a macro to dump kernel modules To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/sys/gdbscripts/Makefile.inc cvs rdiff -u -r0 -r1.1 src/sys/gdbscripts/module Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/gdbscripts/Makefile.inc diff -u src/sys/gdbscripts/Makefile.inc:1.4 src/sys/gdbscripts/Makefile.inc:1.5 --- src/sys/gdbscripts/Makefile.inc:1.4 Wed Feb 20 21:01:23 2008 +++ src/sys/gdbscripts/Makefile.inc Wed Nov 2 16:51:21 2011 @@ -1,3 +1,3 @@ -# $NetBSD: Makefile.inc,v 1.4 2008/02/20 21:01:23 ad Exp $ +# $NetBSD: Makefile.inc,v 1.5 2011/11/02 16:51:21 yamt Exp $ -SYS_GDBINIT= bdump cpus kdump lwps msgbuf pgrpdump procs vchain vdump +SYS_GDBINIT= bdump cpus kdump lwps module msgbuf pgrpdump procs vchain vdump Added files: Index: src/sys/gdbscripts/module diff -u /dev/null src/sys/gdbscripts/module:1.1 --- /dev/null Wed Nov 2 16:51:22 2011 +++ src/sys/gdbscripts/module Wed Nov 2 16:51:21 2011 @@ -0,0 +1,16 @@ +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