dbghelp: Workaround for crash in debugger while parsing dwarf2 attr op 75 (resend)

Paul Chitescu paulc at voip.null.ro
Wed Sep 20 11:45:09 CDT 2006

Changelog: Workaround for a crash that occurs in debugger while parsing dwarf2 
information - dwarf2_compute_location Unhandled attr op: 75

This avoids the debugger crashing forever in a loop but it's not a clean 
solution. Correct would be to handle attribute 75.

The workaround assumes addresses in the first 64K of memory are invalid.  
If a debug info block seems to be at such a low address a FIXME is emitted
instead of crashing. Crashing is bad as it usually results in an endless 
loop - winedbg is invoked to debug the crashed winedbg...

I know the solution is not perfect but at least the debugger survives and 
displays useful information. Probably some information is lost but it 
doesn't seem essential as the backtraces are readable.

Paul Chitescu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dbghelp_dwarf2_invalid_block.patch
Type: text/x-diff
Size: 678 bytes
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20060920/3bdaf32b/dbghelp_dwarf2_invalid_block.bin

More information about the wine-patches mailing list