rtos/hwthread: add hardware-thread pseudo rtos
authorMatthias Welwarsky <matthias.welwarsky@sysgo.com>
Fri, 17 Feb 2017 15:16:51 +0000 (16:16 +0100)
committerMatthias Welwarsky <matthias@welwarsky.de>
Fri, 8 Mar 2019 12:54:47 +0000 (12:54 +0000)
commit85ba2dc4c6ab4c91f4461c2853660cc2cb9e2623
treecc1bc366e7495346d4710a6a404f1eaa00653326
parent56568b7996323da8e9254cadcdd555323a76466f
rtos/hwthread: add hardware-thread pseudo rtos

This patch adds "hwthread", a pseudo rtos that represents cpu cores
in an SMP system as threads to gdb. This allows to debug SMP
system kernels in a more sensible manner and removes the current
atrocities of switching gdb manually between CPU cores to update
the context.

Change-Id: Ib781c6c34097689d21d9e02011e4d74a4a742379
Signed-off-by: Matthias Welwarsky <matthias.welwarsky@sysgo.com>
Reviewed-on: http://openocd.zylin.com/3999
Tested-by: jenkins
Reviewed-by: Tim Newsome <tim@sifive.com>
Reviewed-by: Matthias Welwarsky <matthias@welwarsky.de>
Reviewed-by: Graham Sanderson <graham.sanderson@gmail.com>
doc/openocd.texi
src/rtos/Makefile.am
src/rtos/hwthread.c [new file with mode: 0644]
src/rtos/rtos.c