kgdb,sh: update superh kgdb exception handling
authorJason Wessel <jason.wessel@windriver.com>
Fri, 21 May 2010 02:04:20 +0000 (21:04 -0500)
committerJason Wessel <jason.wessel@windriver.com>
Fri, 21 May 2010 02:04:20 +0000 (21:04 -0500)
commit489022cc86ec8817a30226d00d35c67d74dd24a0
tree4390b147ff1d1bbd554f263e078e427456ddafb5
parentc75fbb05b523571c0fdc48d4b968b73f0e20acbb
kgdb,sh: update superh kgdb exception handling

Implement kgdb_arch_pc() which adjusts the pc if it needs to be
adjusted after a software breakpoint trap.

Implement kgdb_arch_set_pc() which is a new required function in the
kgdb debug core.

When processing a single step return zero in the error exception field
so that the debug core can distinguish between a single step trap and
a breakpoint trap generically.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Acked-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/kgdb.c