summaryrefslogtreecommitdiffstats
path: root/sys/ddb/db_command.c
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2012-11-01 04:07:08 +0000
committeralfred <alfred@FreeBSD.org>2012-11-01 04:07:08 +0000
commit17ead000b575c7ce3afe8be8c407ecccce71aa96 (patch)
treee88b6b96e5a2b38ee55f4ff5bce4bacc8dbd543c /sys/ddb/db_command.c
parent24d055e3734afacefaa7dacc0a9491b9fafcb984 (diff)
downloadFreeBSD-src-17ead000b575c7ce3afe8be8c407ecccce71aa96.zip
FreeBSD-src-17ead000b575c7ce3afe8be8c407ecccce71aa96.tar.gz
Small textdump enhancements.
Allow textdumps to be called explicitly from DDB. If "dump" is called in DDB and textdumps are enabled then abort the dump and tell the user to turn off textdumps. Add options TEXTDUMP_PREFERRED to turn textdumps on by default. Add options TEXTDUMP_VERBOSE to be a bit more verbose while textdumping. Reviewed by: rwatson MFC after: 2 weeks
Diffstat (limited to 'sys/ddb/db_command.c')
-rw-r--r--sys/ddb/db_command.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/ddb/db_command.c b/sys/ddb/db_command.c
index e0f14b9..cc4bde9 100644
--- a/sys/ddb/db_command.c
+++ b/sys/ddb/db_command.c
@@ -535,6 +535,11 @@ db_dump(db_expr_t dummy, boolean_t dummy2, db_expr_t dummy3, char *dummy4)
{
int error;
+ if (textdump_pending) {
+ db_printf("textdump_pending set.\n"
+ "run \"textdump unset\" first or \"textdump dump\" for a textdump.\n");
+ return;
+ }
error = doadump(FALSE);
if (error) {
db_printf("Cannot dump: ");
OpenPOWER on IntegriCloud