packages/skills/skills/security-dwarf-expert/SKILL.md
.debug_info, .debug_line, .debug_frame sections# Check for DWARF info
readelf --debug-dump=info binary | head -50
file binary # Look for "with debug_info"
# Dump all DWARF sections
dwarfdump binary
objdump --dwarf=info binary
# List compilation units
dwarfdump --show-form binary | grep DW_TAG_compile_unit
# Extract type definitions
dwarfdump --name=TargetStruct binary
| Tag | Purpose |
|---|---|
DW_TAG_compile_unit | Source file compilation unit |
DW_TAG_subprogram | Function definition |
DW_TAG_variable | Variable declaration |
DW_TAG_structure_type | Struct definition |
DW_TAG_member | Struct field |
DW_TAG_formal_parameter | Function parameter |
DW_TAG_base_type | Primitive type (int, char, etc.) |
DW_TAG_pointer_type | Pointer to type |
DW_TAG_array_type | Array type with bounds |