Lines Matching defs:ds
40 Dwarf_P_Section ds;
44 if ((ds = calloc(1, sizeof(struct _Dwarf_P_Section))) == NULL) {
49 if ((ds->ds_name = strdup(name)) == NULL) {
50 free(ds);
56 ds->ds_cap = _SECTION_INIT_SIZE;
57 if ((ds->ds_data = malloc((size_t) ds->ds_cap)) == NULL) {
58 free(ds->ds_name);
59 free(ds);
63 STAILQ_INSERT_TAIL(&dbg->dbgp_seclist, ds, ds_next);
67 *dsp = ds;
75 Dwarf_P_Section ds, tds;
82 STAILQ_FOREACH_SAFE(ds, &dbg->dbgp_seclist, ds_next, tds) {
83 if (ds == *dsp) {
84 STAILQ_REMOVE(&dbg->dbgp_seclist, ds, _Dwarf_P_Section,
90 ds = *dsp;
91 if (ds->ds_name)
92 free(ds->ds_name);
93 if (ds->ds_data)
94 free(ds->ds_data);
95 free(ds);
125 _dwarf_section_callback(Dwarf_P_Debug dbg, Dwarf_P_Section ds,
131 ndx = _dwarf_pro_callback(dbg, ds->ds_name, (int) ds->ds_size,
132 type, flags, link, info, &ds->ds_symndx, NULL);
138 ds->ds_ndx = ndx;
215 Dwarf_Section *ds;
221 ds = &dbg->dbg_section[i];
222 if (ds->ds_name != NULL && !strcmp(ds->ds_name, name))
223 return (ds);
230 _dwarf_find_next_types_section(Dwarf_Debug dbg, Dwarf_Section *ds)
235 if (ds == NULL)
238 assert(ds->ds_name != NULL);
241 ds++;
242 if (ds->ds_name != NULL &&
243 !strcmp(ds->ds_name, ".debug_types"))
244 return (ds);
245 } while (ds->ds_name != NULL);
253 Dwarf_P_Section ds;
257 STAILQ_FOREACH(ds, &dbg->dbgp_seclist, ds_next) {
258 if (ds->ds_name != NULL && !strcmp(ds->ds_name ,name))
259 return (ds);
268 Dwarf_P_Section ds, tds;
272 STAILQ_FOREACH_SAFE(ds, &dbg->dbgp_seclist, ds_next, tds) {
273 STAILQ_REMOVE(&dbg->dbgp_seclist, ds, _Dwarf_P_Section,
275 if (ds->ds_name)
276 free(ds->ds_name);
277 if (ds->ds_data)
278 free(ds->ds_data);
279 free(ds);