GP-0: Fix lldb library loading logic. Accept either or.

This commit is contained in:
Dan 2023-08-14 13:31:40 -04:00
parent 1b35c85d45
commit 148c2d0c14

View file

@ -39,15 +39,17 @@ public class LLDBTest extends AbstractGhidraHeadlessIntegrationTest {
public static void assumeLibLoadable() {
try {
System.load("/usr/lib/liblldb.so");
return;
}
catch (UnsatisfiedLinkError ex) {
}
try {
System.load("/usr/lib/liblldb.dylib");
return;
}
catch (UnsatisfiedLinkError ex) {
assumeTrue("lldb not available", false);
}
assumeTrue("lldb not available", false);
}
private SBDebugger sbd;