Page MenuHomeFreeBSD

crashinfo: Source a list of python scripts into kgdb
ClosedPublic

Authored by markj on Jan 11 2022, 2:41 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jul 7, 3:06 AM
Unknown Object (File)
Sun, Jul 6, 4:51 PM
Unknown Object (File)
Fri, Jul 4, 1:59 AM
Unknown Object (File)
Fri, Jun 27, 6:54 PM
Unknown Object (File)
Mon, Jun 23, 7:42 AM
Unknown Object (File)
May 28 2025, 3:59 AM
Unknown Object (File)
May 15 2025, 9:48 AM
Unknown Object (File)
May 7 2025, 8:41 AM
Subscribers

Details

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 43824
Build 40712: arc lint + arc unit

Event Timeline

markj requested review of this revision.Jan 11 2022, 2:41 AM
avg added a subscriber: avg.

LGTM!
At work we have an extension that allows to dump (and save) both a text dump and a vmcore at the same time.
We use that to easily capture from ddb things that are hard (but not impossible) to get with kgdb.
The path you open here is a great alternative to that.

This revision is now accepted and ready to land.Jan 11 2022, 7:33 AM

That's kind of neat. Note that there may be some ways to get kgdb to auto-load python scripts if you install them in the right path the way the scripts to create pretty-printers for libc++ works now. It may be worth looking at that at some point. That is, you would perhaps install a python script to /boot/kernel/kernel.py (or whatever gdb wants it called) during installkernel and then gdb (and kgdb) would auto-load it.

Note that you could store the "real" scripts in /usr/libexec/kgdb or the like and have the kernel-gdb.py just be a small script that loads the common ones.