diff options
author | marcel <marcel@FreeBSD.org> | 2011-06-07 01:28:12 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2011-06-07 01:28:12 +0000 |
commit | 36b8c5d486fa809443a7d522780bf3c5a6f70393 (patch) | |
tree | 123206d93a57192e589e8defa20d16df50330db7 /sys/sys/conf.h | |
parent | 2bf7ed6fc0e8d175dd13da2f68d538ee3facb919 (diff) | |
download | FreeBSD-src-36b8c5d486fa809443a7d522780bf3c5a6f70393.zip FreeBSD-src-36b8c5d486fa809443a7d522780bf3c5a6f70393.tar.gz |
Fix making kernel dumps from the debugger by creating a command
for it. Do not not expect a developer to call doadump(). Calling
doadump does not necessarily work when it's declared static. Nor
does it necessarily do what was intended in the context of text
dumps. The dump command always creates a core dump.
Move printing of error messages from doadump to the dump command,
now that we don't have to worry about being called from DDB.
Diffstat (limited to 'sys/sys/conf.h')
-rw-r--r-- | sys/sys/conf.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/conf.h b/sys/sys/conf.h index 31fd34d..0c7ed41 100644 --- a/sys/sys/conf.h +++ b/sys/sys/conf.h @@ -332,6 +332,7 @@ struct dumperinfo { int set_dumper(struct dumperinfo *); int dump_write(struct dumperinfo *, void *, vm_offset_t, off_t, size_t); void dumpsys(struct dumperinfo *); +int doadump(boolean_t); extern int dumping; /* system is dumping */ #endif /* _KERNEL */ |