[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 01/37] semihosting: add guest_error logging for failed opens
From: |
Alex Bennée |
Subject: |
[PULL 01/37] semihosting: add guest_error logging for failed opens |
Date: |
Fri, 17 Jan 2025 13:42:20 +0000 |
This usually indicates the semihosting call was expecting to find
something but didn't.
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20250116160306.1709518-2-alex.bennee@linaro.org>
diff --git a/semihosting/syscalls.c b/semihosting/syscalls.c
index c40348f996..f6451d9bb0 100644
--- a/semihosting/syscalls.c
+++ b/semihosting/syscalls.c
@@ -7,6 +7,7 @@
*/
#include "qemu/osdep.h"
+#include "qemu/log.h"
#include "cpu.h"
#include "gdbstub/syscalls.h"
#include "semihosting/guestfd.h"
@@ -287,6 +288,7 @@ static void host_open(CPUState *cs, gdb_syscall_complete_cb
complete,
ret = open(p, host_flags, mode);
if (ret < 0) {
+ qemu_log_mask(LOG_GUEST_ERROR, "%s: failed to open %s\n", __func__, p);
complete(cs, -1, errno);
} else {
int guestfd = alloc_guestfd();
--
2.39.5
- [PULL 00/37] maintainer updates for gdb, plugins, documentation and windows builds, Alex Bennée, 2025/01/17
- [PULL 04/37] semihosting/uaccess: Include missing 'exec/cpu-all.h' header, Alex Bennée, 2025/01/17
- [PULL 05/37] semihosting/arm-compat: Include missing 'cpu.h' header, Alex Bennée, 2025/01/17
- [PULL 01/37] semihosting: add guest_error logging for failed opens,
Alex Bennée <=
- [PULL 11/37] tests/tcg/plugins/insn: remove unused callback parameter, Alex Bennée, 2025/01/17
- [PULL 08/37] system/vl: more error exit into config enumeration code, Alex Bennée, 2025/01/17
- [PULL 13/37] tests/tcg/plugins/syscall: fix 32-bit build, Alex Bennée, 2025/01/17
- [PULL 02/37] semihosting/uaccess: Briefly document returned values, Alex Bennée, 2025/01/17
- [PULL 07/37] semihosting/meson: Build config.o and console.o once, Alex Bennée, 2025/01/17
- [PULL 21/37] configure: reenable plugins by default for 32-bit hosts, Alex Bennée, 2025/01/17
- [PULL 03/37] semihosting/syscalls: Include missing 'exec/cpu-defs.h' header, Alex Bennée, 2025/01/17
- [PULL 18/37] contrib/plugins/cflow: fix 32-bit build, Alex Bennée, 2025/01/17
- [PULL 16/37] contrib/plugins/cache: fix 32-bit build, Alex Bennée, 2025/01/17
- [PULL 17/37] contrib/plugins/hotblocks: fix 32-bit build, Alex Bennée, 2025/01/17