diff options
| author | Greg Lehey <grog@FreeBSD.org> | 1999-04-10 04:04:16 +0000 |
|---|---|---|
| committer | Greg Lehey <grog@FreeBSD.org> | 1999-04-10 04:04:16 +0000 |
| commit | 1566f7801cdd97b2f62691ae1206c8c2a1fb09df (patch) | |
| tree | 7b68b3097b4c81bc5b22c0cc81a11d1892973461 /sys/modules | |
| parent | 9690aae3460fe8813bb782f85a864edd7099ab83 (diff) | |
Notes
Diffstat (limited to 'sys/modules')
| -rw-r--r-- | sys/modules/vinum/.gdbinit.kernel | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sys/modules/vinum/.gdbinit.kernel b/sys/modules/vinum/.gdbinit.kernel index 3dbda9e1fb131..1502d9f00b4d4 100644 --- a/sys/modules/vinum/.gdbinit.kernel +++ b/sys/modules/vinum/.gdbinit.kernel @@ -611,3 +611,19 @@ end define y echo Check your .gdbinit, it contains a y command\n end +define kldstat + set $file = files.tqh_first + printf "Id Refs Address Size Name\n" + while ($file != 0) + printf "%2d %4d 0x%8x %8x %s\n", \ + $file->id, \ + $file->refs, \ + $file->address, \ + $file->size, \ + $file->filename + set $file = $file->link.tqe_next + end +end +document kldstat +Equivalent of the kldstat(9) command, without options. +end |
