forked from auracaster/openocd
rtos: rework rtos_create()
To simplify the caller of rtos_create(), convert the code from jimtcl oriented to OpenOCD commands. While there, fix inconsistencies in almost every rtos create() method and reset rtos_auto_detect to better cooperate on run-time rtos configuration. Change-Id: I59c443aaed77a48174facdfc86db75d6b28c8480 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/8830 Tested-by: jenkins
This commit is contained in:
@@ -412,7 +412,7 @@ static int hwthread_create(struct target *target)
|
||||
target->rtos->thread_details = NULL;
|
||||
target->rtos->gdb_target_for_threadid = hwthread_target_for_threadid;
|
||||
target->rtos->gdb_thread_packet = hwthread_thread_packet;
|
||||
return 0;
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
static int hwthread_read_buffer(struct rtos *rtos, target_addr_t address,
|
||||
|
||||
Reference in New Issue
Block a user