A kernel debugger in Python: drgn
A kernel debugger in Python: drgn
Posted May 31, 2019 6:35 UTC (Fri) by vbabka (subscriber, #91706)In reply to: A kernel debugger in Python: drgn by Paf
Parent article: A kernel debugger in Python: drgn
I looked briefly into pykdump code and got the impression (maybe wrong? from the file wrapcrash.py) that it works by executing crash commands and parsing their output. And AFAIK crash does similar thing with the embedded gdb. Building on top of gdb's Python API seems much cleaner and powerful than that. You don't split the kernel-specific knowledge into a binary built from C with commands producing plain text, and your python scripting on top. Instead the whole kernel-specific knowledge is in Python, which your scripts can reuse and extend.