[PATCH] Print die_hash2 for --odr --devel-dump-dies

Mark Wielaard mark@klomp.org
Thu Feb 18 15:03:09 GMT 2021


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.
> 
> 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
> ...
> 
> Used to debug PR27400.
> 
> 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



More information about the Dwz mailing list