Lines Matching refs:dbg
44 get_offsets (Dwarf *dbg) in get_offsets() argument
50 unsigned char *const startp = dbg->sectiondata[IDX_debug_pubnames]->d_buf; in get_offsets()
52 unsigned char *endp = readp + dbg->sectiondata[IDX_debug_pubnames]->d_size; in get_offsets()
75 Dwarf_Off len = read_4ubyte_unaligned_inc (dbg, readp); in get_offsets()
78 len = read_8ubyte_unaligned_inc (dbg, readp); in get_offsets()
91 size_t max_size = dbg->sectiondata[IDX_debug_pubnames]->d_size; in get_offsets()
99 uint16_t version = read_2ubyte_unaligned (dbg, readp); in get_offsets()
107 if (__libdw_read_offset (dbg, dbg, IDX_debug_pubnames, in get_offsets()
115 = ((unsigned char *) dbg->sectiondata[IDX_debug_info]->d_buf in get_offsets()
135 dbg->pubnames_sets = (struct pubnames_s *) realloc (mem, cnt * entsize); in get_offsets()
136 dbg->pubnames_nsets = cnt; in get_offsets()
143 dwarf_getpubnames (Dwarf *dbg, in dwarf_getpubnames() argument
147 if (dbg == NULL) in dwarf_getpubnames()
157 if (unlikely (dbg->sectiondata[IDX_debug_pubnames] == NULL in dwarf_getpubnames()
159 >= dbg->sectiondata[IDX_debug_pubnames]->d_size))) in dwarf_getpubnames()
164 if (dbg->pubnames_nsets == 0 && unlikely (get_offsets (dbg) != 0)) in dwarf_getpubnames()
172 offset = dbg->pubnames_sets[0].set_start; in dwarf_getpubnames()
176 for (cnt = 0; cnt + 1 < dbg->pubnames_nsets; ++cnt) in dwarf_getpubnames()
177 if ((Dwarf_Off) offset >= dbg->pubnames_sets[cnt].set_start) in dwarf_getpubnames()
180 < dbg->pubnames_sets[cnt + 1].set_start); in dwarf_getpubnames()
183 assert (cnt + 1 < dbg->pubnames_nsets); in dwarf_getpubnames()
187 = (unsigned char *) dbg->sectiondata[IDX_debug_pubnames]->d_buf; in dwarf_getpubnames()
189 = startp + dbg->sectiondata[IDX_debug_pubnames]->d_size; in dwarf_getpubnames()
195 gl.cu_offset = (dbg->pubnames_sets[cnt].cu_offset in dwarf_getpubnames()
196 + dbg->pubnames_sets[cnt].cu_header_size); in dwarf_getpubnames()
201 if (readp + dbg->pubnames_sets[cnt].address_len > endp) in dwarf_getpubnames()
203 if (dbg->pubnames_sets[cnt].address_len == 4) in dwarf_getpubnames()
204 gl.die_offset = read_4ubyte_unaligned_inc (dbg, readp); in dwarf_getpubnames()
206 gl.die_offset = read_8ubyte_unaligned_inc (dbg, readp); in dwarf_getpubnames()
213 gl.die_offset += dbg->pubnames_sets[cnt].cu_offset; in dwarf_getpubnames()
226 if (callback (dbg, &gl, arg) != DWARF_CB_OK) in dwarf_getpubnames()
234 if (++cnt == dbg->pubnames_nsets) in dwarf_getpubnames()
238 startp = (unsigned char *) dbg->sectiondata[IDX_debug_pubnames]->d_buf; in dwarf_getpubnames()
239 readp = startp + dbg->pubnames_sets[cnt].set_start; in dwarf_getpubnames()