mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 02:39:44 +02:00
GP-994: Improve error reporting when GADP-based models fail to start
This commit is contained in:
parent
7a92882ba3
commit
b4d2cb75ba
14 changed files with 80 additions and 16 deletions
|
@ -25,6 +25,7 @@ import java.util.concurrent.ExecutionException;
|
|||
import org.apache.commons.lang3.exception.ExceptionUtils;
|
||||
|
||||
import agent.dbgeng.gadp.impl.DbgEngGadpServerImpl;
|
||||
import ghidra.async.AsyncUtils;
|
||||
import ghidra.dbg.agent.AgentWindow;
|
||||
import ghidra.util.Msg;
|
||||
|
||||
|
@ -84,7 +85,8 @@ public interface DbgEngGadpServer extends AutoCloseable {
|
|||
try (DbgEngGadpServer server = newInstance(bindTo)) {
|
||||
//TODO: fix/test the debugConnect case when args are passed
|
||||
server.startDbgEng(dbgengArgs.toArray(new String[] {})).exceptionally(e -> {
|
||||
Msg.error(this, "Error starting dbgeng/GADP", e);
|
||||
e = AsyncUtils.unwrapThrowable(e);
|
||||
Msg.error(this, "Error starting dbgeng/GADP: " + e);
|
||||
System.exit(-1);
|
||||
return null;
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue