Changeset View
Changeset View
Standalone View
Standalone View
cddl/contrib/opensolaris/tools/ctf/cvt/stabs.c
Show First 20 Lines • Show All 89 Lines • ▼ Show 20 Lines | resolve_fwd_node(tdesc_t *node, tdesc_t **nodep, void *private __unused) | ||||
debug(3, " Unforwarded to %d\n", new->t_id); | debug(3, " Unforwarded to %d\n", new->t_id); | ||||
*nodep = new; | *nodep = new; | ||||
return (1); | return (1); | ||||
} | } | ||||
static tdtrav_cb_f resolve_cbs[] = { | static tdtrav_cb_f resolve_cbs[STABTYPE_LAST] = { | ||||
NULL, | [FORWARD] = resolve_fwd_node, /* forward */ | ||||
NULL, /* intrinsic */ | [TYPEDEF_UNRES] = resolve_tou_node, /* typedef unres */ | ||||
NULL, /* pointer */ | |||||
NULL, /* array */ | |||||
NULL, /* function */ | |||||
NULL, /* struct */ | |||||
NULL, /* union */ | |||||
NULL, /* enum */ | |||||
resolve_fwd_node, /* forward */ | |||||
NULL, /* typedef */ | |||||
resolve_tou_node, /* typedef unres */ | |||||
NULL, /* volatile */ | |||||
NULL, /* const */ | |||||
NULL, /* restrict */ | |||||
}; | }; | ||||
static void | static void | ||||
resolve_nodes(tdata_t *td) | resolve_nodes(tdata_t *td) | ||||
{ | { | ||||
debug(2, "Resolving unresolved stabs\n"); | debug(2, "Resolving unresolved stabs\n"); | ||||
(void) iitraverse_hash(td->td_iihash, &td->td_curvgen, resolve_cbs, | (void) iitraverse_hash(td->td_iihash, &td->td_curvgen, resolve_cbs, | ||||
▲ Show 20 Lines • Show All 261 Lines • Show Last 20 Lines |