radareorg/radare2

Loading variable names from DWARF and PDB

Open

#7863 aperta il 5 lug 2017

Vedi su GitHub
 (2 commenti) (0 reazioni) (3 assegnatari)C (3229 fork)batch import
DWARFHacktoberfestPDBRAnaldebug-infoenhancementvars

Metriche repository

Star
 (23.826 star)
Metriche merge PR
 (Merge medio 16h 24m) (99 PR mergiate in 30 g)

Descrizione

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

Guida contributor