diff options
Diffstat (limited to 'debugger/eudb.c')
-rw-r--r-- | debugger/eudb.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/debugger/eudb.c b/debugger/eudb.c index 39c5cca2..275a27ef 100644 --- a/debugger/eudb.c +++ b/debugger/eudb.c @@ -147,7 +147,9 @@ dump_debug(void *buf, size_t count) { if (!debug_fd) debug_fd = open(debug_file, O_CREAT | O_WRONLY | O_TRUNC, S_IRWXO); - write(debug_fd, buf, count); + if (write(debug_fd, buf, count) == -1) + fprintf(stderr, "Error writing to debug file: %s\n", + strerror(errno)); } static volatile void * |