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, threadid_t tid) |
static struct target * | hwthread_find_thread (struct target *target, threadid_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) |
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 32 of file hwthread.c.
|
static |
Definition at line 405 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 369 of file hwthread.c.
|
static |
Definition at line 68 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, and thread_detail::threadid.
Referenced by hwthread_update_threads().
|
static |
Definition at line 218 of file hwthread.c.
References foreach_smp_target, NULL, target::smp, target::smp_targets, target, and target_list::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 348 of file hwthread.c.
References NULL.
|
static |
Definition at line 292 of file hwthread.c.
References ERROR_FAIL, ERROR_OK, reg_arch_type::get, hwthread_find_thread(), LOG_ERROR, LOG_TARGET_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 233 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 417 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 330 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 213 of file hwthread.c.
References hwthread_update_threads(), and target::rtos.
|
static |
Definition at line 356 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 375 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 85 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 432 of file hwthread.c.
References buffer, rtos::current_thread, ERROR_FAIL, hwthread_find_thread(), size, rtos::target, and target_write_buffer().
|
inlinestatic |
Definition at line 34 of file hwthread.c.
Referenced by hwthread_thread_packet(), and hwthread_update_threads().
const struct rtos_type hwthread_rtos |
Definition at line 34 of file hwthread.c.