symbol_table_elem_t * symbols;
struct target *target;
-
+ /* add a context variable instead of global variable */
+ int64_t current_threadid;
threadid_t current_thread;
struct thread_detail* thread_details;
int thread_count;
-
+ int (*gdb_thread_packet)(struct connection *connection, char *packet, int packet_size);
void * rtos_specific_params;
+
};
char * name;
int (*detect_rtos) ( struct target* target );
int (*create) ( struct target* target );
+ int (*smp_init)(struct target *target);
int (*update_threads) ( struct rtos* rtos );
int (*get_thread_reg_list) ( struct rtos *rtos, int64_t thread_id, char ** hex_reg_list );
int (*get_symbol_list_to_lookup) (symbol_table_elem_t * symbol_list[] );
+ int (*clean)(struct target *target);
+ char * (*ps_command)(struct target *target);
};
unsigned char stack_registers_size;
signed char stack_growth_direction;
unsigned char num_output_registers;
+ unsigned char stack_alignment;
const struct stack_register_offset* register_offsets;
};
int rtos_generic_stack_read( struct target * target, const struct rtos_register_stacking* stacking, int64_t stack_ptr, char ** hex_reg_list );
int rtos_try_next( struct target * target );
int gdb_thread_packet(struct connection *connection, char *packet, int packet_size);
-int rtos_get_gdb_reg_list(struct connection *connection, struct reg **reg_list[], int *reg_list_size);
+int rtos_get_gdb_reg_list(struct connection *connection);
int rtos_update_threads( struct target *target );
+int rtos_smp_init(struct target *target);
#endif // RTOS_H