libctf: dump: support non-root type dumping
authorNick Alcock <nick.alcock@oracle.com>
Sat, 13 Jul 2019 19:49:19 +0000 (20:49 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Thu, 3 Oct 2019 16:04:55 +0000 (17:04 +0100)
commitb4f0e09cd18e0dbeeecd303ed54f6f113146e857
tree408a9ceca5879acb3933dc4d0acd5aab076f72bc
parent3dde2c915e2c68fdda36febac618595561ed87f8
libctf: dump: support non-root type dumping

Use the recently-added ctf_type_iter_all function to iterate over
non-root types, too, indicating them via {....} surrounding the type
description in the dump.

libctf/
* ctf-dump.c (ctf_dump): Use ctf_type_iter_all to dump types, not
ctf_type_iter.
(ctf_dump_type): Pass down the flag from ctf_type_iter_all.
(ctf_dump_format_type): Add non-root-type { } notation.
Add root flag to prototype.
(ctf_dump_label): Adjust accordingly.
(ctf_dump_objts): Likewise.
(ctf_dump_var): Likewise.
libctf/ChangeLog
libctf/ctf-dump.c
This page took 0.025113 seconds and 4 git commands to generate.