riscv-openocd/src
Matthias Welwarsky b551c62a7f cortex_a: fix handling of Thumb-2 32bit breakpoints
When debugging Thumb-2 code, Gdb will at times send a
breakpoint packet 'Z0,<addr>,3', the number 3 denoting that
the instruction to break on is 32 bits long. Handle this by
replacing it with two consecutive 16bit Thumb BKPTs and make
sure to save and restore the full, original 32bit
instruction.

Note that this fix is only applicable if you debug a bare-metal program
(like the linux kernel) with the 'wrong' gdb, e.g. use an 
"arm-linux" gdb instead of an "arm-eabi" gdb. But since most people
may not know about the subtle differences between gdb configurations
regarding thumb2 breakpoints it's still valid.

Change-Id: Ib93025faf35b11f0dba747a8c1fc36fd09a4c0f8
Signed-off-by: Matthias Welwarsky <matthias.welwarsky@sysgo.com>
Reviewed-on: http://openocd.zylin.com/4241
Reviewed-by: Matthias Welwarsky <matthias@welwarsky.de>
Tested-by: jenkins
2018-02-21 08:20:28 +00:00
..
flash efm32: Refactor EFM32 chip family data, add more chips 2018-02-14 08:27:57 +00:00
helper Handle improperly build image files gracefully 2018-02-14 08:27:01 +00:00
jtag jtag: drivers: stlink: ignore write verify error 2018-02-03 15:33:56 +00:00
pld Convert to non-recursive make 2016-12-08 16:23:10 +00:00
rtos rtos: Use 'bool' as return type for detect_rtos() 2017-12-06 21:01:12 +00:00
server server: add safeguards against printing bogus port number 2018-01-25 07:22:16 +00:00
svf Fix GCC7 warnings about switch-case fallthroughs 2017-10-23 10:54:16 +01:00
target cortex_a: fix handling of Thumb-2 32bit breakpoints 2018-02-21 08:20:28 +00:00
transport Convert to non-recursive make 2016-12-08 16:23:10 +00:00
xsvf Convert to non-recursive make 2016-12-08 16:23:10 +00:00
Makefile.am Convert to non-recursive make 2016-12-08 16:23:10 +00:00
hello.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
hello.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
main.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
openocd.c Fix Jim interpreter memory leak 2018-01-17 07:52:35 +00:00
openocd.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00