Fixup for dl_iterate_phdr after bug 808121. r=me

This commit is contained in:
Mike Hommey 2012-11-07 16:45:48 +01:00
parent 3c0fa4c28c
commit e14946ab94

View File

@ -96,7 +96,7 @@ __wrap_dladdr(void *addr, Dl_info *info)
int int
__wrap_dl_iterate_phdr(dl_phdr_cb callback, void *data) __wrap_dl_iterate_phdr(dl_phdr_cb callback, void *data)
{ {
if (ElfLoader::Singleton.dbg) if (!ElfLoader::Singleton.dbg)
return -1; return -1;
for (ElfLoader::DebuggerHelper::iterator it = ElfLoader::Singleton.dbg.begin(); for (ElfLoader::DebuggerHelper::iterator it = ElfLoader::Singleton.dbg.begin();