summaryrefslogtreecommitdiffstats
path: root/src/java/jogamp/common/os/MacOSXDynamicLinkerImpl.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-02-12 06:06:59 +0100
committerSven Gothel <[email protected]>2012-02-12 06:06:59 +0100
commitbd5be69aee6987754f1cbf39f61280c5c72536b3 (patch)
treeb6894cbc2bc6e659ac0d921a9c50ff664269faac /src/java/jogamp/common/os/MacOSXDynamicLinkerImpl.java
parent67854df4b16ce92d0e792f3c693ced0a6470f6cc (diff)
DynamicLibraryBundle (enhancement)
- Hold DEBUG, DEBUG_LOOKUP in DynamicLookupHelper - Tool complete only if named tool's GetProcAddressFunc is avail - Allow no tool/glue lib's - Use DEBUG_LOCKUP for lockup symbol trace
Diffstat (limited to 'src/java/jogamp/common/os/MacOSXDynamicLinkerImpl.java')
-rwxr-xr-xsrc/java/jogamp/common/os/MacOSXDynamicLinkerImpl.java12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/java/jogamp/common/os/MacOSXDynamicLinkerImpl.java b/src/java/jogamp/common/os/MacOSXDynamicLinkerImpl.java
index c1be2c2..4eb381f 100755
--- a/src/java/jogamp/common/os/MacOSXDynamicLinkerImpl.java
+++ b/src/java/jogamp/common/os/MacOSXDynamicLinkerImpl.java
@@ -51,11 +51,19 @@ public class MacOSXDynamicLinkerImpl implements DynamicLinker {
}
public long lookupSymbol(long libraryHandle, String symbolName) {
- return dlsym(libraryHandle, symbolName);
+ final long addr = dlsym(libraryHandle, symbolName);
+ if(DEBUG_LOOKUP) {
+ System.err.println("MaxOSXDynamicLinkerImpl.lookupSymbol(0x"+Long.toHexString(libraryHandle)+", "+symbolName+") -> 0x"+Long.toHexString(addr));
+ }
+ return addr;
}
public long lookupSymbolGlobal(String symbolName) {
- return dlsym(RTLD_DEFAULT, symbolName);
+ final long addr = dlsym(RTLD_DEFAULT, symbolName);
+ if(DEBUG_LOOKUP) {
+ System.err.println("MacOSXDynamicLinkerImpl.lookupSymbolGlobal("+symbolName+") -> 0x"+Long.toHexString(addr));
+ }
+ return addr;
}
public void closeLibrary(long libraryHandle) {