From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 96DA83858D32; Sun, 12 Feb 2023 15:32:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 96DA83858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1676215947; bh=GYggsZEVsJf8iwWRbIMR/ye5yfhMng2APHkC/J4LubA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=mZl4hLdw1M6+sE3LYfTK/e381M/C8qGZxWG7LT7b+a2yaQG71eSI/k9KimiU4TrFR M3X6pxNJ3ZisK3mxOJLiQldMG0S3a5g0/7EKRMNGQOTAmwBtiwaSqZq7Mj9w9Oedk+ dvn2ONV8wcJWCJf+IFUPykjAku+FtvJ4zitppnzk= From: "aburgess at redhat dot com" To: gdb-prs@sourceware.org Subject: [Bug breakpoints/22921] breakpoint in PLT corrupts function argument in $rcx Date: Sun, 12 Feb 2023 15:32: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: 8.0.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: aburgess at redhat dot com 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=3D22921 --- Comment #11 from Andrew Burgess --- The problem is arising by GDB taking this code path: =20 https://sourceware.org/git/?p=3Dbinutils-gdb.git;a=3Dblob;f=3Dgdb/displaced= -stepping.c;h=3D06b32a80f6a0ec54284aff2ddd456ea1e2625ecf;hb=3DHEAD#l270 As a result of taking this route we don't perform any arch specific cleanup, which means that the $rcx value is left with its new temporary state. --=20 You are receiving this mail because: You are on the CC list for the bug.=