From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 423AE3858C55; Tue, 20 Sep 2022 15:43:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 423AE3858C55 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1663688590; bh=rJZaPEJhngQAtBvoXGK2qr5AYvjwroXITiLgvn/pdXo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=RpizlOvLFks2KQcFjVZCrrqREuokjgEId5L/YjH9QamsxNmnt1KCcfjwEd61aWz9p qKuU/bvX0/Ggw7N+7WMWEKpipVyhZ9Gdm/aBUQ+dRtLVsrlv2/iNuTlUdMTsUdm6Ol +EqlM2cCxjpu0JMwMf+mKlfvYuaEjzaDqn9Nq1oI= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug gdb/29468] GDB test gdb.base/ctf-constvars.exp fails. Date: Tue, 20 Sep 2022 15:43:09 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed 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: vries at gcc dot gnu.org 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: cc 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=3D29468 Tom de Vries changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |vries at gcc dot gnu.org --- Comment #1 from Tom de Vries --- -Wl,-ctf-variables improves things for me: ... $ objdump --ctf outputs/gdb.base/ctf-constvars/ctf-constvars | grep vox vox -> 0x3: (kind 11) volatile char (size 0x1) (aligned at 0x1) -> 0x1: (kind 1) char (format 0x3) (size 0x1) (aligned at 0x1) 0x21d: vox ... That still doesn't fix things: ... $ gdb -q -batch outputs/gdb.base/ctf-constvars/ctf-constvars -ex "print vox" 'vox' has unknown type; cast it to its declared type ... because the dwarf info is in the way. After stripping the dwarf info: ... $ strip --strip-debug outputs/gdb.base/ctf-constvars/ctf-constvars ... we have: ... $ gdb -q -batch outputs/gdb.base/ctf-constvars/ctf-constvars -ex "print vox" $1 =3D 66 'B' ... --=20 You are receiving this mail because: You are on the CC list for the bug.=