• Sasha Goldshtein's avatar
    cc: Handle nested functions correctly when resolving symbols · 01bb02c7
    Sasha Goldshtein authored
    `ProcSyms::Module::find_addr` incorrectly resolves symbols when
    functions are nested in each other. Specifically, this was discovered
    with libpthread, where there are multiple symbols for `write`,
    where `write_nocancel` is strictly nested inside `write`. Fix by
    explicitly going backward until we reach a matching symbol -- see
    details in `ProcSyms::Module::find_addr` comments.
    01bb02c7
bcc_syms.cc 9.35 KB