libctf: debug dumping
authorNick Alcock <nick.alcock@oracle.com>
Wed, 24 Apr 2019 10:41:00 +0000 (11:41 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Tue, 28 May 2019 16:09:37 +0000 (17:09 +0100)
commita30b3e182aad25f94de6412efd5d78f7805fb4d3
tree349e87e7cb16ccf37ad4bf6367211c8c423da2a8
parent6dbf2b734063522b4f3d7403ce7a2b436802b839
libctf: debug dumping

This introduces ctf_dump(), an iterator which returns a series of
strings, each representing a debugging dump of one item from a given
section in the CTF file.  The items may be multiline: a callback is
provided to allow the caller to decorate each line as they desire before
the line is returned.

libctf/
* ctf-dump.c: New.

include/
* ctf-api.h (ctf_dump_decorate_f): New.
(ctf_dump_state_t): new.
(ctf_dump): New.
include/ChangeLog
include/ctf-api.h
libctf/ChangeLog
libctf/ctf-dump.c [new file with mode: 0644]