forked from auracaster/openocd
85ba2dc4c6
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>
39 lines
902 B
Makefile
39 lines
902 B
Makefile
noinst_LTLIBRARIES += %D%/librtos.la
|
|
%C%_librtos_la_SOURCES = \
|
|
%D%/rtos.c \
|
|
%D%/rtos_standard_stackings.c \
|
|
%D%/rtos_ecos_stackings.c \
|
|
%D%/rtos_chibios_stackings.c \
|
|
%D%/rtos_embkernel_stackings.c \
|
|
%D%/rtos_mqx_stackings.c \
|
|
%D%/rtos_ucos_iii_stackings.c \
|
|
%D%/FreeRTOS.c \
|
|
%D%/ThreadX.c \
|
|
%D%/eCos.c \
|
|
%D%/linux.c \
|
|
%D%/ChibiOS.c \
|
|
%D%/chromium-ec.c \
|
|
%D%/embKernel.c \
|
|
%D%/mqx.c \
|
|
%D%/riscv_debug.c \
|
|
%D%/uCOS-III.c \
|
|
%D%/nuttx.c \
|
|
%D%/hwthread.c \
|
|
%D%/rtos.h \
|
|
%D%/rtos_standard_stackings.h \
|
|
%D%/rtos_ecos_stackings.h \
|
|
%D%/linux_header.h \
|
|
%D%/rtos_chibios_stackings.h \
|
|
%D%/rtos_embkernel_stackings.h \
|
|
%D%/rtos_mqx_stackings.h \
|
|
%D%/rtos_ucos_iii_stackings.h \
|
|
%D%/nuttx_header.h \
|
|
%D%/riscv_debug.h
|
|
|
|
%C%_librtos_la_CFLAGS = $(AM_CFLAGS)
|
|
|
|
if IS_MINGW
|
|
# FD_* macros are sloppy with their signs on MinGW32 platform
|
|
%C%_librtos_la_CFLAGS += -Wno-sign-compare
|
|
endif
|