is_active
A flag reporting whether semihosting is active.
Read more...
stdin_fd
stdout_fd
stderr_fd
redirect_cfg
tcp_connection
is_fileio
A flag reporting whether semihosting fileio is active.
Read more...
hit_fileio
A flag reporting whether semihosting fileio operation is active.
Read more...
is_resumable
has_resumable_exit
When SEMIHOSTING_SYS_EXIT is called outside a debug session, things are simple, the openocd process calls exit() and passes the value returned by the target. When SEMIHOSTING_SYS_EXIT is called during a debug session, by default execution returns to the debugger, leaving the debugger in a HALT state, similar to the state entered when encountering a break. In some use cases, it is useful to have SEMIHOSTING_SYS_EXIT return normally, as any semihosting call, and do not break to the debugger. The standard allows this to happen, but the condition to trigger it is a bit obscure ("by performing an RDI_Execute request or equivalent"). To make the SEMIHOSTING_SYS_EXIT call return normally, enable this variable via the dedicated command (default: disabled).
Read more...
word_size_bytes
The Target (hart) word size; 8 for 64-bits targets.
Read more...
op
param
result
The current semihosting result to be returned to the application. Usually 0 for success, -1 for error, but sometimes a useful value, even a pointer.
Read more...
sys_errno
The value to be returned by semihosting SYS_ERRNO request.
Read more...
cmdline
The semihosting command line to be passed to the target.
Read more...
setup_time
basedir
user_command_extension
Target's extension of semihosting user commands.
Read more...
setup
post_result