3 ms·
> I never quite figured out how to get debug symbols to map correctly with this Wine-under-GDB setup going on, so I had to manually explore the address space t
by rwmj 5y ago
> I never quite figured out how to get debug symbols to map correctly with this Wine-under-GDB setup going on, so I had to manually explore the address space to figure out what I was looking at.
Yeah I had the same problem and never solved it. In fact I don't think I even got a handle on what the problem is at all. In what format are symbols created by mingw-gcc (I think PDB??) and in what format either Wine's debugger or GCC can consume symbols (DWARF???)
- rwmj 5y agoEdit: For "GCC" I meant of course "GDB"
- jchw 5y agoThat’s the weird part: MinGW does use DWARF, embedded into PE similar to how it is embedded into ELF, with just one little non-standard trick for long section names. On Windows, GDB supports loading these symbols just fine. But if I forcibly get them to load on Wine under GDB, it doesn’t seem to work even if the load seems to succeed. Confusing.
- KenoFischer 5y agoI have a patch that teaches GDB how to do this here: https://github.com/JuliaComputing/gdb-solib-wine https://github.com/JuliaComputing/gdb-solib-wine. Unfortunately, I don't really have the time to upstream this, but perhaps it's useful or maybe somebody sees this and wants to take on the upstreaming.
- jchw 5y agoAwesome! It’s definitely a step in the right direction, and I’d love to see this upstreamed, though personally I have never contributed to GDB before. Do you have any idea how this is impacted by builds of Wine that are using the new MinGW-based PE modules for almost everything?