[PATCH v2 1/3] include/gdbstub/syscalls: Add GDB_{EIO, ENOSYS} errno values

Yodel Eldar via posted 3 patches 3 weeks, 6 days ago
Maintainers: "Alex Bennée" <alex.bennee@linaro.org>, "Philippe Mathieu-Daudé" <philmd@linaro.org>, Laurent Vivier <laurent@vivier.eu>
[PATCH v2 1/3] include/gdbstub/syscalls: Add GDB_{EIO, ENOSYS} errno values
Posted by Yodel Eldar via 3 weeks, 6 days ago
This patch adds the EIO and ENOSYS errno values as supported by GDB's
File-I/O.

Until recently, they were not documented in the relevant section of the
GDB manual:

https://sourceware.org/gdb/current/onlinedocs/gdb.html/Errno-Values.html

Signed-off-by: Yodel Eldar <yodel.eldar@yodel.dev>
---
 include/gdbstub/syscalls.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/gdbstub/syscalls.h b/include/gdbstub/syscalls.h
index d63228e96b..6200416f77 100644
--- a/include/gdbstub/syscalls.h
+++ b/include/gdbstub/syscalls.h
@@ -22,6 +22,7 @@
 #define GDB_EPERM           1
 #define GDB_ENOENT          2
 #define GDB_EINTR           4
+#define GDB_EIO             5
 #define GDB_EBADF           9
 #define GDB_EACCES         13
 #define GDB_EFAULT         14
@@ -37,6 +38,7 @@
 #define GDB_ENOSPC         28
 #define GDB_ESPIPE         29
 #define GDB_EROFS          30
+#define GDB_ENOSYS         88
 #define GDB_ENAMETOOLONG   91
 #define GDB_EUNKNOWN       9999
 
-- 
2.51.1.dirty
Re: [PATCH v2 1/3] include/gdbstub/syscalls: Add GDB_{EIO, ENOSYS} errno values
Posted by Richard Henderson 3 weeks, 6 days ago
On 10/17/25 14:11, Yodel Eldar via wrote:
> This patch adds the EIO and ENOSYS errno values as supported by GDB's
> File-I/O.
> 
> Until recently, they were not documented in the relevant section of the
> GDB manual:
> 
> https://sourceware.org/gdb/current/onlinedocs/gdb.html/Errno-Values.html
> 
> Signed-off-by: Yodel Eldar<yodel.eldar@yodel.dev>
> ---
>   include/gdbstub/syscalls.h | 2 ++
>   1 file changed, 2 insertions(+)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~