47 #define DEPRECATED_MSG "DEPRECATED: This method is deprecated in favor of the hwthread pseudo RTOS"
49 char const *packet,
int packet_size)
57 if (strncmp(packet,
"jc", 2) == 0) {
59 char hex_buffer[len * 2 + 1];
74 char const *packet,
int packet_size)
85 if (strncmp(packet,
"Jc", 2) == 0) {
87 coreid = strtoul(packet, &separator, 16);
153 .handler = default_handle_smp_command,
155 .help =
"smp handling",
160 .handler = handle_smp_gdb_command,
162 .help =
"display/fix current core played to gdb",
size_t hexify(char *hex, const uint8_t *bin, size_t count, size_t length)
Convert binary data into a string of hexadecimal pairs.
Support functions to access arbitrary bits in a byte array.
static void buf_set_u32(uint8_t *_buffer, unsigned first, unsigned num, uint32_t value)
Sets num bits in _buffer, starting at the first bit, using the bits in value.
void command_print(struct command_invocation *cmd, const char *format,...)
#define CMD
Use this macro to access the command being handled, rather than accessing the variable directly.
#define CMD_ARGV
Use this macro to access the arguments for the command being handled, rather than accessing the varia...
#define ERROR_COMMAND_SYNTAX_ERROR
#define CMD_ARGC
Use this macro to access the number of arguments for the command being handled, rather than accessing...
#define COMMAND_PARSE_NUMBER(type, in, out)
parses the string in into out as a type, or prints a command error and passes the error code to the c...
#define CMD_CTX
Use this macro to access the context of the command being handled, rather than accessing the variable...
#define COMMAND_REGISTRATION_DONE
Use this as the last entry in an array of command_registration records.
int gdb_put_packet(struct connection *connection, char *buffer, int len)
static struct target * get_target_from_connection(struct connection *connection)
static int list_empty(const struct list_head *head)
list_empty - tests whether a list is empty
#define LOG_WARNING(expr ...)
int gdb_read_smp_packet(struct connection *connection, char const *packet, int packet_size)
COMMAND_HANDLER(default_handle_smp_command)
int gdb_write_smp_packet(struct connection *connection, char const *packet, int packet_size)
const struct command_registration smp_command_handlers[]
#define foreach_smp_target(pos, head)
struct gdb_service * gdb_service
struct list_head * smp_targets
struct target * get_current_target(struct command_context *cmd_ctx)