radareorg/radare2

Loading variable names from DWARF and PDB

Open

#7,863 opened on Jul 5, 2017

View on GitHub
 (2 comments) (0 reactions) (3 assignees)C (3,229 forks)batch import
DWARFHacktoberfestPDBRAnaldebug-infoenhancementvars

Repository metrics

Stars
 (23,826 stars)
PR merge metrics
 (Avg merge 16h 24m) (99 merged PRs in 30d)

Description

DWARF

Radare2 does not output variable/attribute names (DW_AT_name). As a result, local function variables in binaries with debuginfo aren't named and still use "local_XX".

For example:

  1. Compile a binary with "-g3"
  2. Compare the output of objdump -g a.out, readelf --debug-dump=info a.out and rabin2 -d a.out

It would be fantastic if we could automatically rename "local_XX" by thier DW_AT_name for binaries with debuginfo.

PDB

Same applies here

Contributor guide