linux/arch/mn10300/kernel
David Howells 5141c46c61 MN10300: Emulate single stepping in KGDB on MN10300
Emulate single stepping in KGDB on MN10300 by way of temporary breakpoint
insertion.  These breakpoints are never actually seen by KGDB, and will overlay
KGDB's own breakpoints.

The breakpoints are removed by switch_to() and reinstalled on switching back so
that if preemption occurs, the preempting task doesn't hit them (though it will
still hit KGDB's regular breakpoints).  If KGDB is reentered for any reason,
then the single step breakpoint is completely erased and must be set again by
the debugger.

We take advantage of the fact that KGDB will effectively halt all other CPUs
whilst this CPU is single-stepping to avoid SMP problems.

If the single-stepping task is preempted and killed without KGDB being
reinvoked, then the breakpoint(s) will be cleared and KGDB will be jumped back
into.

Signed-off-by: David Howells <dhowells@redhat.com>
2011-03-18 16:54:32 +00:00
..
asm-offsets.c MN10300: Save frame pointer in thread_info struct rather than global var 2010-10-27 17:29:01 +01:00
cevt-mn10300.c MN10300: Select GENERIC_HARDIRQS_NO_DEPRECATED 2011-03-18 16:52:53 +00:00
csrc-mn10300.c MN10300: Use clocksource_register_hz() 2011-03-18 16:52:50 +00:00
entry.S MN10300: Create generic kernel debugger hooks 2011-03-18 16:54:30 +00:00
fpu-low.S MN10300: Make the FPU operate in non-lazy mode under SMP 2010-10-27 17:28:52 +01:00
fpu-nofpu-low.S MN10300: Make the FPU operate in non-lazy mode under SMP 2010-10-27 17:28:52 +01:00
fpu-nofpu.c MN10300: Make the FPU operate in non-lazy mode under SMP 2010-10-27 17:28:52 +01:00
fpu.c MN10300: Create generic kernel debugger hooks 2011-03-18 16:54:30 +00:00
gdb-io-serial-low.S MN10300: And Panasonic AM34 subarch and implement SMP 2010-10-27 17:28:55 +01:00
gdb-io-serial.c MN10300: Fix interrupt mask alteration function call name in gdbstub 2010-12-07 11:29:14 -08:00
gdb-io-ttysm-low.S Separate out the proc- and unit-specific header directories from the general 2009-04-10 14:33:48 +01:00
gdb-io-ttysm.c MN10300: Create generic kernel debugger hooks 2011-03-18 16:54:30 +00:00
gdb-low.S
gdb-stub.c MN10300: Create generic kernel debugger hooks 2011-03-18 16:54:30 +00:00
head.S MN10300: And Panasonic AM34 subarch and implement SMP 2010-10-27 17:28:55 +01:00
init_task.c Use new __init_task_data macro in arch init_task.c files. 2009-09-21 06:27:08 +02:00
internal.h MN10300: Create generic kernel debugger hooks 2011-03-18 16:54:30 +00:00
io.c
irq.c MN10300: Create generic kernel debugger hooks 2011-03-18 16:54:30 +00:00
kernel_execve.S
kgdb.c MN10300: Emulate single stepping in KGDB on MN10300 2011-03-18 16:54:32 +00:00
kprobes.c MN10300: Allow some cacheflushes to be avoided if cache snooping is available 2010-10-27 17:28:46 +01:00
kthread.S
Makefile MN10300: Use KGDB 2011-03-18 16:54:31 +00:00
mn10300-debug.c
mn10300-serial-low.S MN10300: And Panasonic AM34 subarch and implement SMP 2010-10-27 17:28:55 +01:00
mn10300-serial.c MN10300: Convert serial irq_chip to new functions 2011-03-18 16:52:52 +00:00
mn10300-serial.h
mn10300-watchdog-low.S MN10300: And Panasonic AM34 subarch and implement SMP 2010-10-27 17:28:55 +01:00
mn10300-watchdog.c MN10300: Save frame pointer in thread_info struct rather than global var 2010-10-27 17:29:01 +01:00
mn10300_ksyms.c mn10300: provide __ucmpdi2() for MN10300 2008-07-04 10:40:07 -07:00
module.c modules: Fix module_bug_list list corruption race 2010-10-05 11:29:27 -07:00
process.c MN10300: Generalise kernel debugger kernel halt, reboot or power off hook 2011-03-18 16:54:31 +00:00
profile-low.S
profile.c MN10300: And Panasonic AM34 subarch and implement SMP 2010-10-27 17:28:55 +01:00
ptrace.c ptrace: cleanup arch_ptrace() on mn10300 2010-10-27 18:03:11 -07:00
rtc.c set_rtc_mmss: show warning message only once 2011-01-13 08:03:07 -08:00
setup.c MN10300: Change "Matsushita" to "Panasonic". 2010-10-27 17:29:00 +01:00
sigframe.h
signal.c MN10300: Save frame pointer in thread_info struct rather than global var 2010-10-27 17:29:01 +01:00
smp-low.S MN10300: And Panasonic AM34 subarch and implement SMP 2010-10-27 17:28:55 +01:00
smp.c MN10300: Create generic kernel debugger hooks 2011-03-18 16:54:30 +00:00
switch_to.S MN10300: Emulate single stepping in KGDB on MN10300 2011-03-18 16:54:32 +00:00
sys_mn10300.c Add generic sys_ipc wrapper 2010-03-12 15:52:32 -08:00
time.c MN10300: Use clockevents_calc_mult_shift() 2011-03-18 16:52:50 +00:00
traps.c MN10300: Create generic kernel debugger hooks 2011-03-18 16:54:30 +00:00
vmlinux.lds.S percpu: align percpu readmostly subsection to cacheline 2011-01-25 14:26:50 +01:00