• Eric Pouech's avatar
    dbghelp: Better handle very long C++ qualified identifiers in dwarf. · 542ccaaf
    Eric Pouech authored
    This fixes some crashes especially when dealing with very long C++ names
    (like template classes).
    
    Fortunately, dwarf internals don't require type lookup by name (eg.
    on forward declaration), so the impact of thrashing some names is limited.
    
    It's very likely native doesn't store directly these very long names
    (it could either store the qualified mangled name - which can be way shorter
    for template classes - or use the names in lexical hierarchy: both boil down
    to storing less information, and recompute it (unmangle or class hierarchy
    walk) upon request).
    But this would need a proper C++ support in dbghelp. Not for today.
    Signed-off-by: 's avatarEric Pouech <epouech@codeweavers.com>
    542ccaaf
dwarf.c 153 KB