rewind the Link_map to get all loaded modules

This commit is contained in:
Doug MacEachern 2008-04-04 18:53:44 +00:00
parent 3cf07fbb30
commit f753b02aec
1 changed files with 4 additions and 0 deletions

View File

@ -826,6 +826,10 @@ int sigar_dlinfo_modules(sigar_t *sigar, sigar_proc_modules_t *procmods)
return status;
}
while (map->l_prev != NULL) {
map = map->l_prev;
}
do {
int status =
procmods->module_getter(procmods->data,