From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5EBFC38582BB; Wed, 10 Aug 2022 20:30:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5EBFC38582BB From: "cel at us dot ibm.com" To: gdb-prs@sourceware.org Subject: [Bug gdb/29468] New: GDB test gdb.base/ctf-constvars.exp fails. Date: Wed, 10 Aug 2022 20:30:26 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cel at us dot ibm.com X-Bugzilla-Status: UNCONFIRMED 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: Wed, 10 Aug 2022 20:30:26 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29468 Bug ID: 29468 Summary: GDB test gdb.base/ctf-constvars.exp fails. Product: gdb Version: unknown Status: UNCONFIRMED Severity: normal Priority: P2 Component: gdb Assignee: unassigned at sourceware dot org Reporter: cel at us dot ibm.com Target Milestone: --- The gdb test gdb.base/ctf-constvars.exp fails with gcc (GCC) 12.1.1 20220507 (Red Hat 12.1.1-1) The test is for the new CTF debug support in gdb/gcc. In discussing the issue with the test author, they indicate that the issue = may be with ld.=20=20 When the test is run with the command: make check RUNTESTFLAGS=3D'GDB=3D/home/carll/bin/gdb gdb.base/ctf-constvar= s.exp ' > out two files are generated in gdb/testsuite/outputs/gdb.base/ctf-constvars, th= ey are ctf-constvars0.o and ctf-constvars. If you check for the CFT informat= ion in the files using: objdump --ctf ctf-constvars > ctf-constvars.dump objdump --ctf ctf-constvars0.o > ctf-constvars0.o.dump you will find a section "Variables". in ctf-constvars0.o.dump the section contains values, i.e. Variables: caveat -> 0x7: (kind 11) const char *volatile (size 0x8) (aligned at 0x= 8) -> 0x5: (kind 3) const char * (size 0x8) (aligned at 0x8) -> 0x2: (kind 12) const char (size 0x1) (aligned at 0x1) -> 0x1: (kind 1) char (format 0x2) (= size 0x1) (aligned at 0x1) cavern -> 0x3c: (kind 12) const volatile char *const (size 0x8) (aligne= d at 0x8) -> 0x3b: (kind 3) const volatile char * (size 0x8) (aligned at 0x8) -> 0x4: (kind 12) const volatile char (size 0x1) (aligned at 0x1) -> 0x3: (kind 11) volatile char (size 0x1) (aligned at 0x1) -> 0x1: (kind 1) char (format 0x2) (size 0x1) (aligned at 0x1) etc. However in the final binary, ctf-constvars.dump all you see is: Function objects: Variables: Types: 0x1: (kind 1) char (format 0x2) (size 0x1) (aligned at 0x1) etc. Basically, the Variables section is blank in the final binary output.=20 Apparently, the ld tool didn't include the data as expected. The result of all this is the gdb test fails as it can't find the needed de= bug information. --=20 You are receiving this mail because: You are on the CC list for the bug.=