From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 711803858020; Mon, 21 Nov 2022 12:56:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 711803858020 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1669035364; bh=JIdLks9yH6mWUQW371eeqVH+PE2a9hexrVrmoaUO1bs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ZR0YcHKibf/26GxSf7uX7K7T0mPTMmd/vItkx18HHP2qPGj2hJJ7b1DxPu1fchq91 P2HhUIo//KzI3p6Zw12BMewd/58XsCsu565ZNcdtNIvr8j6Qg8Dmy6jtcTjfT4QT7+ eGZSpcyibAMLRw9b/wfMA8bgXzEN0EW3Iidh1kcA= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug testsuite/29813] [gdb/testsuite, powerpc64le] FAIL: gdb.base/vla-optimized-out.exp: o1: printed size of optimized out vla Date: Mon, 21 Nov 2022 12:56:02 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: testsuite 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: 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29813 --- Comment #1 from Tom de Vries --- (In reply to Tom de Vries from comment #0) > I suppose the following happens. The DW_OP_GNU_entry_value needs to be > evaluated, and gdb looks for a call site matching this pc: > ... > (gdb) up > #1 0x0000000010000690 in main () at > gdb/testsuite/gdb.base/vla-optimized-out.c:42 > 42 j =3D f1 (i); > (gdb) > ... >=20 > There is a call site here: > ... > <2>: Abbrev Number: 5 (DW_TAG_GNU_call_site) > DW_AT_low_pc : 0x10000694 > DW_AT_abstract_origin: <0x110> > ... > which is not matched because it's 0x4 off. That seems to be indeed the case: ... (gdb) up #1 0x00000000114d2d28 in throw_it (reason=3DRETURN_ERROR, error=3DNO_ENTRY_VALUE_ERROR,=20 fmt=3D0x11597848 "DW_OP_entry_value resolving cannot find DW_TAG_call_s= ite %s in %s",=20 ap=3D0x7fffffffc6a0 "\244\006m\022") at /suse/tdevries/gdb/src/gdbsupport/common-exceptions.cc:200 ... BTW, looking at the gcc sources, the bl;nop in call_value_nonlocal_aix disappears in gcc-9-branch. --=20 You are receiving this mail because: You are on the CC list for the bug.=