From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id iRqaNpeT5mgFRyQAWB0awg (envelope-from ) for ; Wed, 08 Oct 2025 12:38:47 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=mail.yodel.dev header.i=@mail.yodel.dev header.a=rsa-sha256 header.s=pdk1 header.b=eYctPe1R; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id DBE5C1E0B6; Wed, 08 Oct 2025 12:38:47 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 1D5041E047 for ; Wed, 08 Oct 2025 12:38:47 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id ABF053857B98 for ; Wed, 8 Oct 2025 16:38:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ABF053857B98 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=mail.yodel.dev header.i=@mail.yodel.dev header.a=rsa-sha256 header.s=pdk1 header.b=eYctPe1R Received: from m228-5.mailgun.net (m228-5.mailgun.net [159.135.228.5]) by sourceware.org (Postfix) with UTF8SMTPS id 4F5D53857B98 for ; Wed, 8 Oct 2025 16:35:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4F5D53857B98 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=yodel.dev Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mail.yodel.dev ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 4F5D53857B98 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=159.135.228.5 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1759941309; cv=none; b=pzYwd92JkD7pU4Hig/A4k9z6CiNsFX7IC6/3p7pVPiZH190bKOhfwQqlWgU75xf92ifZEo9nFboky1kVr6HHAg12vD6dw1tdsIPkdHeCkGcPqyC1Kvx4PiwocYpsMmkQRV/mgP4xvIo2L5YcbQicouTUmRbbzpbulJ8+BAppNr0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1759941309; c=relaxed/simple; bh=Yj8yk5fu7rQ8pa8jAbWxBNovIDvFSuGeLPsjEH60+dE=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=TGWBNdtpFZIpqfHaxcqrBC5N67C31Id8AjGU89kA5E1kdaEoLxJxppdAW0WIhJZEjzGwM7Bu0cYyVg1gKjOF6pQBo/+9HYJqdzmIeUKhJkwlJVkGaPksepARFujOUk40gPzM+QBK2jD4mjFpxAUHkClKCGT9P2w4BSWmr3aB2rQ= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4F5D53857B98 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mail.yodel.dev; q=dns/txt; s=pdk1; t=1759941308; x=1759948508; h=Content-Transfer-Encoding: MIME-Version: Message-ID: Date: Subject: Subject: Cc: To: To: From: From: Sender: Sender; bh=Ame/mJfzJqdHPyAOsYZlpPSe3QFn7UH2inEHgXh9cA0=; b=eYctPe1RuELutG6P4ecxRpOBSzC9JyMKaMPWLDirbsq+I0b6AD5IGDwIS0dNyXb72fjMcDwUCHh6hYce5/AcD4pcAc4HWNsY/Khx63u8/slnIOKQkh/I2oaUvXAyOLNe03TEW3tX35E2gLR2OJRWv8kYcLYX2Cyq05FOUbSEbBY9VaG0Gbnf7WD6Ya6gK6bRpaCSSIH3lc5Z+3fmUza57AA69QomEVbcnq0wr3H3ndE4Jqyykry2S8M8KsGm209DPIB7C5hsfQ0pDjY9oPdraLZI9ICpZz4ioJGpzabGhJIaHMttR16dnTBGamTpZcQ1JRgzbRuggFb/t34WzVZ6PQ== X-Mailgun-Sid: WyIxOWVlZiIsImdkYi1wYXRjaGVzQHNvdXJjZXdhcmUub3JnIiwiMzNlOTIwIl0= Received: from mail.yodel.dev (mail.yodel.dev [35.209.39.246]) by 7e6aa6cbb506b2fe64154dceaec54bbca6f94ce46fd3063d007d22fb6e3fca0f with SMTP id 68e692bcf9b144a00b086122; Wed, 08 Oct 2025 16:35:08 GMT X-Mailgun-Sending-Ip: 159.135.228.5 Sender: yodel.eldar=yodel.dev@mail.yodel.dev From: Yodel Eldar To: gdb-patches@sourceware.org Cc: simon.marchi@polymtl.ca, Yodel Eldar Subject: [PATCH] doc/gdb.texinfo: Add EIO and ENOSYS errno values Date: Wed, 8 Oct 2025 11:34:55 -0500 Message-ID: <20251008163455.31446-1-yodel.eldar@yodel.dev> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2126; i=yodel.eldar@yodel.dev; h=from:subject; bh=Yj8yk5fu7rQ8pa8jAbWxBNovIDvFSuGeLPsjEH60+dE=; b=owGbwMvMwCU29Z3/drNU3zWMp9WSGDKeTVwwgT3O7fWngIJCjWtXCuznbsw48CX/hCxn8+MQ+ 6a4xd4mHaUsDGJcDLJiiiyXz0qcdcjd3ZW28sd9mDmsTCBDGLg4BWAiCUWMDK9an8u3XbjspWFZ fULIOarS68PSGPOnBb1HS55cCXK4ns7IcK+veJfi55DEikIX75X5rnerYw8tv77vxpJfRU8Vz1g ZcwMA X-Developer-Key: i=yodel.eldar@yodel.dev; a=openpgp; fpr=D3CD18CD406DBB8A66A9F8DF95EE4FB736654DAC Content-Transfer-Encoding: 8bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org 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 --- Notes: Simon, please let me know if my exclusion of FILEIO_SUCCESS is a mistake; I assumed the doc page was geared towards stub authors, and that they typically would check the retcode of a file-op function call before converting the nonzero errno to GDB's internal protocol representation of the error value as listed in the manual, but perhaps that's too myopic; if so, I can resubmit with a "SUCCESS = 0" line added. As the originator of the enum and member, I defer to your judgment. As a side note, I sent this email with my preferred email address that is different from my previously used email address, yodel.eldar(at)gmail.com. As attestation, I signed this email with patatt and the same GPG key as before. Thanks, Yodel gdb/doc/gdb.texinfo | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index a13d5c0388e..5b06d3dbcf8 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -48348,6 +48348,7 @@ All values are given in decimal representation. EPERM 1 ENOENT 2 EINTR 4 + EIO 5 EBADF 9 EACCES 13 EFAULT 14 @@ -48363,6 +48364,7 @@ All values are given in decimal representation. ENOSPC 28 ESPIPE 29 EROFS 30 + ENOSYS 88 ENAMETOOLONG 91 EUNKNOWN 9999 @end smallexample -- 2.51.0