From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2748A3858421; Mon, 21 Nov 2022 13:27:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2748A3858421 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1669037264; bh=0n7/wqNEwnQNXgHQAc3+8PUBhQ3vQr4+k61ssLAVZFU=; h=From:To:Subject:Date:From; b=dcHDSQCRsVZpMJau573SyEc1WyScquezvGulpCcvqxRCZCvvZ2J19dB7C8POtRxD+ oXJVRr+7Um/PpwmtLCkH//rSmoPEyxjfcL3MxrotLQLgjI2UuAG5viZOGYmjoPf1GW P+AkI9y4ulkemxfTHACC/wTOXM/GE6sG+3aDC/XA= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug tdep/29814] New: [gdb/tdep, powerpc64le] FAIL: gdb.base/msym-bp-shl.exp: debug=0: before run: info breakpoint Date: Mon, 21 Nov 2022 13:27:43 +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: 12.1 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=3D29814 Bug ID: 29814 Summary: [gdb/tdep, powerpc64le] FAIL: gdb.base/msym-bp-shl.exp: debug=3D0: before run: info breakpoint Product: gdb Version: 12.1 Status: NEW Severity: normal Priority: P2 Component: tdep Assignee: unassigned at sourceware dot org Reporter: vries at gcc dot gnu.org Target Milestone: --- With a gdb 12.1 based package on powerpc64le and target board unix/-fPIE/-p= ie, I run into: ... (gdb) PASS: gdb.base/msym-bp-shl.exp: debug=3D0: before run: break foo info breakpoint^M Num Type Disp Enb Address What^M 1 breakpoint keep y ^M 1.1 y 0x00000000000008d4 ^M 1.2 y 0x0000000000000a34 ../sysdeps/powerpc/powerpc64/crti.S:88^M (gdb) FAIL: gdb.base/msym-bp-shl.exp: debug=3D0: before run: info breakpoint ... What seems to be happening it that foo@plt: ... 0000000000000a28 : a28: c0 ff ff 4b b 9e8 <__glink_PLTresolve> Disassembly of section .fini: 0000000000000a2c <_fini>: a2c: 02 00 4c 3c addis r2,r12,2 a30: d4 74 42 38 addi r2,r2,29908 a34: a6 02 08 7c mflr r0 ... is part of .text and (perhaps because of that) treated as a regular functio= n, so we add 8 to get past the global entry point, which gets us to 0xa30 in _fini, and then (considering it part of prologue) skip past that insn to ge= t to 0xa34. --=20 You are receiving this mail because: You are on the CC list for the bug.=