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:
@@ -10,7 +10,6 @@
|
||||
|
||||
#include "server/server.h"
|
||||
#include "target/target.h"
|
||||
#include <helper/jim-nvp.h>
|
||||
|
||||
typedef int64_t threadid_t;
|
||||
typedef int64_t symbol_address_t;
|
||||
@@ -113,7 +112,8 @@ struct rtos_register_stacking {
|
||||
|
||||
#define GDB_THREAD_PACKET_NOT_CONSUMED (-40)
|
||||
|
||||
int rtos_create(struct jim_getopt_info *goi, struct target *target);
|
||||
int rtos_create(struct command_invocation *cmd, struct target *target,
|
||||
const char *rtos_name);
|
||||
void rtos_destroy(struct target *target);
|
||||
int rtos_set_reg(struct connection *connection, int reg_num,
|
||||
uint8_t *reg_value);
|
||||
|
||||
Reference in New Issue
Block a user