kgdbts: unify/generalize gdb breakpoint adjustment
The Blackfin arch, like the x86 arch, needs to adjust the PC manually after a breakpoint is hit as normally this is handled by the remote gdb. However, rather than starting another arch ifdef mess, create a common GDB_ADJUSTS_BREAK_OFFSET define for any arch to opt-in via their kgdb.h. Signed-off-by:Mike Frysinger <vapier@gentoo.org> Cc: Oleg Nesterov <oleg@redhat.com> Cc: Jason Wessel <jason.wessel@windriver.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Ingo Molnar <mingo@redhat.com> Cc: "H. Peter Anvin" <hpa@zytor.com> Acked-by:
Paul Mundt <lethal@linux-sh.org> Acked-by:
Dongdong Deng <dongdong.deng@windriver.com> Cc: Sergei Shtylyov <sshtylyov@mvista.com> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Linus Torvalds <torvalds@linux-foundation.org>
Showing
- arch/blackfin/include/asm/kgdb.h 1 addition, 0 deletionsarch/blackfin/include/asm/kgdb.h
- arch/sh/include/asm/kgdb.h 1 addition, 0 deletionsarch/sh/include/asm/kgdb.h
- arch/x86/include/asm/kgdb.h 1 addition, 0 deletionsarch/x86/include/asm/kgdb.h
- drivers/misc/kgdbts.c 11 additions, 18 deletionsdrivers/misc/kgdbts.c
Please register or sign in to comment