Lines Matching refs:dwfl
140 integrated_memory_callback (Dwfl *dwfl, int ndx, in integrated_memory_callback() argument
158 return (*info->memory_callback) (dwfl, ndx, buffer, buffer_available, in integrated_memory_callback()
169 return (*info->memory_callback) (dwfl, ndx, buffer, buffer_available, in integrated_memory_callback()
173 if ((*info->memory_callback) (dwfl, ndx, &info->buffer, buffer_available, in integrated_memory_callback()
183 (void) INTUSE(dwfl_addrsegment) (dwfl, vaddr, &mod); in integrated_memory_callback()
196 (dwfl, 0, buffer, buffer_available, in integrated_memory_callback()
246 Dwfl *dwfl, GElf_Addr r_debug_vaddr, in report_r_debug() argument
259 (void) (*memory_callback) (dwfl, -1, &buffer, &buffer_available, 0, 0, in report_r_debug()
277 int segndx = INTUSE(dwfl_addrsegment) (dwfl, vaddr, NULL); in report_r_debug()
279 || unlikely (! (*memory_callback) (dwfl, segndx, in report_r_debug()
315 Dwfl_Module **lastmodp = &dwfl->modulelist; in report_r_debug()
323 while (next != 0 && ++iterations < dwfl->lookup_elts) in report_r_debug()
354 int segndx = INTUSE(dwfl_addrsegment) (dwfl, l_name, NULL); in report_r_debug()
356 && (*memory_callback) (dwfl, segndx, in report_r_debug()
366 && dwfl->user_core != NULL in report_r_debug()
367 && dwfl->user_core->executable_for_core != NULL) in report_r_debug()
368 name = dwfl->user_core->executable_for_core; in report_r_debug()
421 int segndx = INTUSE(dwfl_addrsegment) (dwfl, in report_r_debug()
424 if (! (*memory_callback) (dwfl, segndx, in report_r_debug()
451 mod = __libdwfl_report_elf (dwfl, basename (name), in report_r_debug()
490 lastmodp = &dwfl->modulelist; in report_r_debug()
540 GElf_Xword align = mod->dwfl->segment_align; in consider_executable()
596 free (mod->dwfl->lookup_module); in consider_executable()
597 mod->dwfl->lookup_module = NULL; in consider_executable()
632 int segndx = INTUSE(dwfl_addrsegment) (mod->dwfl, d_val_vaddr, NULL); in consider_executable()
634 if ((*memory_callback) (mod->dwfl, segndx, in consider_executable()
653 (*memory_callback) (mod->dwfl, -1, &buffer, &buffer_available, 0, 0, in consider_executable()
675 find_executable (Dwfl *dwfl, GElf_Addr at_phdr, GElf_Addr at_entry, in find_executable() argument
680 for (Dwfl_Module *mod = dwfl->modulelist; mod != NULL; mod = mod->next) in find_executable()
696 dwfl_link_map_report (Dwfl *dwfl, const void *auxv, size_t auxv_size, in dwfl_link_map_report() argument
733 && (dwfl->segment_align == 0 \ in dwfl_link_map_report()
734 || val < dwfl->segment_align)) \ in dwfl_link_map_report()
735 dwfl->segment_align = val; \ in dwfl_link_map_report()
769 && ((vaddr & (dwfl->segment_align - 1)) in dwfl_link_map_report()
770 == (phdr & (dwfl->segment_align - 1)))) in dwfl_link_map_report()
789 int phdr_segndx = INTUSE(dwfl_addrsegment) (dwfl, phdr, &phdr_mod); in dwfl_link_map_report()
797 bool in_ok = (*memory_callback) (dwfl, phdr_segndx, &in.d_buf, in dwfl_link_map_report()
802 && dwfl->user_core != NULL in dwfl_link_map_report()
803 && dwfl->user_core->executable_for_core != NULL) in dwfl_link_map_report()
811 int fd = open (dwfl->user_core->executable_for_core, O_RDONLY); in dwfl_link_map_report()
917 (*memory_callback) (dwfl, -1, &in.d_buf, &in.d_size, 0, 0, in dwfl_link_map_report()
936 ? find_executable (dwfl, phdr, entry, in dwfl_link_map_report()
959 int dyn_segndx = dwfl_addrsegment (dwfl, dyn_vaddr, NULL); in dwfl_link_map_report()
960 if ((*memory_callback) (dwfl, dyn_segndx, &in.d_buf, &in.d_size, in dwfl_link_map_report()
1006 (*memory_callback) (dwfl, -1, &in.d_buf, &in.d_size, 0, 0, in dwfl_link_map_report()
1015 r_debug_vaddr = find_executable (dwfl, 0, 0, &elfclass, &elfdata, in dwfl_link_map_report()
1033 return report_r_debug (elfclass, elfdata, dwfl, r_debug_vaddr, in dwfl_link_map_report()