openocd/src
Peter Horn d4cd6f0320 cortex_m3: add auto maskisr
This patch extends the cortex_m3 maskisr command by a new option 'auto'.
The 'auto' option handles interrupts during stepping in a way they are
processed but don't disturb the program flow during debugging.

Before one had to choose to either enable or disable interrupts. The former
steps into interrupt handlers when they trigger. This disturbs the flow during
debugging, making it hard to follow some piece of code when interrupts occur
often.

When interrupts are disabled, the flow isn't disturbed but code relying on
interrupt handlers to be processed will stop working. For example a delay
function counting the number of timer interrupts will never complete, RTOS
task switching will not occur and output I/O queues of interrupt driven
I/O will stall or overflow.

Using the 'maskisr' command also typically requires gdb hooks to be supplied
by the user to switch interrupts off during the step and to enable them again
afterward.

The new 'auto' option of the 'maskisr' command solves the above problems. When
set, the step command allows pending interrupt handlers to be executed before
the step, then the step is taken with interrupts disabled and finally interrupts
are enabled again. This way interrupt processing stays in the background without
disturbing the flow of debugging. No gdb hooks are required. The 'auto'
option is the default, since it's believed that handling interrupts in this
way is suitable for most users.

The principle used for interrupt handling could probably be used for other
targets too.

Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
2011-07-04 11:31:52 +01:00
..
flash dsp5680xx: disable for now, it generates warnings 2011-06-28 18:39:01 +02:00
helper ecos: add 64 bit types for sprintf/sscanf 2011-04-28 22:17:48 +02:00
jtag Include ULINK driver in src/jtag/drivers/Makefile.am 2011-06-26 17:43:51 +02:00
pld Fix "unused variable" warnings (errors) detected with GCC 4.7.0 - trivial fixes 2011-06-04 09:35:13 +02:00
rtos build: add missing files from dist release 2011-06-17 09:31:13 +01:00
server Fix "unused variable" warnings (errors) detected with GCC 4.7.0 - trivial fixes 2011-06-04 09:35:13 +02:00
svf Fix "unused variable" warnings (errors) detected with GCC 4.7.0 - trivial fixes 2011-06-04 09:35:13 +02:00
target cortex_m3: add auto maskisr 2011-07-04 11:31:52 +01:00
transport transport: move files over to transport folder 2011-06-13 15:51:04 +02:00
xsvf nit: do not add \n at end of LOG_ERROR 2011-01-05 21:46:12 +01:00
Makefile.am Include ULINK driver in src/Makefile.am 2011-06-26 17:43:51 +02:00
ecosboard.c jim tests: use installed 2010-10-29 15:10:51 +02:00
hello.c HELLO: review unused symbols 2010-04-10 17:23:06 +08:00
hello.h HELLO: review unused symbols 2010-04-10 17:23:06 +08:00
main.c logging: turn of stdout/stderr buffering 2010-09-20 20:45:48 +02:00
openocd.c OPENOCD: Renamed ambiguous main2() into openocd_thread() to show possible solution for thread support in future. 2011-06-16 17:27:12 +02:00
openocd.h remove #if logic for openocd_sleep_*lude 2009-12-02 13:26:26 -08:00