sh: Set the cfa_offset to 0 if we see a DW_CFA_def_cfa_register op
commit180aa6e6aa11922dcd4c13df1967d62bb2ede76c
authorMatt Fleming <matt@console-pimps.org>
Fri, 14 Aug 2009 23:04:00 +0000 (15 00:04 +0100)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 14 Aug 2009 23:07:43 +0000 (15 08:07 +0900)
treee7f4a2c3bd38df81ada3b89fc38fd5b9e17fb707
parent7dd6662a92fe9a15ad565045aa60367995cc533d
sh: Set the cfa_offset to 0 if we see a DW_CFA_def_cfa_register op

The way that the CFA is calculated can change as we progress through a
function. If we see a DW_CFA_def_cfa_register op we need to reset the
frame's cfa_offset value which may have been previously setup.

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