Date: Mon, 11 Nov 2019 09:22:02 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 183024] textdump(4) mentions call doadump, should be textdump dump Message-ID: <bug-183024-227-cTyckDkJZq@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-183024-227@https.bugs.freebsd.org/bugzilla/> References: <bug-183024-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D183024 --- Comment #4 from sigsys@gmail.com --- (In reply to Andriy Gapon from comment #3) Sure seems like you did! Thanks. I forgot to check if it had already been fixed after finding this PR. For reference, I just checked if making sure that debug.ddb.textdump.pendin= g is set or that having "textdump set" in the DDB script is necessary, and it is not. "textdump dump" tries to do a textdump no matter what. I wish the manpage gave some pointer to "debug.debugger_on_panic" though (I= had the KDB_UNATTENDED option when trying to set this up and ddb wasn't being invoked at all). Index: share/man/man4/textdump.4 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- share/man/man4/textdump.4 (revision 354599) +++ share/man/man4/textdump.4 (working copy) @@ -158,13 +158,21 @@ .Dv kdb.enter.panic will run when the kernel debugger is entered as a result of a panic, enable output capture, dump several useful pieces of debugging information, and t= hen -invoke panic in order to force a kernel dump to be written out followed by= a -reboot: +do a textdump followed by a reboot: .Bd -literal -offset indent script kdb.enter.panic=3Dtextdump set; capture on; show allpcpu; bt; ps; alltrace; show alllocks; textdump dump; reset .Ed .Pp +Note that +.Xr ddb 4 +must be set to be invoked on panic for this to work. +The +.Dv debug.debugger_on_panic +sysctl indicates if this is the case +(it will default to off if the kernel was compiled with +.Cd options KDB_UNATTENDED ) . +.Pp In the following example, the script .Dv kdb.enter.witness will run when the kernel debugger is entered as a result of a witness --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-183024-227-cTyckDkJZq>