return true;
}
-bool import_DWARF_prototypes(struct protolib* plib, struct library* lib,
- Dwfl *dwfl)
+bool import_DWARF_prototypes(struct library* lib)
{
+ struct protolib* plib = lib->protolib;
+ Dwfl* dwfl = lib->dwfl;
+
if (plib == NULL) {
plib = protolib_cache_default(&g_protocache, lib->soname, 0);
if (plib == NULL) {
}
}
- return import(plib, lib, dwfl);
+ if (import(plib, lib, dwfl)) {
+ lib->protolib = plib;
+ return true;
+ }
+ return false;
}
/*
#include "prototype.h"
#include "library.h"
-bool import_DWARF_prototypes(struct protolib* plib, struct library* lib, Dwfl *dwfl);
+bool import_DWARF_prototypes(struct library* lib);
(filter_matches_library(options.plt_filter, lib ) ||
filter_matches_library(options.static_filter, lib ) ||
filter_matches_library(options.export_filter, lib )))
- import_DWARF_prototypes(lib->protolib, lib, lib->dwfl);
+ import_DWARF_prototypes(lib);
#endif
if (lib->protolib == NULL)