[binutils-gdb] doc/gdb.texinfo: Add EIO and ENOSYS errno values

Simon Marchi simark@sourceware.org
Thu Oct 9 15:27:55 GMT 2025


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=db6830694b4b2d2bdcb5ceb928eeff3954c3b285

commit db6830694b4b2d2bdcb5ceb928eeff3954c3b285
Author: Yodel Eldar <yodel.eldar@yodel.dev>
Date:   Wed Oct 8 11:34:55 2025 -0500

    doc/gdb.texinfo: Add EIO and ENOSYS errno values
    
    This patch adds the EIO and ENOSYS errno values supported by GDB's
    File-I/O to section E.14.9: Errno Values of the GDB manual [1] that were
    presumably inadvertently omitted; both can be seen in the enum
    fileio_error:gdbsupport/fileio.h and corresponding function
    host_to_fileio_error:gdbsupport/fileio.cc as FILEIO_{EIO,ENOSYS}.
    
    FILEIO_SUCCESS remains excluded from the manual, because its stated
    purpose (commit b872057a6) is to internally represent the absence of an
    error value from the remote, and it's not actually an error number.
    
    [1] https://sourceware.org/gdb/current/onlinedocs/gdb.html/Errno-Values.html
    
    Approved-By: Simon Marchi <simon.marchi@efficios.com>
    Reviewed-By: Eli Zaretskii <eliz@gnu.org>

Diff:
---
 gdb/doc/gdb.texinfo | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 1b463b167e7..e0fc0ff98ab 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -48453,6 +48453,7 @@ All values are given in decimal representation.
   EPERM           1
   ENOENT          2
   EINTR           4
+  EIO             5
   EBADF           9
   EACCES         13
   EFAULT         14
@@ -48468,6 +48469,7 @@ All values are given in decimal representation.
   ENOSPC         28
   ESPIPE         29
   EROFS          30
+  ENOSYS         88
   ENAMETOOLONG   91
   EUNKNOWN       9999
 @end smallexample


More information about the Gdb-cvs mailing list