From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gnu.wildebeest.org (wildebeest.demon.nl [212.238.236.112]) by sourceware.org (Postfix) with ESMTPS id 83194386F420 for ; Thu, 18 Feb 2021 15:03:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 83194386F420 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=klomp.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mark@klomp.org Received: from tarox.wildebeest.org (tarox.wildebeest.org [172.31.17.39]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by gnu.wildebeest.org (Postfix) with ESMTPSA id 849B3300BF39; Thu, 18 Feb 2021 16:03:09 +0100 (CET) Received: by tarox.wildebeest.org (Postfix, from userid 1000) id 4AEBD40C7955; Thu, 18 Feb 2021 16:03:09 +0100 (CET) Message-ID: Subject: Re: [PATCH] Print die_hash2 for --odr --devel-dump-dies From: Mark Wielaard To: Tom de Vries , dwz@sourceware.org, jakub@redhat.com Cc: Mark Wielaard Date: Thu, 18 Feb 2021 16:03:09 +0100 In-Reply-To: <20210215203416.GA29992@delia> References: <20210215203416.GA29992@delia> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Evolution 3.28.5 (3.28.5-10.el7) Mime-Version: 1.0 X-Spam-Status: No, score=-5.6 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, 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: dwz@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Dwz mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2021 15:03:11 -0000 Hi Tom, On Mon, 2021-02-15 at 21:34 +0100, Tom de Vries wrote: > For --odr, there's an additional hash value, die->u.p1.die_hash2. >=20 > Print this with --devel-dump-dies, such that we have: > ... > $ dwz --devel-dump-dies --odr odr-struct > 114 O f56004ac(cd46c7ab) f56004ac aaa structure_type > ... > 1ba O f56004ac(cd46c7ab) f56004ac aaa structure_type > ... >=20 > Used to debug PR27400. >=20 > Any comments? Obviously this is useful. But I always forget how to use these --devel flags. They are only in the dwz-for-test binary, which isn't build by default, and seems to have some subtle other differences, like undefining __GNUC__? Is there more documentation on the --devel flags/binary or is this just meant for people directly hacking on dwz in the git repo? Cheers, Mark