retdec icon indicating copy to clipboard operation
retdec copied to clipboard

retdec-decompiler.py: can't provide external DWARF file

Open 4ad opened this issue 3 years ago • 2 comments

There's an option for loading external PDB file, but no such option exists for DWARF. Is this planned?

4ad avatar Dec 06 '21 12:12 4ad

There is an option for PDB because it is standard to have these files separate from executable PE files.

This is not so for ELF + DWARF. Or do you mean PE + DWARF?.

At the time of implementing this, we were not aware this is even possible. And even if possible, then certainly not commonly used. So, my question is, are we talking ELF + DWARF? PE + DWARF? Is this actually used now? Do you have example samples?

The answer to your question is NO, we don't plan for it, because we are not even aware of it. You might change tis issue from a question to a feature request. Be sure to include the samples to test on, etc. It is does not mean someone will get to it right away, but it is a start.

Btw, we are accepting PRs, so you might want to have a go at it yourself :-D

PeterMatula avatar Dec 08 '21 15:12 PeterMatula

For my particular use case, I am interested in Mach-O with external DWARF. However, ELF+DWARF is relatively common.

4ad avatar Dec 08 '21 15:12 4ad