Browse Source

SymbolResolver: Use filename when path cannot be found

Uses bare filename to pass to `dlopen` when the full path cannot
be detected. This helps on systems where library paths are not the
same as $PATH.
pull/1752/head
Trung Nguyen 2 years ago
parent
commit
ddbfd64ba8
No known key found for this signature in database
GPG Key ID: 8C6357127C5190F6
  1. 4
      src/Runtime/SymbolResolver.cs

4
src/Runtime/SymbolResolver.cs

@ -80,8 +80,8 @@ namespace CppSharp @@ -80,8 +80,8 @@ namespace CppSharp
break;
}
}
if (!File.Exists(attempted))
continue;
if (attempted == null)
attempted = filename;
var ptr = loadImage(attempted);

Loading…
Cancel
Save