dwarf-expert

Explain and analyze DWARF debug information in compiled binaries.

Updated Jul 10, 2025
One-click install
npx skills add https://github.com/Superlend/superloop-core-contracts --skill dwarf-expert
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dwarf-expert
Source: https://github.com/Superlend/superloop-core-contracts/tree/main/.cursor/skills/dwarf-expert/skills/dwarf-expert
Command: npx skills add https://github.com/Superlend/superloop-core-contracts --skill dwarf-expert

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

DWARF debug information can be difficult to interpret, slowing binary analysis, debugging, and performance tuning. This skill provides expert guidance on understanding and analyzing DWARF data to accelerate insight and troubleshooting.

Core Features & Use Cases

  • DWARF interpretation: Explain DIEs, attributes, types, and unit structures to quickly answer binary analysis questions.
  • Tooling guidance: Provide recommended workflows using dwarfdump, readelf, and Python libraries (e.g., pyelftools) for parsing and verification.
  • Use Case: When inspecting a binary with missing or misleading DWARF data, use this skill to interpret DW_TAG_subprograms, types, and line number mappings to locate issues and verify correctness.

Quick Start

Run a DWARF dump on a sample binary to inspect DIEs and attribute values.

Frequently Asked Questions about dwarf-expert

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I parse DWARF debug information in compiled binaries?

To parse DWARF debug information, you can use tools like dwarfdump and readelf, or implement parsing logic with Python libraries like pyelftools to inspect DIEs and attributes. This skill provides workflows to interpret unit structures and verify correctness.

What is a DW_TAG_subprogram in DWARF data and how does it work?

A DW_TAG_subprogram in DWARF data represents a subroutine or function within a compiled binary. This skill explains how to interpret these Debugging Information Entries, their attributes, and types to locate issues when inspecting missing or misleading debug data.

Does pyelftools support parsing DWARF v5 sections?

Yes, pyelftools can be used to parse DWARF sections. This skill provides expert guidance on the DWARF standard from v3 through v5, helping you verify and troubleshoot DWARF data parsed by libraries like pyelftools.

What's the best way to troubleshoot missing or misleading DWARF data?

The best way to troubleshoot misleading DWARF data is running a DWARF dump using dwarfdump or readelf to inspect DIEs and attribute values. This skill helps you interpret line number mappings and types to pinpoint the exact issue.

Can I use readelf to verify line number mappings in ELF binaries?

Yes, readelf is recommended for verifying DWARF line number mappings in ELF binaries. This skill guides you through using readelf alongside dwarfdump to parse, inspect, and validate debug information for accurate binary analysis.