From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5DD2F3858D33; Wed, 25 Jan 2023 12:15:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5DD2F3858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1674648925; bh=scgeXl5tTxKyQR7DKrKcYLXO6YcXJPqTh6Nhr8ptO2w=; h=From:To:Subject:Date:From; b=Ap+mbWXst13Z0hO6qYpM3diK+oWBMPmQqpQ2Rf7vBNvPXzJOunGoeIjpO5pvaRvl2 sWXpM8C7n70LWQ5xY3u3Enq2WP8kQ9IUv8SThlfu3FSNOwyQIWWQfhhDt9DyZGI2yW 5qHp+Vw7afYNe2t5eRejON4q+DOte4ZAFkFPlKO8= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug tdep/30049] New: [gdb/tdep, powerpc64le] FAIL: gdb.base/unwind-on-each-insn.exp: bar: instruction 5: bt 2 Date: Wed, 25 Jan 2023 12:15:24 +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: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org 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 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30049 Bug ID: 30049 Summary: [gdb/tdep, powerpc64le] FAIL: gdb.base/unwind-on-each-insn.exp: bar: instruction 5: bt 2 Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: tdep Assignee: unassigned at sourceware dot org Reporter: vries at gcc dot gnu.org Target Milestone: --- [ Filing this to be able to reference it from commit message. ] With the tentative patch for PR30021 comment 5, and an update to gdb.base/unwind-on-each-insn.exp that adds testing of non-leaf function (th= at I'm hoping to commit soon), I run into: ... Running /home/vries/gdb/src/gdb/testsuite/gdb.base/unwind-on-each-insn.exp = ... FAIL: gdb.base/unwind-on-each-insn.exp: bar: instruction 5: bt 2 FAIL: gdb.base/unwind-on-each-insn.exp: bar: instruction 5: up FAIL: gdb.base/unwind-on-each-insn.exp: bar: instruction 5: [string equal $= fid $::main_fid] FAIL: gdb.base/unwind-on-each-insn.exp: bar: instruction 6: bt 2 FAIL: gdb.base/unwind-on-each-insn.exp: bar: instruction 6: up FAIL: gdb.base/unwind-on-each-insn.exp: bar: instruction 6: [string equal $= fid $::main_fid] ... [ Note that without the tentative patch, I see the same failures, and more.= ] First sign of trouble: ... (gdb) bt 2^M #0 0x0000000010000748 in bar ()^M #1 0x0000000010000744 in bar ()^M (More stack frames follow...)^M (gdb) FAIL: gdb.base/unwind-on-each-insn.exp: bar: instruction 5: bt 2 ... We're expecting bar/main, the same as we get at insn 4: ... bt 2^M #0 0x0000000010000744 in bar ()^M #1 0x00000000100006c8 in main () at /home/vries/gdb/src/gdb/testsuite/gdb.base/unwind-on-each-insn.c:25^M (gdb) ... Disassembly of bar: ... 000000001000071c : 1000071c: 02 10 40 3c lis r2,4098 10000720: 00 7f 42 38 addi r2,r2,32512 10000724: a6 02 08 7c mflr r0 10000728: 10 00 01 f8 std r0,16(r1) 1000072c: f8 ff e1 fb std r31,-8(r1) 10000730: c1 ff 21 f8 stdu r1,-64(r1) 10000734: 78 0b 3f 7c mr r31,r1 10000738: 20 00 7f f8 std r3,32(r31) 1000073c: 20 00 7f e8 ld r3,32(r31) 10000740: b5 ff ff 4b bl 100006f4 10000744: 40 00 3f 38 addi r1,r31,64 10000748: 10 00 01 e8 ld r0,16(r1) 1000074c: a6 03 08 7c mtlr r0 10000750: f8 ff e1 eb ld r31,-8(r1) 10000754: 20 00 80 4e blr ... The problem occurs when backtracing from pc =3D=3D 10000748 and 1000074c, i= nbetween the restore of stack pointer r1 and frame pointer r31. --=20 You are receiving this mail because: You are on the CC list for the bug.=