sh: unwinder: Set the flags for DW_CFA_val_offset ops as DWARF_VAL_OFFSET
authorMatt Fleming <matt@console-pimps.org>
Sun, 16 Aug 2009 14:56:35 +0000 (15:56 +0100)
committerMatt Fleming <matt@console-pimps.org>
Fri, 21 Aug 2009 12:02:44 +0000 (13:02 +0100)
commit97efbbd5886e27b61c19c77d41f6491f5d96fbd0
tree02fbb8fcedfcb1a3e6bff73b1cd5da133cea5957
parentfb3f3e7fc6d4afb32f9eba32124beaf40313de3c
sh: unwinder: Set the flags for DW_CFA_val_offset ops as DWARF_VAL_OFFSET

The handling of DW_CFA_val_offset ops was incorrectly using the
DWARF_REG_OFFSET flag but the register's value cannot be calculated
using the DWARF_REG_OFFSET method. Create a new flag to indicate that a
different method must be used to calculate the register's value even
though there is no implementation for DWARF_VAL_OFFSET yet; it's mainly
just a place holder.

Signed-off-by: Matt Fleming <matt@console-pimps.org>
arch/sh/include/asm/dwarf.h
arch/sh/kernel/dwarf.c