From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8B2D13874C10; Fri, 5 Mar 2021 15:41:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8B2D13874C10 From: "gabriel at inconstante dot net.br" To: gdb-prs@sourceware.org Subject: [Bug tdep/27525] New: powerpc: displaced stepping broken for breakpoint at lnia instruction Date: Fri, 05 Mar 2021 15:41:18 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: tdep X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gabriel at inconstante dot net.br X-Bugzilla-Status: NEW 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: 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: Fri, 05 Mar 2021 15:41:18 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D27525 Bug ID: 27525 Summary: powerpc: displaced stepping broken for breakpoint at lnia instruction Product: gdb Version: unknown Status: NEW Severity: normal Priority: P2 Component: tdep Assignee: unassigned at sourceware dot org Reporter: gabriel at inconstante dot net.br CC: pedromfc at linux dot ibm.com, rcardoso at linux dot vn= et.ibm.com Target Milestone: --- Consider the following function: .global fn .type fn,@function fn: lnia 3 blr If I place a breakpoing at 'fn', then try to 'stepi', the result in 'r3' is= not set to the address of the next instruction, as can be seen in the following output snippet: Breakpoint 1, 0x0000000010000680 in fn () >>> set displaced-stepping on >>> x /i $pc =3D> 0x10000680 : lnia r3 >>> stepi 0x0000000010000684 in fn () >>> info registers r3 r3 0x100004ac 268436652 However, pedromfc told me that disabling displaced stepping would probably = fix the problem, and it did, indeed: Breakpoint 1, 0x0000000010000680 in fn () >>> set displaced-stepping off >>> x /i $pc =3D> 0x10000680 : lnia r3 >>> stepi 0x0000000010000684 in fn () >>> info registers r3 r3 0x10000684 268437124 Cheers, Gabriel --=20 You are receiving this mail because: You are on the CC list for the bug.=