22 if (strncmp(arch,
"xtensa", 6) == 0)
50 uint8_t fields[4 * 8];
108 LOG_ERROR(
"Failed to Configure semihosting");
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 CMD_ARGC
Use this macro to access the number of arguments for the command being handled, rather than accessing...
#define CMD_CTX
Use this macro to access the context of the command being handled, rather than accessing the variable...
int esp_semihosting_basedir_command(struct command_invocation *cmd)
static struct esp_semihost_data __attribute__((unused))
int esp_semihosting_common(struct target *target)
static int esp_semihosting_sys_seek(struct target *target, uint64_t fd, uint32_t pos, size_t whence)
#define ESP_SEMIHOSTING_SYS_WATCHPOINT_SET
#define ESP_SEMIHOSTING_SYS_DEBUG_STUBS_INIT
#define ESP_SEMIHOSTING_SYS_APPTRACE_INIT
#define ESP_SEMIHOSTING_SYS_DRV_INFO
#define ESP_SEMIHOSTING_SYS_BREAKPOINT_SET
#define ESP_SEMIHOSTING_SYS_SEEK
static struct esp_xtensa_common * target_to_esp_xtensa(struct target *target)
#define ERROR_NOT_IMPLEMENTED
#define LOG_TARGET_DEBUG(target, fmt_str,...)
#define LOG_ERROR(expr ...)
uint64_t semihosting_get_field(struct target *target, size_t index, uint8_t *fields)
Extract a field from the buffer, considering register size and endianness.
int semihosting_read_fields(struct target *target, size_t number, uint8_t *fields)
Read all fields of a command from target to buffer.
When run_command is called, a new instance will be created on the stack, filled with the proper value...
struct esp_semihost_data semihost
int(* setup)(struct target *target, int enable)
int64_t result
The current semihosting result to be returned to the application.
char * basedir
Base directory for semihosting I/O operations.
bool is_active
A flag reporting whether semihosting is active.
int op
The current semihosting operation (R0 on ARM).
int sys_errno
The value to be returned by semihosting SYS_ERRNO request.
uint64_t param
The current semihosting parameter (R1 or ARM).
struct semihosting * semihosting
const char * target_get_gdb_arch(struct target *target)
Obtain the architecture for GDB.
struct target * get_current_target(struct command_context *cmd_ctx)