From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3EBE5385734D; Fri, 20 May 2022 08:38:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3EBE5385734D From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug symtab/29160] New: [gdb, ctf+dwarf] FAIL: gdb.base/ctf-constvars.exp: print vox Date: Fri, 20 May 2022 08:38:18 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: symtab 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 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, 20 May 2022 08:38:19 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29160 Bug ID: 29160 Summary: [gdb, ctf+dwarf] FAIL: gdb.base/ctf-constvars.exp: print vox Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: symtab Assignee: unassigned at sourceware dot org Reporter: vries at gcc dot gnu.org Target Milestone: --- On openSUSE Tumbleweed, with gcc 12.1.0, which supports -gctf, I run into: ... FAIL: gdb.base/ctf-constvars.exp: print vox ... AFAICT this is due to: ... /* Read the CTF section only if there is no DWARF info. */ if (!has_dwarf2 && ei.ctfsect) { elfctf_build_psymtabs (objfile); } ... and the the exec has both ctf and dwarf: ... $ readelf -S -W outputs/gdb.base/ctf-constvars/ctf-constvars ... [27] .ctf PROGBITS 0000000000000000 0052cc 00054f 00= =20=20=20=20=20 0 0 1 [28] .debug_aranges PROGBITS 0000000000000000 003160 000120 00= =20=20=20=20=20 0 0 16 [29] .debug_info PROGBITS 0000000000000000 003280 000988 00= =20=20=20=20=20 0 0 1 [30] .debug_abbrev PROGBITS 0000000000000000 003c08 000282 00= =20=20=20=20=20 0 0 1 [31] .debug_line PROGBITS 0000000000000000 003e8a 00024f 00= =20=20=20=20=20 0 0 1 [32] .debug_str PROGBITS 0000000000000000 0040d9 0004bc 01 = MS=20 0 0 1 [33] .debug_line_str PROGBITS 0000000000000000 004595 000144 01 = MS=20 0 0 1 [34] .debug_rnglists PROGBITS 0000000000000000 0046d9 000042 00= =20=20=20=20=20 0 0 1 ... This due to the linked in startup files having dwarf info: ... $ readelf --dwarf-depth=3D1 -wi outputs/gdb.base/ctf-constvars/ctf-constvar= s | grep name <1a> DW_AT_name : ../sysdeps/x86_64/start.S <3a> DW_AT_name : ../sysdeps/x86/abi-note.c <510> DW_AT_name : init.c <551> DW_AT_name : static-reloc.c <957> DW_AT_name : ../sysdeps/x86_64/crti.S <97a> DW_AT_name : ../sysdeps/x86_64/crtn.S ... --=20 You are receiving this mail because: You are on the CC list for the bug.=