From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by sourceware.org (Postfix) with ESMTP id 82B10386F47E for ; Thu, 24 Sep 2020 17:50:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 82B10386F47E Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-576-QfCqBXbeMyi0CTevZxVvew-1; Thu, 24 Sep 2020 13:50:47 -0400 X-MC-Unique: QfCqBXbeMyi0CTevZxVvew-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 09C8080B73A; Thu, 24 Sep 2020 17:50:46 +0000 (UTC) Received: from tucnak.zalov.cz (ovpn-112-37.ams2.redhat.com [10.36.112.37]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 37E725F9C0; Thu, 24 Sep 2020 17:50:44 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.15.2/8.15.2) with ESMTP id 08OHofjh025627; Thu, 24 Sep 2020 19:50:42 +0200 Received: (from jakub@localhost) by tucnak.zalov.cz (8.15.2/8.15.2/Submit) id 08OHoeI4025626; Thu, 24 Sep 2020 19:50:40 +0200 Date: Thu, 24 Sep 2020 19:50:40 +0200 From: Jakub Jelinek To: Mark Wielaard Cc: gcc-patches@gcc.gnu.org Subject: Re: [PATCH] libiberty: Add get_DW_UT_name and update include/dwarf2.{def, h} Message-ID: <20200924175040.GN2176@tucnak> Reply-To: Jakub Jelinek References: <20200923145101.26929-1-mark@klomp.org> MIME-Version: 1.0 In-Reply-To: <20200923145101.26929-1-mark@klomp.org> User-Agent: Mutt/1.11.3 (2019-02-01) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Sep 2020 17:50:50 -0000 On Wed, Sep 23, 2020 at 04:51:01PM +0200, Mark Wielaard wrote: > This adds a get_DW_UT_name function to dwarfnames using dwarf2.def > for use in binutils readelf to show the unit types in a DWARF5 header. > > Also remove DW_CIE_VERSION which was already removed in binutils/gdb > and is not used in gcc. > > include/ChangeLog: > > * dwarf2.def: Add DWARF5 Unit type header encoding macros > DW_UT_FIRST, DW_UT and DW_UT_END. > * dwarf2.h (enum dwarf_unit_type): Removed and define using > DW_UT_FIRST, DW_UT and DW_UT_END macros. > (DW_CIE_VERSION): Removed. > (get_DW_UT_name): New function declaration. > > libiberty/ChangeLog: > > * dwarfnames.c (get_DW_UT_name): Define using DW_UT_FIRST, DW_UT > and DW_UT_END. LGTM, thanks. Jakub