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,
107 #define GDB_THREAD_PACKET_NOT_CONSUMED (-40)
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 gdb_thread_packet(struct connection *connection, char const *packet, int packet_size)
int rtos_set_reg(struct connection *connection, int reg_num, uint8_t *reg_value)
int rtos_get_gdb_reg_list(struct connection *connection)
Return a list of general registers.
void rtos_destroy(struct target *target)
int rtos_write_buffer(struct target *target, target_addr_t address, uint32_t size, const uint8_t *buffer)
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)
int rtos_create(struct jim_getopt_info *goi, struct target *target)
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.
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
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.