From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2DC103857BB8; Mon, 27 Nov 2023 20:14:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2DC103857BB8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1701116076; bh=L7awTweTij9IF6DZvjNL2mo+oo8OrqD5kFT7KLMu9R0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=vwPuE1gfpadXZQBA3MTaInTZEE9Rf41MHMstK27KXYWIHg49U0vMXoxwHCpmi3R1A H6e29/OgRJDVMybjaR4Bkypl9XsNlzJ4GcDj7R9ERoTU3n3KCyWOMDqSjmiXLrGGXh UTiBtwGDcnJuNVHAtbyyBP0+K8yrz1U6LozYYzSY= From: "cvs-commit at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug remote/30770] serial.c does not preserve errno correctly Date: Mon, 27 Nov 2023 20:14:36 +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: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: tromey 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 #9 from Sourceware Commits --- The master branch has been updated by Tom Tromey : https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Dd69939bded50= d76179f97284df35879a385cf8c0 commit d69939bded50d76179f97284df35879a385cf8c0 Author: Tom Tromey Date: Wed Sep 6 08:33:46 2023 -0600 Change serial_send_break and serial_write to throw This changes serial_send_break and serial_write to throw exceptions rather than attempt to set errno and return an error indicator. This lets us correctly report failures on Windows. Both functions had to be converted in a single patch because one implementation of send_break works via write. This also introduces remote_serial_send_break to handle error checking when attempting to send a break. This was previously ignored. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30770 --=20 You are receiving this mail because: You are on the CC list for the bug.=