]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
libctf: dump: dump the header; dump enum64s; adapt to API changes
authorNick Alcock <nick.alcock@oracle.com>
Fri, 25 Apr 2025 20:18:29 +0000 (21:18 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Fri, 25 Apr 2025 20:23:08 +0000 (21:23 +0100)
commita72c896298ff715491ad58d38d75083457cf8f60
treead2b85b0c590f3b0e6ee0cae8cdedf9d9e6bff90
parent918e356b18afb5daf4f0ba43f25373689782e3de
libctf: dump: dump the header; dump enum64s; adapt to API changes

A bunch of dumper changes.  Most importantly, adapt to the changes in the _f
iteration function prototypes by no longer carrying around our own cds_fp
dict pointer everywhere but just using the one we are given by the iteration
function.

But also, dump the v3 and v4/BTF headers separately, using the stored
original v3-pre-upgrade header copy if present.  The v3 dumper is not tested
yet, of course, but is more or less unchanged from the old code, so probably
nearly works.  The v4 dumper is tested.

Add enum64 support (basically just a bit of extra code to print the
signedness of enums).
libctf/ctf-dump.c