8 #ifndef OPENOCD_RTOS_RTOS_H
9 #define OPENOCD_RTOS_RTOS_H
67 struct rtos_reg **reg_list,
int *num_regs);
101 const uint8_t *stack_data,
111 uint8_t *stack_data);
114 #define GDB_THREAD_PACKET_NOT_CONSUMED (-40)
const struct rtos_type embkernel_rtos
int rtos_generic_stack_read(struct target *target, const struct rtos_register_stacking *stacking, int64_t stack_ptr, struct rtos_reg **reg_list, int *num_regs)
int rtos_thread_packet(struct connection *connection, const char *packet, int packet_size)
int gdb_thread_packet(struct connection *connection, char const *packet, int packet_size)
const struct rtos_type chromium_ec_rtos
const struct rtos_type zephyr_rtos
const struct rtos_type ecos_rtos
const struct rtos_type threadx_rtos
const struct rtos_type hwthread_rtos
const struct rtos_type freertos_rtos
int rtos_set_reg(struct connection *connection, int reg_num, uint8_t *reg_value)
const struct rtos_type nuttx_rtos
int rtos_get_gdb_reg_list(struct connection *connection)
Return a list of general registers.
void rtos_destroy(struct target *target)
const struct rtos_type linux_rtos
int rtos_write_buffer(struct target *target, target_addr_t address, uint32_t size, const uint8_t *buffer)
const struct rtos_type chibios_rtos
int rtos_update_threads(struct target *target)
int rtos_read_buffer(struct target *target, target_addr_t address, uint32_t size, uint8_t *buffer)
int rtos_smp_init(struct target *target)
const struct rtos_type ucos_iii_rtos
const struct rtos_type riot_rtos
int rtos_create(struct jim_getopt_info *goi, struct target *target)
const struct rtos_type rtkernel_rtos
int rtos_qsymbol(struct connection *connection, char const *packet, int packet_size)
void rtos_free_threadlist(struct rtos *rtos)
int rtos_get_gdb_reg(struct connection *connection, int reg_num)
Look through all registers to find this register.
const struct rtos_type mqx_rtos
size_t size
Size of the control block search area.
A TCL -ish GetOpt like code.
const struct stack_register_offset * register_offsets
unsigned char num_output_registers
target_addr_t(* calculate_process_stack)(struct target *target, const uint8_t *stack_data, const struct rtos_register_stacking *stacking, target_addr_t stack_ptr)
unsigned char stack_registers_size
int(* read_stack)(struct target *target, int64_t stack_ptr, const struct rtos_register_stacking *stacking, uint8_t *stack_data)
signed char stack_growth_direction
int(* create)(struct target *target)
int(* smp_init)(struct target *target)
int(* update_threads)(struct rtos *rtos)
int(* get_thread_reg)(struct rtos *rtos, int64_t thread_id, uint32_t reg_num, struct rtos_reg *reg)
int(* get_symbol_list_to_lookup)(struct symbol_table_elem *symbol_list[])
int(* write_buffer)(struct rtos *rtos, target_addr_t address, uint32_t size, const uint8_t *buffer)
int(* clean)(struct target *target)
int(* read_buffer)(struct rtos *rtos, target_addr_t address, uint32_t size, uint8_t *buffer)
bool(* detect_rtos)(struct target *target)
int(* get_thread_reg_list)(struct rtos *rtos, int64_t thread_id, struct rtos_reg **reg_list, int *num_regs)
Return a list of general registers, with their values filled out.
int(* set_reg)(struct rtos *rtos, uint32_t reg_num, uint8_t *reg_value)
const struct rtos_type * type
int(* gdb_thread_packet)(struct connection *connection, char const *packet, int packet_size)
struct thread_detail * thread_details
struct symbol_table_elem * symbols
void * rtos_specific_params
int(* gdb_target_for_threadid)(struct connection *connection, int64_t thread_id, struct target **p_target)
threadid_t current_thread
unsigned short width_bits
Table should be terminated by an element with NULL in symbol_name.