Skip to content

Instantly share code, notes, and snippets.

View turbolent's full-sized avatar

Bastian Müller turbolent

View GitHub Profile
@turbolent
turbolent / get_dwarf_info.py
Created February 4, 2022 04:30 — forked from yurydelendik/get_dwarf_info.py
Extarct DWARF-like information from binary WASM
#!/usr/bin/env python
"""Utility to extract .debug_info section and print that in JSON format.
"""
import argparse
from collections import OrderedDict
import json
import logging
from math import ceil, log
import os