[PATCH 2/3] makedep: Output ELF debug file to .debug/ directory.

Rémi Bernon rbernon at codeweavers.com
Mon May 25 11:20:55 CDT 2020

On 5/25/20 5:15 PM, Jacek Caban wrote:
> Hi Rémi,
> On 25.05.2020 16:32, Rémi Bernon wrote:
>> Linux perf isn't able to parse debug link from PE files either, but it
>> looks for similarly named files in relative a .debug directory.
> Did you look at how hard it would be to add minimal PE support to perf 
> itself? To replace this patch, it would need to locate GNU debug link in 
> PE file. Its format is identical to ELF files, so I'd hope that it 
> shouldn't be too hard. It's a similar situation for debug info itself.
> Thanks,
> Jacek

I didn't look very deep but I think although it already uses libbfd for 
some things, it directly uses libelf to look for debug info and symbols 
(and thus only supports ELF files for that purpose). It may be possible 
to change that and make it use libbfd for everything and support PE 
files but it seemed to be a lot more work than generating the files in 
the right format (also, the .debug folder is apparently some kind of 
standard method as well so it wasn't completely perf-specific).
Rémi Bernon <rbernon at codeweavers.com>

More information about the wine-devel mailing list