From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B7E5C3858D28; Thu, 31 Aug 2023 13:20:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B7E5C3858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1693488038; bh=nK6J496ue5+oDvAykiGNAMLDwZ4nZ1P+zaSS3HU1P8M=; h=From:To:Subject:Date:In-Reply-To:References:From; b=bITla4s6roEEaqc9D2WjBxn0IyVmCi3Vtqv60x6IvXElR2tfco2cbQ+5ZPfjYur7U MJHp7DGP4Mg3R8LUJtyt7g2lR0H+LVciCsYuvfMJD9Pnrw/H8X1ISpYa5CymJQjL5p OyAaZVSyu4Nnv1uEvT+g5TKxEqE5hIvtjCn3YxBU= From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug remote/30770] serial.c does not preserve errno correctly Date: Thu, 31 Aug 2023 13:20:38 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: remote X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tromey at sourceware dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30770 --- Comment #3 from Tom Tromey --- I have some patches to try to do this, but now I realize that I've only ever seen this error on Windows hosts. On Windows I had my patch just do 'errno =3D EIO' rather than try to translate Windows error codes, but I think that's not very good. Maybe the serial API has to change to throw exceptions instead. --=20 You are receiving this mail because: You are on the CC list for the bug.=