mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-06 03:50:02 +02:00
GP-0: Fix lldb library loading logic. Accept either or.
This commit is contained in:
parent
1b35c85d45
commit
148c2d0c14
1 changed files with 3 additions and 1 deletions
|
@ -39,15 +39,17 @@ public class LLDBTest extends AbstractGhidraHeadlessIntegrationTest {
|
||||||
public static void assumeLibLoadable() {
|
public static void assumeLibLoadable() {
|
||||||
try {
|
try {
|
||||||
System.load("/usr/lib/liblldb.so");
|
System.load("/usr/lib/liblldb.so");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
catch (UnsatisfiedLinkError ex) {
|
catch (UnsatisfiedLinkError ex) {
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
System.load("/usr/lib/liblldb.dylib");
|
System.load("/usr/lib/liblldb.dylib");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
catch (UnsatisfiedLinkError ex) {
|
catch (UnsatisfiedLinkError ex) {
|
||||||
assumeTrue("lldb not available", false);
|
|
||||||
}
|
}
|
||||||
|
assumeTrue("lldb not available", false);
|
||||||
}
|
}
|
||||||
|
|
||||||
private SBDebugger sbd;
|
private SBDebugger sbd;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue