From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E5FEE3858D32; Wed, 15 Jun 2022 14:47:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E5FEE3858D32 From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug tdep/29247] [gdb, tdep] ../../gdb/ppc-sysv-tdep.c:1945: internal-error: ppc64_sysv_abi_return_value: Assertion `ok' failed Date: Wed, 15 Jun 2022 14:47:15 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed 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: attachments.created 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: Wed, 15 Jun 2022 14:47:16 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29247 --- Comment #4 from Tom de Vries --- Created attachment 14145 --> https://sourceware.org/bugzilla/attachment.cgi?id=3D14145&action=3Ded= it Patch that makes print foo() do as much checking as possible in absence of process I managed to reproduce in a cross setting. 1. Use platform openSUSE Tumbleweed x86_64. 2. Reproducer: ... cat min.c long double _Complex foo () { return 1.0; } ... 3. Use powerpc64le-suse-linux-gcc-12 from package cross-ppc64le-gcc12: ... $ powerpc64le-suse-linux-gcc-12 min.c -O2 -c -g ... 4. Note the gnu attributes: ... $ readelf -a min.o ... Attribute Section: gnu File Attributes Tag_GNU_Power_ABI_FP: hard float, 128-bit IEEE long double ... 5. Build gdb with patch, to make print foo() to as much checking as possible in absence of process. 6. Reproduce: ... $ gdb -q -batch min.o -ex "show osabi" -ex "show arch" -ex "print foo()"=20 The current OS ABI is "auto" (currently "GNU/Linux"). The default OS ABI is "GNU/Linux". The target architecture is set to "auto" (currently "powerpc:common64"). warning: No process, proceed with type checking src/gdb/ppc-sysv-tdep.c:1945: internal-error: ppc64_sysv_abi_return_value: Assertion `ok' failed. ... --=20 You are receiving this mail because: You are on the CC list for the bug.=