Lines Matching refs:dbg

34 _dwarf_section_init(Dwarf_P_Debug dbg, Dwarf_P_Section *dsp, const char *name,  in _dwarf_section_init()  argument
39 assert(dbg != NULL && dsp != NULL && name != NULL); in _dwarf_section_init()
42 DWARF_SET_ERROR(dbg, error, DW_DLE_MEMORY); in _dwarf_section_init()
48 DWARF_SET_ERROR(dbg, error, DW_DLE_MEMORY); in _dwarf_section_init()
57 DWARF_SET_ERROR(dbg, error, DW_DLE_MEMORY); in _dwarf_section_init()
60 STAILQ_INSERT_TAIL(&dbg->dbgp_seclist, ds, ds_next); in _dwarf_section_init()
61 dbg->dbgp_seccnt++; in _dwarf_section_init()
70 _dwarf_section_free(Dwarf_P_Debug dbg, Dwarf_P_Section *dsp) in _dwarf_section_free() argument
74 assert(dbg != NULL && dsp != NULL); in _dwarf_section_free()
79 STAILQ_FOREACH_SAFE(ds, &dbg->dbgp_seclist, ds_next, tds) { in _dwarf_section_free()
81 STAILQ_REMOVE(&dbg->dbgp_seclist, ds, _Dwarf_P_Section, in _dwarf_section_free()
83 dbg->dbgp_seccnt--; in _dwarf_section_free()
97 _dwarf_pro_callback(Dwarf_P_Debug dbg, char *name, int size, in _dwarf_pro_callback() argument
103 assert(dbg != NULL && name != NULL && symndx != NULL); in _dwarf_pro_callback()
105 if (dbg->dbgp_func_b) in _dwarf_pro_callback()
106 ret = dbg->dbgp_func_b(name, size, type, flags, link, info, in _dwarf_pro_callback()
109 ret = dbg->dbgp_func(name, size, type, flags, link, info, in _dwarf_pro_callback()
122 _dwarf_section_callback(Dwarf_P_Debug dbg, Dwarf_P_Section ds, in _dwarf_section_callback() argument
128 ndx = _dwarf_pro_callback(dbg, ds->ds_name, (int) ds->ds_size, in _dwarf_section_callback()
132 DWARF_SET_ERROR(dbg, error, ret); in _dwarf_section_callback()
141 _dwarf_generate_sections(Dwarf_P_Debug dbg, Dwarf_Error *error) in _dwarf_generate_sections() argument
146 if ((ret = _dwarf_info_gen(dbg, error)) != DW_DLE_NONE) in _dwarf_generate_sections()
150 if ((ret = _dwarf_abbrev_gen(dbg, error)) != DW_DLE_NONE) in _dwarf_generate_sections()
154 if ((ret = _dwarf_lineno_gen(dbg, error)) != DW_DLE_NONE) in _dwarf_generate_sections()
158 if ((ret = _dwarf_frame_gen(dbg, error)) != DW_DLE_NONE) in _dwarf_generate_sections()
162 if ((ret = _dwarf_arange_gen(dbg, error)) != DW_DLE_NONE) in _dwarf_generate_sections()
166 if ((ret = _dwarf_macinfo_gen(dbg, error)) != DW_DLE_NONE) in _dwarf_generate_sections()
170 if ((ret = _dwarf_nametbl_gen(dbg, ".debug_pubnames", dbg->dbgp_pubs, in _dwarf_generate_sections()
175 if ((ret = _dwarf_nametbl_gen(dbg, ".debug_weaknames", dbg->dbgp_weaks, in _dwarf_generate_sections()
180 if ((ret = _dwarf_nametbl_gen(dbg, ".debug_funcnames", dbg->dbgp_funcs, in _dwarf_generate_sections()
185 if ((ret = _dwarf_nametbl_gen(dbg, ".debug_typenames", dbg->dbgp_types, in _dwarf_generate_sections()
190 if ((ret = _dwarf_nametbl_gen(dbg, ".debug_varnames", dbg->dbgp_vars, in _dwarf_generate_sections()
195 if ((ret = _dwarf_strtab_gen(dbg, error)) != DW_DLE_NONE) in _dwarf_generate_sections()
199 if ((ret = _dwarf_reloc_gen(dbg, error)) != DW_DLE_NONE) in _dwarf_generate_sections()
203 dbg->dbgp_secpos = STAILQ_FIRST(&dbg->dbgp_seclist); in _dwarf_generate_sections()
204 dbg->dbgp_drspos = STAILQ_FIRST(&dbg->dbgp_drslist); in _dwarf_generate_sections()
210 _dwarf_find_section(Dwarf_Debug dbg, const char *name) in _dwarf_find_section() argument
215 assert(dbg != NULL && name != NULL); in _dwarf_find_section()
217 for (i = 0; i < dbg->dbg_seccnt; i++) { in _dwarf_find_section()
218 ds = &dbg->dbg_section[i]; in _dwarf_find_section()
227 _dwarf_find_next_types_section(Dwarf_Debug dbg, Dwarf_Section *ds) in _dwarf_find_next_types_section() argument
230 assert(dbg != NULL); in _dwarf_find_next_types_section()
233 return (_dwarf_find_section(dbg, ".debug_types")); in _dwarf_find_next_types_section()
248 _dwarf_pro_find_section(Dwarf_P_Debug dbg, const char *name) in _dwarf_pro_find_section() argument
252 assert(dbg != NULL && name != NULL); in _dwarf_pro_find_section()
254 STAILQ_FOREACH(ds, &dbg->dbgp_seclist, ds_next) { in _dwarf_pro_find_section()
263 _dwarf_section_cleanup(Dwarf_P_Debug dbg) in _dwarf_section_cleanup() argument
267 assert(dbg != NULL && dbg->dbg_mode == DW_DLC_WRITE); in _dwarf_section_cleanup()
269 STAILQ_FOREACH_SAFE(ds, &dbg->dbgp_seclist, ds_next, tds) { in _dwarf_section_cleanup()
270 STAILQ_REMOVE(&dbg->dbgp_seclist, ds, _Dwarf_P_Section, in _dwarf_section_cleanup()
278 dbg->dbgp_seccnt = 0; in _dwarf_section_cleanup()
279 dbg->dbgp_secpos = 0; in _dwarf_section_cleanup()