From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3B1293855014; Sun, 27 Jun 2021 17:59:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3B1293855014 From: "ahmedsayeed1982 at yahoo dot com" To: gdb-prs@sourceware.org Subject: [Bug breakpoints/27009] [s390] GDB branches randomly for BC instruction while displaced stepping Date: Sun, 27 Jun 2021 17:59:57 +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: 10.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ahmedsayeed1982 at yahoo dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: 10.2 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Jun 2021 17:59:57 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27009 Ahmed Sayeed changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ahmedsayeed1982 at yahoo d= ot com --- Comment #4 from Ahmed Sayeed --- .align 8 .globl main .globl insn .type main, @function .type insn, @function # This should return 0 on success. main: basr %r1, %r0 insn: bc 15, win-insn(0,%r1) lghi %r2,1 win: lghi %r2,0 br %r14 Assemble and link the above. Turn on displaced stepping, set a breakpoint on `insn`, run, then try to st= ep over the breakpoint with stepi. (gdb) set displaced-stepping on (gdb) b insn (gdb) r (gdb) stepi http://ooviv.xyz/ --=20 You are receiving this mail because: You are on the CC list for the bug.=