mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-10-23 13:41:04 +00:00
GP-0: Trying to resolve a GDB hang in CI.
This commit is contained in:
parent
164cb7d1ba
commit
b04391bca4
|
@ -15,7 +15,7 @@
|
|||
*/
|
||||
package agent.gdb.manager.impl;
|
||||
|
||||
import static ghidra.async.AsyncUtils.*;
|
||||
import static ghidra.async.AsyncUtils.loop;
|
||||
|
||||
import java.io.*;
|
||||
import java.util.*;
|
||||
|
@ -654,6 +654,9 @@ public class GdbManagerImpl implements GdbManager {
|
|||
if (gdbWaiter != null) {
|
||||
gdbWaiter.interrupt();
|
||||
}
|
||||
if (gdb != null) {
|
||||
gdb.destroyForcibly();
|
||||
}
|
||||
try {
|
||||
if (cliThread != null) {
|
||||
cliThread.interrupt();
|
||||
|
@ -667,9 +670,6 @@ public class GdbManagerImpl implements GdbManager {
|
|||
catch (IOException e) {
|
||||
Msg.error(this, "Problem closing PTYs to GDB.");
|
||||
}
|
||||
if (gdb != null) {
|
||||
gdb.destroyForcibly();
|
||||
}
|
||||
DebuggerModelTerminatingException reason =
|
||||
new DebuggerModelTerminatingException(GDB_IS_TERMINATING);
|
||||
cmdLock.dispose(reason);
|
||||
|
|
Loading…
Reference in New Issue
Block a user