From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x1042.google.com (mail-pj1-x1042.google.com [IPv6:2607:f8b0:4864:20::1042]) by sourceware.org (Postfix) with ESMTPS id AD7A73857807 for ; Fri, 25 Sep 2020 02:23:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org AD7A73857807 Received: by mail-pj1-x1042.google.com with SMTP id bw23so1088248pjb.2 for ; Thu, 24 Sep 2020 19:23:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=c4FxHKDonJP3g+FfWgF1iUFPAkboqBlug8C5FUQMWas=; b=KgKuGej14CHBceA0csIASXn2f7kp/ROhcxnX48iRqJvi7DR76yekmL8oJoJ1XpQMdW t/9HZGixMH9UqzElZ/KxJsZCEwRL983NTmlfLTN5Yq5raKJPb4VZ+VV4dhVXCJNi0zuy 0tWHSl737o38MNc3U5gyHV5vgpI49IPRQucBcDyWUTotM5L0/uRYvlQaPZnb1JdZ2nvz HzSQeq354J6uFN2Zy9O23LhJ2BQiuTkR3Flxr+Kbx8y66xLUCt1G/83ntAablqqNkkVy RHKY4TbhwSkrtfV998H3Qm97q8RrisiYrnomjjEXSt1okpx1HOT4AihiL7RrQ8vVDYzL ZvVw== X-Gm-Message-State: AOAM531HHWWVaEJvO10NfgifZkx3Kmr4DVeNzsdBJlPSYct9FELz+j1b 1zTpkqQbn8fHr+H+NHFCPl/xqAPDWZxvjA== X-Google-Smtp-Source: ABdhPJzBNinf8m7QogYnDvXEs4WSMVqOBlH6/NH5XwpVBB+J38/gZMOuNvdXX5C2dlbtkf+mbqWUNg== X-Received: by 2002:a17:90a:9ed:: with SMTP id 100mr517891pjo.119.1601000602839; Thu, 24 Sep 2020 19:23:22 -0700 (PDT) Received: from bubble.grove.modra.org ([2406:3400:51d:8cc0:4d5f:f7c0:600:f475]) by smtp.gmail.com with ESMTPSA id e1sm769639pfl.162.2020.09.24.19.23.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Sep 2020 19:23:22 -0700 (PDT) Received: by bubble.grove.modra.org (Postfix, from userid 1000) id CE53582E6A; Fri, 25 Sep 2020 11:53:17 +0930 (ACST) Date: Fri, 25 Sep 2020 11:53:17 +0930 From: Alan Modra To: Mark Wielaard Cc: Nick Clifton , binutils@sourceware.org Subject: Re: [PATCH 2/3] Sync libiberty and include with GCC for get_DW_UT_name. Message-ID: <20200925022317.GM5452@bubble.grove.modra.org> References: <20200923145152.27111-1-mark@klomp.org> <20200923145152.27111-2-mark@klomp.org> <20200924211249.GC5317@wildebeest.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200924211249.GC5317@wildebeest.org> User-Agent: Mutt/1.9.4 (2018-02-28) X-Spam-Status: No, score=-9.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, 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: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Sep 2020 02:23:41 -0000 On Thu, Sep 24, 2020 at 11:12:49PM +0200, Mark Wielaard wrote: > BTW. It would be nice if binutils adopted the same method as GCC and > only required the ChangeLog entries in the commit message and not > require an actual ChangeLog file entry. Yes, it would be nice. I guess we'd need gdb to do the same. elfcpp/ * dwarf.h (DW_FIRST_UT, DW_UT, DW_END_UT): Define. diff --git a/elfcpp/dwarf.h b/elfcpp/dwarf.h index 1221f37f8a..d5e06d4d7d 100644 --- a/elfcpp/dwarf.h +++ b/elfcpp/dwarf.h @@ -81,6 +81,11 @@ namespace elfcpp #define DW_IDX_DUP(name, value) , name = value #define DW_END_IDX }; +#define DW_FIRST_UT(name, value) enum dwarf_unit_type { \ + name = value +#define DW_UT(name, value) , name = value +#define DW_END_UT }; + #include "dwarf2.def" #undef DW_FIRST_TAG @@ -117,6 +122,10 @@ namespace elfcpp #undef DW_IDX_DUP #undef DW_END_IDX +#undef DW_FIRST_UT +#undef DW_UT +#undef DW_END_UT + // Frame unwind information. enum DW_EH_PE -- Alan Modra Australia Development Lab, IBM