Browse Source

SymbolResolver: Use filename when path cannot be found (#1752)

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/1753/head
Trung Nguyen 2 years ago committed by GitHub
parent
commit
3978fb3be9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/Runtime/SymbolResolver.cs

4
src/Runtime/SymbolResolver.cs

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

Loading…
Cancel
Save