sh: kgdb: do not reload VBR while handling debugger breackpoint
authorGiuseppe Cavallaro <peppe.cavallaro@st.com>
Mon, 24 Aug 2009 07:14:03 +0000 (16:14 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 24 Aug 2009 07:14:03 +0000 (16:14 +0900)
Save the VBR allowing GDB to dump full registers set but do not reload it
as soon as the kgdb_handle_exception is invoked.

Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: Stuart Menefy <stuart.menefy@st.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/kgdb.c

index 305aad7..d29de78 100644 (file)
@@ -195,8 +195,6 @@ void gdb_regs_to_pt_regs(unsigned long *gdb_regs, struct pt_regs *regs)
        regs->gbr = gdb_regs[GDB_GBR];
        regs->mach = gdb_regs[GDB_MACH];
        regs->macl = gdb_regs[GDB_MACL];
-
-       __asm__ __volatile__ ("ldc %0, vbr" : : "r" (gdb_regs[GDB_VBR]));
 }
 
 void sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *p)