Go to the source code of this file.
◆ EXTRAINFO_SIZE
#define EXTRAINFO_SIZE 256 |
◆ NAME_SIZE
◆ PTR_WIDTH
◆ TCBINFO_TARGET_SIZE
#define TCBINFO_TARGET_SIZE 22 |
◆ nuttx_create()
static int nuttx_create |
( |
struct target * |
target | ) |
|
|
static |
◆ nuttx_detect_rtos()
static bool nuttx_detect_rtos |
( |
struct target * |
target | ) |
|
|
static |
◆ nuttx_get_symbol_list_to_lookup()
static int nuttx_get_symbol_list_to_lookup |
( |
struct symbol_table_elem * |
symbol_list[] | ) |
|
|
static |
◆ nuttx_get_thread_reg_list()
static int nuttx_get_thread_reg_list |
( |
struct rtos * |
rtos, |
|
|
int64_t |
thread_id, |
|
|
struct rtos_reg ** |
reg_list, |
|
|
int * |
num_regs |
|
) |
| |
|
static |
◆ nuttx_getreg_current_thread()
static int nuttx_getreg_current_thread |
( |
struct rtos * |
rtos, |
|
|
struct rtos_reg ** |
reg_list, |
|
|
int * |
num_regs |
|
) |
| |
|
static |
◆ nuttx_getregs_fromstack()
static int nuttx_getregs_fromstack |
( |
struct rtos * |
rtos, |
|
|
int64_t |
thread_id, |
|
|
struct rtos_reg ** |
reg_list, |
|
|
int * |
num_regs |
|
) |
| |
|
static |
Definition at line 337 of file nuttx.c.
References symbol_table_elem::address, ERROR_FAIL, ERROR_OK, LOG_ERROR, NX_SYM_TCB_INFO, priv, rtos_generic_stack_read(), rtos::rtos_specific_params, rtos::symbols, rtos::target, target_read_u16(), and target_read_u32().
Referenced by nuttx_get_thread_reg_list().
◆ nuttx_smp_init()
static int nuttx_smp_init |
( |
struct target * |
target | ) |
|
|
static |
◆ nuttx_update_threads()
static int nuttx_update_threads |
( |
struct rtos * |
rtos | ) |
|
|
static |
Definition at line 157 of file nuttx.c.
References symbol_table_elem::address, ARRAY_SIZE, tcbinfo::basic_num, rtos::current_thread, ERROR_FAIL, ERROR_OK, thread_detail::exists, thread_detail::extra_info_str, EXTRAINFO_SIZE, LOG_DEBUG, LOG_ERROR, tcbinfo::name_off, NAME_SIZE, NULL, NX_SYM_NPIDHASH, NX_SYM_PIDHASH, NX_SYM_READYTORUN, NX_SYM_TCB_INFO, tcbinfo::pid_off, tcbinfo::pri_off, PTR_WIDTH, tcbinfo::regs_off, rtos_free_threadlist(), state, tcbinfo::state_off, rtos::symbols, rtos::target, target_buffer_get_addr(), target_buffer_get_u16(), target_buffer_get_u32(), target_read_buffer(), target_read_u16(), target_read_u32(), target_read_u8(), task_state_str, TCBINFO_TARGET_SIZE, rtos::thread_count, rtos::thread_details, thread_detail::thread_name_str, thread_detail::threadid, tcbinfo::total_num, and tcbinfo::xcpreg_off.
◆ target_buffer_get_addr()
◆ nuttx_params_list
Initial value:= {
{
.target_name = "cortex_m",
},
{
.target_name = "hla_target",
},
{
.target_name = "esp32",
},
{
.target_name = "esp32s2",
},
{
.target_name = "esp32s3",
},
{
.target_name = "esp32c3",
},
}
const struct rtos_register_stacking nuttx_esp32s2_stacking
const struct rtos_register_stacking nuttx_riscv_stacking
const struct rtos_register_stacking nuttx_esp32s3_stacking
const struct rtos_register_stacking nuttx_esp32_stacking
const struct rtos_register_stacking nuttx_stacking_cortex_m
Definition at line 67 of file nuttx.c.
Referenced by nuttx_create().
◆ nuttx_rtos
Initial value:= {
.name = "nuttx",
}
static int nuttx_get_symbol_list_to_lookup(struct symbol_table_elem *symbol_list[])
static bool nuttx_detect_rtos(struct target *target)
static int nuttx_create(struct target *target)
static int nuttx_update_threads(struct rtos *rtos)
static int nuttx_smp_init(struct target *target)
static int nuttx_get_thread_reg_list(struct rtos *rtos, int64_t thread_id, struct rtos_reg **reg_list, int *num_regs)
Definition at line 380 of file nuttx.c.
◆ nuttx_symbol_list
const struct symbols nuttx_symbol_list[] |
|
static |
Initial value:= {
{ "g_readytorun", false },
{ "g_pidhash", false },
{ "g_npidhash", false },
{ "g_tcbinfo", false },
{ "g_reg_offs", false},
}
Definition at line 1 of file nuttx.c.
Referenced by nuttx_get_symbol_list_to_lookup().
◆ task_state_str
Initial value:= {
"INVALID",
"PENDING",
"READYTORUN",
"RUNNING",
"INACTIVE",
"WAIT_SEM",
"WAIT_SIG",
"WAIT_MQNOTEMPTY",
"WAIT_MQNOTFULL",
"WAIT_PAGEFILL",
"STOPPED",
}
Definition at line 67 of file nuttx.c.
Referenced by nuttx_update_threads().