From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9D6913858C98; Fri, 5 Apr 2024 16:17:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9D6913858C98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1712333848; bh=zNs/VCaNkSCPrwusIPZsd9rtU2U/p4OiXOBiSf4+o64=; h=From:To:Subject:Date:In-Reply-To:References:From; b=wB4sDs8IZCNw0t4QdIlnee44aKbXDJbvV1mWbNs9/veqAI1Cy/7sbfkN48cKjSaY5 fRqtzMFtWdIIFhB1OpmYf9A6CpeWYQgohxCWqlRUS0M37Wqefp0wFJKusvf1p40eEZ 3mlrhQwUzbrpeaIPZ1G1AYUurPrC20r86hhpoTco= From: "k4lizen at proton dot me" To: gdb-prs@sourceware.org Subject: [Bug breakpoints/31599] [gdb] setting breakpoint prevents value being from written to address via read Date: Fri, 05 Apr 2024 16:17:27 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: breakpoints X-Bugzilla-Version: 13.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: k4lizen at proton dot me X-Bugzilla-Status: UNCONFIRMED 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=3D31599 --- Comment #3 from k4lizen --- (In reply to Tom Tromey from comment #2) > > When a break point for 0x0804a060 is set (and enabled), the `read` call= doesn't actually read the first byte of the input >=20 > I wonder what it returns and if it sets errno. It sets eax to the number of bytes it read (and as if it actually read the first byte, if the breakpoint is set, even though it didnt). It doesn't set errno (although errno itself is set for me from the printf call (which does actually print, so I don't know what thats about)). --=20 You are receiving this mail because: You are on the CC list for the bug.=