Lines Matching refs:dbg
65 get_offsets (Dwarf *dbg)
71 unsigned char *const startp = dbg->sectiondata[IDX_debug_pubnames]->d_buf;
73 unsigned char *endp = readp + dbg->sectiondata[IDX_debug_pubnames]->d_size;
96 Dwarf_Off len = read_4ubyte_unaligned_inc (dbg, readp);
99 len = read_8ubyte_unaligned_inc (dbg, readp);
112 if (mem[cnt].set_start >= dbg->sectiondata[IDX_debug_pubnames]->d_size)
118 uint16_t version = read_2ubyte_unaligned (dbg, readp);
126 if (__libdw_read_offset (dbg, IDX_debug_pubnames, readp + 2, len_bytes,
133 = ((unsigned char *) dbg->sectiondata[IDX_debug_info]->d_buf
152 dbg->pubnames_sets = (struct pubnames_s *) realloc (mem, cnt * entsize);
153 dbg->pubnames_nsets = cnt;
160 dwarf_getpubnames (dbg, callback, arg, offset)
161 Dwarf *dbg;
166 if (dbg == NULL)
176 if (unlikely (dbg->sectiondata[IDX_debug_pubnames] == NULL
178 >= dbg->sectiondata[IDX_debug_pubnames]->d_size)))
183 if (dbg->pubnames_nsets == 0 && unlikely (get_offsets (dbg) != 0))
191 offset = dbg->pubnames_sets[0].set_start;
195 for (cnt = 0; cnt + 1 < dbg->pubnames_nsets; ++cnt)
196 if ((Dwarf_Off) offset >= dbg->pubnames_sets[cnt].set_start)
199 < dbg->pubnames_sets[cnt + 1].set_start);
202 assert (cnt + 1 < dbg->pubnames_nsets);
206 = (unsigned char *) dbg->sectiondata[IDX_debug_pubnames]->d_buf;
212 gl.cu_offset = (dbg->pubnames_sets[cnt].cu_offset
213 + dbg->pubnames_sets[cnt].cu_header_size);
218 if (dbg->pubnames_sets[cnt].address_len == 4)
219 gl.die_offset = read_4ubyte_unaligned_inc (dbg, readp);
221 gl.die_offset = read_8ubyte_unaligned_inc (dbg, readp);
228 gl.die_offset += dbg->pubnames_sets[cnt].cu_offset;
234 if (callback (dbg, &gl, arg) != DWARF_CB_OK)
242 if (++cnt == dbg->pubnames_nsets)
246 startp = (unsigned char *) dbg->sectiondata[IDX_debug_pubnames]->d_buf;
247 readp = startp + dbg->pubnames_sets[cnt].set_start;