openocd/src/rtos
Antonio Borneo 433e37f02f rtos/hwthread: fix register list for armv7a
The targets armv7a in file cortex_a.c inherit the register list
from file armv4_5.c thus, depending on the core status, some
register get marked as not existing.
For HW threads other than current target, the registers in the
list are not checked for existence and are all forwarded to GDB
that in turns complains for too many data:
	  Remote 'g' packet reply is too long (expected 68 bytes, got 104 bytes)

Check all the attributes of the registers and pass to GDB only the
valid registers.

To test it, use a SMP cortex-a target (2 cores are enough) and add
	-rtos hwthread
to all the cores. Connect GDB to OpenOCD and issue the GDB command
	info threads

Change-Id: Ie66119fe83a3c8d53e9d18dda39e60fd97769669
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/5981
Tested-by: jenkins
2020-12-26 15:47:55 +00:00
..
FreeRTOS.c FreeRTOS: strip duplicate line returns 2020-10-03 11:22:52 +01:00
Makefile.am rtos: add support for RIOT 2020-07-26 20:11:52 +01:00
ThreadX.c rtos: declare local symbols as static 2020-11-04 17:39:11 +00:00
chibios.c openocd: avoid checking for non NULL pointer to free it 2020-09-05 17:11:50 +01:00
chromium-ec.c rtos: fix minor typos 2020-07-26 20:13:41 +01:00
eCos.c rtos: support gdb_get_register_packet 2018-10-16 11:58:03 +01:00
embKernel.c coding style: src: remove empty lines at end of text files 2020-05-02 15:40:21 +01:00
hwthread.c rtos/hwthread: fix register list for armv7a 2020-12-26 15:47:55 +00:00
linux.c rtos: declare local symbols as static 2020-11-04 17:39:11 +00:00
linux_header.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
mqx.c coding style: fix space around pointer's asterisk 2020-02-24 10:30:36 +00:00
nuttx.c rtos: declare local symbols as static 2020-11-04 17:39:11 +00:00
nuttx_header.h rtos: add support for NuttX 2018-08-01 14:33:50 +01:00
riot.c rtos: add support for RIOT 2020-07-26 20:11:52 +01:00
rtos.c rtos: make private the API rtos_try_next() 2020-11-04 17:39:42 +00:00
rtos.h rtos: make private the API rtos_try_next() 2020-11-04 17:39:42 +00:00
rtos_chibios_stackings.c rtos: support gdb_get_register_packet 2018-10-16 11:58:03 +01:00
rtos_chibios_stackings.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
rtos_ecos_stackings.c rtos: support gdb_get_register_packet 2018-10-16 11:58:03 +01:00
rtos_ecos_stackings.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
rtos_embkernel_stackings.c coding style: src: remove empty lines at end of text files 2020-05-02 15:40:21 +01:00
rtos_embkernel_stackings.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
rtos_mqx_stackings.c coding style: fix space separation 2020-07-08 22:08:08 +01:00
rtos_mqx_stackings.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
rtos_riot_stackings.c rtos: add support for RIOT 2020-07-26 20:11:52 +01:00
rtos_riot_stackings.h rtos: add support for RIOT 2020-07-26 20:11:52 +01:00
rtos_standard_stackings.c rtos: support gdb_get_register_packet 2018-10-16 11:58:03 +01:00
rtos_standard_stackings.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
rtos_ucos_iii_stackings.c esirisc: support eSi-RISC targets 2018-10-16 11:58:24 +01:00
rtos_ucos_iii_stackings.h esirisc: support eSi-RISC targets 2018-10-16 11:58:24 +01:00
uCOS-III.c rtos: check symbol list when updating uCOS-III 2018-10-16 11:59:11 +01:00