return (ctf_set_errno (fp, EINVAL));
if ((enid = ctf_type_resolve_unsliced (fp, enid)) == CTF_ERR)
- return -1; /* errno is set for us. */
+ return -1; /* errno is set for us. */
dtd = ctf_dtd_lookup (fp, enid);
fp = ctf_get_dict (fp, enid);
cannot insert right after such a member without explicit offset
specification, because its alignment and size is not known. */
if (ltype == CTF_ERR)
- return -1; /* errno is set for us. */
+ return -1; /* errno is set for us. */
if (is_incomplete)
{
return;
src_type = ctf_type_to_index (src_fp, src_type);
-
dst_type = ctf_type_to_index (dst_fp, dst_type);
if (dst_fp->ctf_link_type_mapping == NULL)
if (name == NULL)
name = "";
#ifdef ENABLE_LIBCTF_HASH_DEBUGGING
- ctf_dprintf ("Emitting %s, offset %zi\n", name, offset);
+ ctf_dprintf ("Emitting %s, target-mapped type %lx, offset %zi\n", name, membtype, offset);
#endif
if (ctf_add_member_offset (target, target_type, name,
membtype, offset) < 0)