summaryrefslogtreecommitdiffstats
path: root/sys/sys/conf.h
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2011-06-07 01:28:12 +0000
committermarcel <marcel@FreeBSD.org>2011-06-07 01:28:12 +0000
commit36b8c5d486fa809443a7d522780bf3c5a6f70393 (patch)
tree123206d93a57192e589e8defa20d16df50330db7 /sys/sys/conf.h
parent2bf7ed6fc0e8d175dd13da2f68d538ee3facb919 (diff)
downloadFreeBSD-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.h1
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 */
OpenPOWER on IntegriCloud