openocd/src
Paul Fertser d1ae39efc0 etm: prevent segfault when reading bogus information
When I do not have the JTAG adapter connected to the target, I often
end up always reading 1s from the chain. If the OpenOCD is configured
to connect to an ETM-equipped target (i.MX25 ARM9 in my case), this
results in writing garbage values in the etm reg_cache as the ETM bit
fields for the comparators, counters and outputs are wider than the
amount of entries in the corresponding arrays. This later results in a
segfault in the first etm_reg_lookup() call.

Change-Id: Ied81fdbf3a53a3dd749e2e5e97adf86c012df575
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/1505
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2013-07-17 14:34:07 +00:00
..
flash flash/stm32*: Sync all device/rev IDs with reference manuals 2013-07-15 09:55:54 +00:00
helper Add support for 64 bit parameter to irscan 2013-07-01 08:37:14 +00:00
jtag OpenULINK firmware: update firmware hex image 2013-07-17 14:31:19 +00:00
pld update files to correct FSF address 2013-06-05 19:52:42 +00:00
rtos keep gdb aware of threads if RTOS is set but no threads are created 2013-07-01 08:38:32 +00:00
server update files to correct FSF address 2013-06-05 19:52:42 +00:00
svf update files to correct FSF address 2013-06-05 19:52:42 +00:00
target etm: prevent segfault when reading bogus information 2013-07-17 14:34:07 +00:00
transport update files to correct FSF address 2013-06-05 19:52:42 +00:00
xsvf update files to correct FSF address 2013-06-05 19:52:42 +00:00
hello.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
hello.h update files to correct FSF address 2013-06-05 19:52:42 +00:00
main.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
Makefile.am automake: Don't install libopenocd 2013-07-15 10:06:18 +00:00
openocd.c update files to correct FSF address 2013-06-05 19:52:42 +00:00
openocd.h update files to correct FSF address 2013-06-05 19:52:42 +00:00