sh: Allow multiple stack unwinders to be setup
authorMatt Fleming <matt@console-pimps.org>
Thu, 13 Aug 2009 10:49:03 +0000 (19:49 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Thu, 13 Aug 2009 10:49:03 +0000 (19:49 +0900)
commitbf61ad1f870be88676a07bfef69acd59ce10172e
tree2fb8817fb76386b3d543d8d02f2cbe5877088e18
parent4e14dfc722b8e9e07a355f97aa60a3d9f0739071
sh: Allow multiple stack unwinders to be setup

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: Matt Fleming <matt@console-pimps.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/include/asm/unwinder.h [new file with mode: 0644]
arch/sh/kernel/Makefile_32
arch/sh/kernel/Makefile_64
arch/sh/kernel/unwinder.c [new file with mode: 0644]