From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6B06D3857701; Thu, 20 Apr 2023 08:57:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6B06D3857701 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1681981040; bh=3HUY7EhoZ87XQH8h1lgeptgtOCyJNPuCCmqFmaXT5kc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=V1vuqCwQSF8kHBPP7t3yCepp1PRLdqBBFRCup+G89YGJXsQWCzQpZbW980zM436co 3OzSgRNdp4FSScgvgnI67Sll5VfC2ud2j7SITaWgCfvaDyDJH0dxtBLAVaTzJ3dp1A lI47iswWZHYYcll1SOpPSn0WrPI0MJLJTt/sD80s= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug ada/29335] [gdb/ada, debug-types] FAIL: gdb.ada/local-enum.exp: print v1 element Date: Thu, 20 Apr 2023 08:57:20 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: ada 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=3D29335 --- Comment #3 from Tom de Vries --- With gnatmake-11: ... $ readelf -WS leap-15-4/build/gdb/testsuite/outputs/gdb.ada/local-enum/loca= l | grep debug | sed 's/.*\.//' | awk '{print $1}' debug_aranges debug_info debug_abbrev debug_line debug_str debug_loc debug_ranges debug_types ... With gnatmake-12: ... $ readelf -WS leap-15-4/build/gdb/testsuite/outputs/gdb.ada/local-enum/loca= l | grep debug | sed 's/.*\.//' | awk '{print $1}' debug_aranges debug_info debug_abbrev debug_line debug_str debug_loc debug_ranges ... So, the test-case passes with gnatmake-12 because .debug_types is no longer generated. I wrote some C program that has an enum: ... $ cat test.c enum a { b, c ,d }; enum a foo (enum a e) { return e; } int main (void) { foo (b); return 0; } ... and tried: ... $ gcc-11 test.c -g -fdebug-types-section; readelf -S -W a.out | grep -c debug_types 1 $ gcc-12 test.c -g -fdebug-types-section; readelf -S -W a.out | grep -c debug_types 1 ... so it's not that support for fdebug-types-section disappeared. It's just that the ada compiler no longer generates the .debug_types section for a DW_TAG_type_unit which is used here: ... <1><15f2>: Abbrev Number: 19 (DW_TAG_array_type) <15f3> DW_AT_name : (indirect string, offset: 0x1e5a): local__= a2 <15f7> DW_AT_GNAT_descriptive_type: signature: 0x76b135b6e23e0b79 <15ff> DW_AT_type : <0x15ce> ... referenced using a DW_AT_GNAT_descriptive_type. The FAIL is back if we add additional_flags=3D-fgnat-encodings=3Dall. --=20 You are receiving this mail because: You are on the CC list for the bug.=