From: OpenOCD-Gerrit <ope...@us...> - 2021-07-10 14:29:34
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Main OpenOCD repository". The branch, master has been updated via 4487270ea434782f25f790892c5f7d03b7cbe243 (commit) from 554878b9d3f3d5edc640c27a99c607567933b646 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 4487270ea434782f25f790892c5f7d03b7cbe243 Author: Jan Matyas <ma...@co...> Date: Fri Jun 4 11:41:36 2021 +0200 target/semihosting: Capture errno in SEMIHOSTING_SYS_ISTTY Capture the value of "errno" in semihosting isatty() call, as is done in other syscalls. Change-Id: I41b72175635f06c000536f583e3efa30fb57379e Signed-off-by: Jan Matyas <ma...@co...> Reviewed-on: http://openocd.zylin.com/6292 Tested-by: jenkins Reviewed-by: Tim Newsome <ti...@si...> Reviewed-by: Antonio Borneo <bor...@gm...> diff --git a/src/target/semihosting_common.c b/src/target/semihosting_common.c index 61a69d1bd..bfb1ecaa7 100644 --- a/src/target/semihosting_common.c +++ b/src/target/semihosting_common.c @@ -615,6 +615,7 @@ int semihosting_common(struct target *target) return retval; int fd = semihosting_get_field(target, 0, fields); semihosting->result = isatty(fd); + semihosting->sys_errno = errno; LOG_DEBUG("isatty(%d)=%d", fd, (int)semihosting->result); } break; ----------------------------------------------------------------------- Summary of changes: src/target/semihosting_common.c | 1 + 1 file changed, 1 insertion(+) hooks/post-receive -- Main OpenOCD repository |