]> git.baikalelectronics.ru Git - kernel.git/commit
sh: unwinder: Fix up invalid PC refetch in dwarf unwinder.
authorPaul Mundt <lethal@linux-sh.org>
Fri, 6 Nov 2009 08:23:33 +0000 (17:23 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 6 Nov 2009 08:23:33 +0000 (17:23 +0900)
commit2f4bfde37dc991d5da125ddb33bf37ca3175e586
tree1a03b8e813e6e0036b83575c1e92993c838d7155
parenta7a54a67653fa04c3acc617e56726fed63e18abd
sh: unwinder: Fix up invalid PC refetch in dwarf unwinder.

The dwarf unwinder presently attempts to provide a sane PC value if none
is provided, however the logic is broken and cases where a previous valid
dwarf frame exists along with a bogus PC value can still proceed. This
fixes up the test and prevents the unwinder from blowing up.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/dwarf.c