Hi Yaroslav,
> How do people generate the Compact Type Format (CTF) section?
> Do you have a special parser or employ gcc debug information?
>
> Is there any open utility to do this job?
We have the compiler generate type information (stabs or DWARF) and
then have tools to read and process that. You can find the tools in
usr/src/tools/ctf. In particular looks for ctfconvert and ctfmerge.
The ctfconvert command converts the compiler-generated type information
to CTF for a given object file and ctfmerge takes several object files
with CTF data and merges their CTF data into a single coherent CTF
section.
We''ve been meaning to turn these rather ad-hoc tools into something
we could document and ship for some time, but we haven''t got around to
it.
Adam
--
Adam Leventhal, Solaris Kernel Development http://blogs.sun.com/ahl