Lines Matching refs:cth

389 ctf_set_version (ctf_dict_t *fp, ctf_header_t *cth, int ctf_version)  in ctf_set_version()  argument
392 cth->cth_version = ctf_version; in ctf_set_version()
427 upgrade_types_v1 (ctf_dict_t *fp, ctf_header_t *cth) in upgrade_types_v1() argument
438 tbuf = (ctf_type_v1_t *) (fp->ctf_buf + cth->cth_typeoff); in upgrade_types_v1()
439 tend = (ctf_type_v1_t *) (fp->ctf_buf + cth->cth_stroff); in upgrade_types_v1()
483 memcpy (ctf_base, fp->ctf_buf, cth->cth_typeoff); in upgrade_types_v1()
484 memcpy (ctf_base + cth->cth_stroff + increase, in upgrade_types_v1()
485 fp->ctf_buf + cth->cth_stroff, cth->cth_strlen); in upgrade_types_v1()
487 memset (ctf_base + cth->cth_typeoff, 0, cth->cth_stroff - cth->cth_typeoff in upgrade_types_v1()
490 cth->cth_stroff += increase; in upgrade_types_v1()
492 assert (cth->cth_stroff >= cth->cth_typeoff); in upgrade_types_v1()
496 ctf_set_base (fp, cth, ctf_base); in upgrade_types_v1()
498 t2buf = (ctf_type_t *) (fp->ctf_buf + cth->cth_typeoff); in upgrade_types_v1()
641 assert ((size_t) t2p - (size_t) fp->ctf_buf == cth->cth_stroff); in upgrade_types_v1()
643 ctf_set_version (fp, cth, CTF_VERSION_1_UPGRADED_3); in upgrade_types_v1()
651 upgrade_types (ctf_dict_t *fp, ctf_header_t *cth) in upgrade_types() argument
653 switch (cth->cth_version) in upgrade_types()
657 upgrade_types_v1 (fp, cth); in upgrade_types()
679 init_types (ctf_dict_t *fp, ctf_header_t *cth) in init_types() argument
692 int child = cth->cth_parname != 0; in init_types()
701 if ((err = upgrade_types (fp, cth)) != 0) in init_types()
705 tbuf = (ctf_type_t *) (fp->ctf_buf + cth->cth_typeoff); in init_types()
706 tend = (ctf_type_t *) (fp->ctf_buf + cth->cth_stroff); in init_types()
969 ctf_flip_header (ctf_header_t *cth) in ctf_flip_header() argument
971 swap_thing (cth->cth_preamble.ctp_magic); in ctf_flip_header()
972 swap_thing (cth->cth_preamble.ctp_version); in ctf_flip_header()
973 swap_thing (cth->cth_preamble.ctp_flags); in ctf_flip_header()
974 swap_thing (cth->cth_parlabel); in ctf_flip_header()
975 swap_thing (cth->cth_parname); in ctf_flip_header()
976 swap_thing (cth->cth_cuname); in ctf_flip_header()
977 swap_thing (cth->cth_objtoff); in ctf_flip_header()
978 swap_thing (cth->cth_funcoff); in ctf_flip_header()
979 swap_thing (cth->cth_objtidxoff); in ctf_flip_header()
980 swap_thing (cth->cth_funcidxoff); in ctf_flip_header()
981 swap_thing (cth->cth_varoff); in ctf_flip_header()
982 swap_thing (cth->cth_typeoff); in ctf_flip_header()
983 swap_thing (cth->cth_stroff); in ctf_flip_header()
984 swap_thing (cth->cth_strlen); in ctf_flip_header()
1215 ctf_flip (ctf_dict_t *fp, ctf_header_t *cth, unsigned char *buf, in ctf_flip() argument
1220 flip_lbls (buf + cth->cth_lbloff, cth->cth_objtoff - cth->cth_lbloff); in ctf_flip()
1221 flip_objts (buf + cth->cth_objtoff, cth->cth_funcoff - cth->cth_objtoff); in ctf_flip()
1222 flip_objts (buf + cth->cth_funcoff, cth->cth_objtidxoff - cth->cth_funcoff); in ctf_flip()
1223 flip_objts (buf + cth->cth_objtidxoff, cth->cth_funcidxoff - cth->cth_objtidxoff); in ctf_flip()
1224 flip_objts (buf + cth->cth_funcidxoff, cth->cth_varoff - cth->cth_funcidxoff); in ctf_flip()
1225 flip_vars (buf + cth->cth_varoff, cth->cth_typeoff - cth->cth_varoff); in ctf_flip()
1226 return flip_types (fp, buf + cth->cth_typeoff, in ctf_flip()
1227 cth->cth_stroff - cth->cth_typeoff, to_foreign); in ctf_flip()