• M
    sh: Allow multiple stack unwinders to be setup · bf61ad1f
    Matt Fleming 提交于
    Provide an interface for registering stack unwinders, where each
    unwinder is given a rating that describes its accuracy and
    complexity. The more accurate an unwinder is, the more complex it is.
    
    If a the current stack unwinder faults, then the stack unwinder with the
    next highest accuracy will be used in its place (provided one is
    available). For example, this allows unwinders, such as the DWARF
    unwinder, to liberally sprinkle BUG()s to catch badly formed DWARF debug
    info.
    Signed-off-by: NMatt Fleming <matt@console-pimps.org>
    Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
    bf61ad1f
unwinder.c 4.1 KB