Dsviz
A tool for visualizing structures from debug info
Install / Use
/learn @zolutal/DsvizREADME
Debug Struct Visualizer
Converts a struct in the type info of a specified binary to an interactive graph using:
- gdb -- for it's python api which includes an easy-to-use interface to access loaded type information, so any debug info format that gdb supports is supported
- graphviz -- for it's graph generation capabilities
- pywebview -- provides a view of the interactive generated graph without needing to bother with a browser and web server
Dependencies:
python dependencies will be installed with module installation:
pip install .
additional requirement: gdb and graphviz's 'dot' executable must be found in path
on ubuntu:
sudo apt install gdb graphviz
Usage:
dsviz <path-to-binary> <name-of-root-struct> (output-file)
if output-file is specified the graphviz dot file will be written to that file each time the graph is updated via interactions
to expand a struct field, right click on the field name and click 'Expand' in the context menu that appears
Examples:
vmlinux:
struct kmem_cache
dsviz ~/kernel/linux-6.1-rc3/vmlinux "struct kmem_cache"

struct cred
dsviz ~/kernel/linux-6.1-rc3/vmlinux "struct cred"

QEMU:
struct CPUTLB
dsviz ~/qemu/build/qemu-system-x86_64 "struct CPUTLB"

TODO:
- validate gdb and dot are in path
- allow output format to be specified
- many other things...
Related Skills
node-connect
350.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
350.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
350.8kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
