|
@@ -7,6 +7,7 @@
|
|
*/
|
|
*/
|
|
|
|
|
|
#include "qemu/osdep.h"
|
|
#include "qemu/osdep.h"
|
|
|
|
+#include "qemu/log.h"
|
|
#include "cpu.h"
|
|
#include "cpu.h"
|
|
#include "gdbstub/syscalls.h"
|
|
#include "gdbstub/syscalls.h"
|
|
#include "semihosting/guestfd.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);
|
|
ret = open(p, host_flags, mode);
|
|
if (ret < 0) {
|
|
if (ret < 0) {
|
|
|
|
+ qemu_log_mask(LOG_GUEST_ERROR, "%s: failed to open %s\n", __func__, p);
|
|
complete(cs, -1, errno);
|
|
complete(cs, -1, errno);
|
|
} else {
|
|
} else {
|
|
int guestfd = alloc_guestfd();
|
|
int guestfd = alloc_guestfd();
|