Skip to content

Instantly share code, notes, and snippets.

View crimeraaa's full-sized avatar

crimeraaa crimeraaa

  • 17:42 (UTC +08:00)
View GitHub Profile
@flga
flga / odin-gdb-pretty-printers.py
Last active May 12, 2025 05:56
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."