diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2009-08-09 23:04:50 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2009-08-09 23:04:50 +0000 |
commit | d820f3e3ba1e6e29ce2bf7dcd9ec368578f3f3d7 (patch) | |
tree | 5ec3967e190bbeba0c2ab7e8e86b3f45ba20c19a /sys/ddb/db_command.h | |
parent | 4ad0571c604526a0bb64f7b2d6e62d9ac8366227 (diff) |
Introduce option DDB_STRUCT. Kernels compiled with this option (except on
a few arches where toolchain limitations apply) will embed some symbolic
information about the various structs used within the kernel, and have
new ddb commands allowing struct display and some useful information
gathering. Kernel rodata increase varies accross platforms from ~150KB to
~300KB.
This option is not enabled by default.
Diffstat (limited to 'sys/ddb/db_command.h')
-rw-r--r-- | sys/ddb/db_command.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/ddb/db_command.h b/sys/ddb/db_command.h index a2d7bde4c92..5350d8204ec 100644 --- a/sys/ddb/db_command.h +++ b/sys/ddb/db_command.h @@ -1,4 +1,4 @@ -/* $OpenBSD: db_command.h,v 1.25 2009/08/08 15:04:43 beck Exp $ */ +/* $OpenBSD: db_command.h,v 1.26 2009/08/09 23:04:49 miod Exp $ */ /* $NetBSD: db_command.h,v 1.8 1996/02/05 01:56:55 christos Exp $ */ /* @@ -66,6 +66,8 @@ void db_stack_trace_cmd(db_expr_t, int, db_expr_t, char *); void db_dmesg_cmd(db_expr_t, int, db_expr_t, char *); void db_show_panic_cmd(db_expr_t, int, db_expr_t, char *); void db_bcstats_print_cmd(db_expr_t, int, db_expr_t, char *); +void db_struct_offset_cmd(db_expr_t, int, db_expr_t, char *); +void db_struct_layout_cmd(db_expr_t, int, db_expr_t, char *); extern db_addr_t db_dot, db_last_addr, db_prev, db_next; |