OpenOCD
|
Go to the source code of this file.
Data Structures | |
struct | debug_msg_receiver |
Typedefs | |
typedef enum target_req_cmd | target_req_cmd_t |
Enumerations | |
enum | target_req_cmd { TARGET_REQ_TRACEMSG , TARGET_REQ_DEBUGMSG , TARGET_REQ_DEBUGCHAR } |
Functions | |
int | delete_debug_msg_receiver (struct command_context *cmd_ctx, struct target *target) |
bool | target_got_message (void) |
Read and clear the flag as to whether we got a message. More... | |
int | target_request (struct target *target, uint32_t request) |
int | target_request_register_commands (struct command_context *cmd_ctx) |
typedef enum target_req_cmd target_req_cmd_t |
enum target_req_cmd |
Enumerator | |
---|---|
TARGET_REQ_TRACEMSG | |
TARGET_REQ_DEBUGMSG | |
TARGET_REQ_DEBUGCHAR |
Definition at line 20 of file target_request.h.
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().
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().
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().