xtensa: remove remaining non-functional KGDB bits
KGDB is not supported on xtensa, but there are bits of related code under arch/xtensa/kernel. Remove these bits. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
This commit is contained in:
parent
7de7ac785a
commit
816aa58895
|
@ -8,7 +8,6 @@ obj-y := align.o coprocessor.o entry.o irq.o pci-dma.o platform.o process.o \
|
||||||
ptrace.o setup.o signal.o stacktrace.o syscall.o time.o traps.o \
|
ptrace.o setup.o signal.o stacktrace.o syscall.o time.o traps.o \
|
||||||
vectors.o
|
vectors.o
|
||||||
|
|
||||||
obj-$(CONFIG_KGDB) += xtensa-stub.o
|
|
||||||
obj-$(CONFIG_PCI) += pci.o
|
obj-$(CONFIG_PCI) += pci.o
|
||||||
obj-$(CONFIG_MODULES) += xtensa_ksyms.o module.o
|
obj-$(CONFIG_MODULES) += xtensa_ksyms.o module.o
|
||||||
obj-$(CONFIG_FUNCTION_TRACER) += mcount.o
|
obj-$(CONFIG_FUNCTION_TRACER) += mcount.o
|
||||||
|
|
|
@ -40,11 +40,6 @@
|
||||||
#include <asm/processor.h>
|
#include <asm/processor.h>
|
||||||
#include <asm/traps.h>
|
#include <asm/traps.h>
|
||||||
|
|
||||||
#ifdef CONFIG_KGDB
|
|
||||||
extern int gdb_enter;
|
|
||||||
extern int return_from_debug_flag;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Machine specific interrupt handlers
|
* Machine specific interrupt handlers
|
||||||
*/
|
*/
|
||||||
|
@ -344,20 +339,6 @@ do_unaligned_user (struct pt_regs *regs)
|
||||||
void
|
void
|
||||||
do_debug(struct pt_regs *regs)
|
do_debug(struct pt_regs *regs)
|
||||||
{
|
{
|
||||||
#ifdef CONFIG_KGDB
|
|
||||||
/* If remote debugging is configured AND enabled, we give control to
|
|
||||||
* kgdb. Otherwise, we fall through, perhaps giving control to the
|
|
||||||
* native debugger.
|
|
||||||
*/
|
|
||||||
|
|
||||||
if (gdb_enter) {
|
|
||||||
extern void gdb_handle_exception(struct pt_regs *);
|
|
||||||
gdb_handle_exception(regs);
|
|
||||||
return_from_debug_flag = 1;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
__die_if_kernel("Breakpoint in kernel", regs, SIGKILL);
|
__die_if_kernel("Breakpoint in kernel", regs, SIGKILL);
|
||||||
|
|
||||||
/* If in user mode, send SIGTRAP signal to current process */
|
/* If in user mode, send SIGTRAP signal to current process */
|
||||||
|
|
Loading…
Reference in New Issue