Changeset View
Changeset View
Standalone View
Standalone View
cddl/contrib/opensolaris/common/ctf/ctf_types.c
Show First 20 Lines • Show All 812 Lines • ▼ Show 20 Lines | _ctf_member_info(ctf_file_t *fp, ctf_id_t type, const char *name, ulong_t off, | ||||
for (n = vlen; n != 0; n--, mp += increment) { | for (n = vlen; n != 0; n--, mp += increment) { | ||||
const char *name1; | const char *name1; | ||||
ulong_t offset; | ulong_t offset; | ||||
uint_t type; | uint_t type; | ||||
ctf_get_ctm_info(fp, mp, size, &increment, &type, &offset, | ctf_get_ctm_info(fp, mp, size, &increment, &type, &offset, | ||||
&name1); | &name1); | ||||
if (name1 == NULL && | /* Search an anonmyous SOU field. */ | ||||
_ctf_member_info(fp, type, name1, offset + off, mip) == 0) | if (name1[0] == '\0' && | ||||
_ctf_member_info(fp, type, name, offset + off, mip) == 0) | |||||
return (0); | return (0); | ||||
if (strcmp(name1, name) == 0) { | if (strcmp(name1, name) == 0) { | ||||
mip->ctm_type = type; | mip->ctm_type = type; | ||||
mip->ctm_offset = offset + off; | mip->ctm_offset = offset + off; | ||||
return (0); | return (0); | ||||
} | } | ||||
} | } | ||||
▲ Show 20 Lines • Show All 192 Lines • Show Last 20 Lines |