mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-21 17:59:34 +00:00
Bug 674446 - Add a bit of logging to nsGlueLinkingOSX.cpp; r=glandium
This commit is contained in:
parent
b448cb7549
commit
0896eb7fb6
@ -252,6 +252,9 @@ XPCOMGlueLoad(const char *xpcomFile, GetFrozenFunctionsFunc *func)
|
||||
libHandle = dlopen(xpcomFile, RTLD_GLOBAL | RTLD_LAZY);
|
||||
if (libHandle) {
|
||||
AppendDependentLib(libHandle);
|
||||
} else {
|
||||
fprintf(stderr, "XPCOMGlueLoad error for file %s:\n%s\n", xpcomFile,
|
||||
dlerror());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -227,6 +227,16 @@ XPCOMGlueLoad(const char *xpcomFile, GetFrozenFunctionsFunc *func)
|
||||
NSADDIMAGE_OPTION_RETURN_ON_ERROR |
|
||||
NSADDIMAGE_OPTION_WITH_SEARCHING |
|
||||
NSADDIMAGE_OPTION_MATCH_FILENAME_BY_INSTALLNAME);
|
||||
|
||||
if (!lib) {
|
||||
NSLinkEditErrors linkEditError;
|
||||
int errorNum;
|
||||
const char *errorString;
|
||||
const char *fileName;
|
||||
NSLinkEditError(&linkEditError, &errorNum, &fileName, &errorString);
|
||||
fprintf(stderr, "XPCOMGlueLoad error %d:%d for file %s:\n%s\n",
|
||||
linkEditError, errorNum, fileName, errorString);
|
||||
}
|
||||
}
|
||||
|
||||
*func = (GetFrozenFunctionsFunc) LookupSymbol(lib, "_NS_GetFrozenFunctions");
|
||||
|
Loading…
x
Reference in New Issue
Block a user