From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BC4A738582BE; Sun, 12 Feb 2023 15:38:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BC4A738582BE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1676216329; bh=xqYcCRr8Te6AA81Q9mP81I6Uxd/YPahlcKIePu3I2RA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ObfHGfyVjKW5oZZ1+2qVMjXcyUyQuD/EHxGLRuTpHE1uoLVr+TW0bDHSC5FRmzY0Z cCYfFcR0ZBboTHgeDx+eR5o+ieOJVTj8hVGqOXks7UfEjnEPQ/sA5bcYhWbhHauIx3 gLTGhwSHXk5E6akC00HIGus9Oxm7lf0PQRUYHp/s= From: "stsp at users dot sourceforge.net" To: gdb-prs@sourceware.org Subject: [Bug breakpoints/22921] breakpoint in PLT corrupts function argument in $rcx Date: Sun, 12 Feb 2023 15:38:49 +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: stsp at users dot sourceforge.net 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 #12 from Stas Sergeev --- So you are really at it, that's cool! :) Not that I can use your new test-case, as it now works like this: Program received signal SIGALRM, Alarm clock. [displaced] displaced_step_prepare_throw: displaced-stepping 2910780.291078= 0.0 now [displaced] prepare: selected buffer at 0x5555555550c2 [displaced] prepare: saved 0x5555555550c2: 1e fa 31 ed 49 89 d1 5e 48 89 e2= 48 83 e4 f0 50 [displaced] amd64_displaced_step_copy_insn: copy 0x7ffff7fbb0d0->0x5555555550c2: f3 0f 1e fa f2 ff 25 45 2f 00 00 0f 1f 44 0= 0 00 [displaced] displaced_step_prepare_throw: prepared successfully thread=3D2910780.2910780.0, original_pc=3D0x7ffff7fbb0d0, displaced_pc=3D0x5555555550c2 [displaced] resume_1: run 0x5555555550c2: f3 0f 1e fa [displaced] finish: restored 2910780.2910780.0 0x5555555550c2 [displaced] amd64_displaced_step_fixup: fixup (0x7ffff7fbb0d0, 0x5555555550= c2), insn =3D 0xf3 0x0f ... [displaced] amd64_displaced_step_fixup: relocated %rip from 0x5555555550c6 = to 0x7ffff7fbb0d4 PASSED Breakpoint 1, breakpt () at tst2.cc:18 18 } 1: x/i $pc =3D> 0x5555555551de <_Z7breakptv+8>: nop 2: /x $rcx =3D 0x7ffff7d0cd94 (gdb)=20 And falls inside the gdb prompt, with "PASSED" already written... But I guess I'll just try my own test-case on an already fixed gdb some time later. :) --=20 You are receiving this mail because: You are on the CC list for the bug.=