semihosting: add custom user command handler
authorErhan Kurubas <erhan.kurubas@espressif.com>
Tue, 5 Apr 2022 11:26:08 +0000 (14:26 +0300)
committerAntonio Borneo <borneo.antonio@gmail.com>
Fri, 24 Jun 2022 21:47:43 +0000 (21:47 +0000)
commit334a187e64121cb1f8bf6f07f5400e0e5ba8c0ff
tree3792c18bd6f673b270e4d2a8bf5609b01a47978a
parentaf9daf4433e006197942121a069a5e9d7ec28671
semihosting: add custom user command handler

Custom user syscalls can be handled with target events in the TCL scripts.
This patch gives another opportunity to handle custom syscalls in the c files.
Besides that some utility functions are also exported for the custom handlers.

Signed-off-by: Erhan Kurubas <erhan.kurubas@espressif.com>
Change-Id: Ice13d527540a0de0b2a8abda912ae3dcff3834b7
Reviewed-on: https://review.openocd.org/c/openocd/+/6889
Tested-by: jenkins
Reviewed-by: Ian Thompson <ianst@cadence.com>
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
src/target/semihosting_common.c
src/target/semihosting_common.h