Skip to content

Instantly share code, notes, and snippets.

View crimeraaa's full-sized avatar

crimeraaa crimeraaa

  • 09:30 (UTC +08:00)
View GitHub Profile
@flga
flga / odin-gdb-pretty-printers.py
Last active October 19, 2025 14:34
GDB pretty printers for Odin types
import gdb
import re
# Set it to true if you're using Microsoft's vscode plugin for c/c++.
# This works around the fact that it doesn't handle "map" display hints properly.
enable_msft_workarounds = False
class OdinAnyPrinter(gdb.ValuePrinter):
"Pretty print Odin any."