OpenOCD
|
Go to the source code of this file.
Data Structures | |
struct | hwthread_params |
Macros | |
#define | HW_THREAD_NAME_STR_SIZE (32) |
Functions | |
static int | hwthread_create (struct target *target) |
static bool | hwthread_detect_rtos (struct target *target) |
static int | hwthread_fill_thread (struct rtos *rtos, struct target *curr, int thread_num) |
static struct target * | hwthread_find_thread (struct target *target, int64_t thread_id) |
static int | hwthread_get_symbol_list_to_lookup (struct symbol_table_elem *symbol_list[]) |
static int | hwthread_get_thread_reg (struct rtos *rtos, int64_t thread_id, uint32_t reg_num, struct rtos_reg *rtos_reg) |
static int | hwthread_get_thread_reg_list (struct rtos *rtos, int64_t thread_id, struct rtos_reg **reg_list, int *num_regs) |
static int | hwthread_read_buffer (struct rtos *rtos, target_addr_t address, uint32_t size, uint8_t *buffer) |
static int | hwthread_set_reg (struct rtos *rtos, uint32_t reg_num, uint8_t *reg_value) |
static int | hwthread_smp_init (struct target *target) |
static int | hwthread_target_for_threadid (struct connection *connection, int64_t thread_id, struct target **p_target) |
static int | hwthread_thread_packet (struct connection *connection, const char *packet, int packet_size) |
static int | hwthread_update_threads (struct rtos *rtos) |
static int | hwthread_write_buffer (struct rtos *rtos, target_addr_t address, uint32_t size, const uint8_t *buffer) |
int | rtos_thread_packet (struct connection *connection, const char *packet, int packet_size) |
static threadid_t | threadid_from_target (const struct target *target) |
Variables | |
const struct rtos_type | hwthread_rtos |
#define HW_THREAD_NAME_STR_SIZE (32) |
Definition at line 33 of file hwthread.c.
|
static |
Definition at line 401 of file hwthread.c.
References rtos::current_thread, rtos::gdb_target_for_threadid, rtos::gdb_thread_packet, hwthread_target_for_threadid(), hwthread_thread_packet(), LOG_INFO, NULL, target::rtos, rtos::rtos_specific_params, and rtos::thread_details.
|
static |
Definition at line 365 of file hwthread.c.
Definition at line 60 of file hwthread.c.
References debug_reason_name(), ERROR_OK, thread_detail::exists, thread_detail::extra_info_str, HW_THREAD_NAME_STR_SIZE, target_name(), rtos::thread_details, thread_detail::thread_name_str, thread_detail::threadid, and threadid_from_target().
Referenced by hwthread_update_threads().
Definition at line 212 of file hwthread.c.
References foreach_smp_target, NULL, target::smp, target::smp_targets, target, target_list::target, and threadid_from_target().
Referenced by hwthread_get_thread_reg(), hwthread_get_thread_reg_list(), hwthread_read_buffer(), hwthread_set_reg(), hwthread_target_for_threadid(), and hwthread_write_buffer().
|
static |
Definition at line 344 of file hwthread.c.
References NULL.
|
static |
Definition at line 288 of file hwthread.c.
References target::coreid, ERROR_FAIL, ERROR_OK, reg_arch_type::get, hwthread_find_thread(), LOG_ERROR, rtos_reg::number, reg::number, target::reg_cache, register_get_by_number(), rtos_reg::size, reg::size, rtos::target, target_was_examined(), reg::type, rtos_reg::value, and reg::value.
|
static |
Definition at line 229 of file hwthread.c.
References DIV_ROUND_UP, ERROR_FAIL, ERROR_OK, reg::exist, reg_arch_type::get, reg::hidden, hwthread_find_thread(), LOG_ERROR, name, reg::number, REG_CLASS_GENERAL, size, reg::size, rtos::target, target_get_gdb_reg_list(), target_was_examined(), reg::type, reg::valid, and reg::value.
|
static |
Definition at line 413 of file hwthread.c.
References buffer, rtos::current_thread, ERROR_FAIL, hwthread_find_thread(), size, rtos::target, and target_read_buffer().
|
static |
Definition at line 326 of file hwthread.c.
References rtos::current_thread, ERROR_FAIL, hwthread_find_thread(), target::reg_cache, register_get_by_number(), reg_arch_type::set, rtos::target, and reg::type.
|
static |
Definition at line 207 of file hwthread.c.
References hwthread_update_threads(), and target::rtos.
|
static |
Definition at line 352 of file hwthread.c.
References ERROR_FAIL, ERROR_OK, get_target_from_connection(), and hwthread_find_thread().
Referenced by hwthread_create(), and hwthread_thread_packet().
|
static |
Definition at line 371 of file hwthread.c.
References rtos::current_thread, rtos::current_threadid, ERROR_FAIL, ERROR_OK, gdb_put_packet(), get_target_from_connection(), hwthread_target_for_threadid(), LOG_ERROR, NULL, target::rtos, rtos_thread_packet(), and threadid_from_target().
Referenced by hwthread_create().
|
static |
Definition at line 78 of file hwthread.c.
References rtos::current_thread, rtos::current_threadid, DBG_REASON_BREAKPOINT, DBG_REASON_DBGRQ, DBG_REASON_SINGLESTEP, DBG_REASON_UNDEFINED, DBG_REASON_WATCHPOINT, target::debug_reason, foreach_smp_target, hwthread_fill_thread(), LOG_DEBUG, LOG_WARNING, rtos_free_threadlist(), target::smp, target::smp_targets, rtos::target, target, target_list::target, target_was_examined(), rtos::thread_count, rtos::thread_details, and threadid_from_target().
Referenced by hwthread_smp_init().
|
static |
Definition at line 428 of file hwthread.c.
References buffer, rtos::current_thread, ERROR_FAIL, hwthread_find_thread(), size, rtos::target, and target_write_buffer().
int rtos_thread_packet | ( | struct connection * | connection, |
const char * | packet, | ||
int | packet_size | ||
) |
Definition at line 346 of file rtos.c.
References buffer, rtos_type::create, rtos::current_thread, rtos::current_threadid, ERROR_OK, thread_detail::exists, thread_detail::extra_info_str, gdb_put_packet(), GDB_THREAD_PACKET_NOT_CONSUMED, get_target_from_connection(), hexify(), LOG_DEBUG, target::rtos, target::rtos_auto_detect, rtos_qsymbol(), size, rtos::thread_count, rtos::thread_details, thread_detail::thread_name_str, thread_detail::threadid, rtos::type, and rtos_type::update_threads.
Referenced by hwthread_thread_packet().
|
inlinestatic |
Definition at line 37 of file hwthread.c.
Referenced by hwthread_fill_thread(), hwthread_find_thread(), hwthread_thread_packet(), and hwthread_update_threads().
const struct rtos_type hwthread_rtos |
Definition at line 37 of file hwthread.c.