Changeset 103647 in webkit
- Timestamp:
- Dec 23, 2011 8:35:22 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r103643 r103647 1 2011-12-23 Dan Bernstein <mitz@apple.com> 2 3 Print dlerror() when dyld functions fail unexpectedly 4 https://bugs.webkit.org/show_bug.cgi?id=75185 5 6 Reviewed by Sam Weinig. 7 8 * platform/mac/SoftLinking.h: 9 1 10 2011-12-23 Sam Weinig <sam@webkit.org> 2 11 -
trunk/Source/WebCore/platform/mac/SoftLinking.h
r89748 r103647 34 34 { \ 35 35 static void* dylib = dlopen("/usr/lib/" #lib ".dylib", RTLD_NOW); \ 36 ASSERT (dylib); \36 ASSERT_WITH_MESSAGE(dylib, "%s", dlerror()); \ 37 37 return dylib; \ 38 38 } … … 42 42 { \ 43 43 static void* frameworkLibrary = dlopen("/System/Library/Frameworks/" #framework ".framework/" #framework, RTLD_NOW); \ 44 ASSERT (frameworkLibrary); \44 ASSERT_WITH_MESSAGE(frameworkLibrary, "%s", dlerror()); \ 45 45 return frameworkLibrary; \ 46 46 } … … 57 57 { \ 58 58 static void* frameworkLibrary = dlopen("/System/Library/Frameworks/CoreServices.framework/Frameworks/" #framework ".framework/" #framework, RTLD_NOW); \ 59 ASSERT (frameworkLibrary); \59 ASSERT_WITH_MESSAGE(frameworkLibrary, "%s", dlerror()); \ 60 60 return frameworkLibrary; \ 61 61 } … … 68 68 { \ 69 69 softLink##functionName = (resultType (*) parameterDeclarations) dlsym(framework##Library(), #functionName); \ 70 ASSERT (softLink##functionName); \70 ASSERT_WITH_MESSAGE(softLink##functionName, "%s", dlerror()); \ 71 71 return softLink##functionName parameterNames; \ 72 72 }\ … … 119 119 { \ 120 120 void** pointer = static_cast<void**>(dlsym(framework##Library(), #name)); \ 121 ASSERT (pointer); \121 ASSERT_WITH_MESSAGE(pointer, "%s", dlerror()); \ 122 122 pointer##name = static_cast<type>(*pointer); \ 123 123 get##name = name##Function; \ … … 157 157 { \ 158 158 void* constant = dlsym(framework##Library(), #name); \ 159 ASSERT (constant); \159 ASSERT_WITH_MESSAGE(constant, "%s", dlerror()); \ 160 160 constant##name = *static_cast<type*>(constant); \ 161 161 get##name = name##Function; \
Note: See TracChangeset
for help on using the changeset viewer.