• Matt Ma's avatar
    Support inline functions in folly stack trace symbolizer · 1c76bae6
    Matt Ma authored
    Summary:
    Basic idea is to find the subprogram for a given stack trace address, scan the inlined subroutines of that subprogram recursively for all inline function calls, then find the name and location of these inline function calls.
    
    Now only pure inline functions are supported, and class inline functions are not. Class inline functions needs a lookup path "caller->obj->type", then lookup types in .debug_types, which is more complex.
    
    The debug info parser idea was stolen from hphp/tools/debug-parser/dwarfstate.h
    
    Not sure if we want to add a flag to enable this feature. We can discuss over review.
    
    Reviewed By: luciang
    
    Differential Revision: D16760775
    
    fbshipit-source-id: 1a7c23486605e7d8837070a697a875789ae41416
    1c76bae6
Symbolizer.h 11.8 KB