OpenOCD
|
Go to the source code of this file.
Functions | |
static int | add_debug_msg_receiver (struct command_context *cmd_ctx, struct target *target) |
COMMAND_HANDLER (handle_target_request_debugmsgs_command) | |
int | delete_debug_msg_receiver (struct command_context *cmd_ctx, struct target *target) |
static struct debug_msg_receiver * | find_debug_msg_receiver (struct command_context *cmd_ctx, struct target *target) |
static int | target_asciimsg (struct target *target, uint32_t length) |
static int | target_charmsg (struct target *target, uint8_t msg) |
bool | target_got_message (void) |
Read and clear the flag as to whether we got a message. More... | |
static int | target_hexmsg (struct target *target, int size, uint32_t length) |
int | target_request (struct target *target, uint32_t request) |
int | target_request_register_commands (struct command_context *cmd_ctx) |
Variables | |
static int | charmsg_mode |
static bool | got_message |
static const struct command_registration | target_req_command_handlers [] |
static const struct command_registration | target_req_exec_command_handlers [] |
|
static |
Definition at line 146 of file target_request.c.
References debug_msg_receiver::cmd_ctx, target::dbg_msg_enabled, target::dbgmsg, ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, and NULL.
Referenced by COMMAND_HANDLER().
COMMAND_HANDLER | ( | handle_target_request_debugmsgs_command | ) |
Definition at line 242 of file target_request.c.
References add_debug_msg_receiver(), charmsg_mode, CMD, CMD_ARGC, CMD_ARGV, CMD_CTX, command_print(), delete_debug_msg_receiver(), ERROR_COMMAND_SYNTAX_ERROR, ERROR_OK, find_debug_msg_receiver(), get_current_target(), LOG_ERROR, target_name(), target_type::target_request_data, and target::type.
int delete_debug_msg_receiver | ( | struct command_context * | cmd_ctx, |
struct target * | target | ||
) |
Definition at line 202 of file target_request.c.
References all_targets, debug_msg_receiver::cmd_ctx, target::dbg_msg_enabled, target::dbgmsg, ERROR_OK, target::next, and debug_msg_receiver::next.
Referenced by COMMAND_HANDLER(), gdb_connection_closed(), and telnet_connection_closed().
|
static |
Definition at line 172 of file target_request.c.
References all_targets, debug_msg_receiver::cmd_ctx, target::dbgmsg, target::next, and NULL.
Referenced by COMMAND_HANDLER().
|
static |
Definition at line 37 of file target_request.c.
References debug_msg_receiver::cmd_ctx, command_output_text(), target::dbgmsg, DIV_ROUND_UP, ERROR_OK, length, LOG_DEBUG, debug_msg_receiver::next, target_type::target_request_data, and target::type.
Referenced by target_request().
|
static |
Definition at line 55 of file target_request.c.
References ERROR_OK, and LOG_USER_N.
Referenced by target_request().
bool target_got_message | ( | void | ) |
Read and clear the flag as to whether we got a message.
This is used to implement the back-off algorithm on sleeping in idle mode.
Definition at line 28 of file target_request.c.
References got_message.
Referenced by server_loop().
|
static |
Definition at line 62 of file target_request.c.
References debug_msg_receiver::cmd_ctx, command_output_text(), target::dbgmsg, DIV_ROUND_UP, ERROR_OK, le_to_h_u16(), le_to_h_u32(), length, LOG_DEBUG, debug_msg_receiver::next, size, target_type::target_request_data, and target::type.
Referenced by target_request().
int target_request | ( | struct target * | target, |
uint32_t | request | ||
) |
Definition at line 108 of file target_request.c.
References charmsg_mode, ERROR_OK, got_message, LOG_ERROR, target_asciimsg(), target_charmsg(), target_hexmsg(), TARGET_REQ_DEBUGCHAR, TARGET_REQ_DEBUGMSG, TARGET_REQ_TRACEMSG, target_type::target_request_data, trace_point(), and target::type.
Referenced by aarch64_handle_target_request(), arm7_9_handle_target_request(), cortex_a_handle_target_request(), cortex_m_handle_target_request(), and hl_handle_target_request().
int target_request_register_commands | ( | struct command_context * | cmd_ctx | ) |
Definition at line 301 of file target_request.c.
References NULL, register_commands(), and target_req_command_handlers.
Referenced by target_register_user_commands().
|
static |
Definition at line 35 of file target_request.c.
Referenced by COMMAND_HANDLER(), and target_request().
|
static |
Definition at line 26 of file target_request.c.
Referenced by target_got_message(), and target_request().
|
static |
Definition at line 242 of file target_request.c.
Referenced by target_request_register_commands().
|
static |
Definition at line 242 of file target_request.c.