mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-30 14:41:07 +08:00
bug fix: process removed after .kill or q from console
This commit is contained in:
+5
-1
@@ -100,7 +100,11 @@ public class DbgDebugEventCallbacksAdapter extends DebugEventCallbacksAdapter {
|
||||
if (DebugStatus.isInsideWait(argument)) {
|
||||
return DebugStatus.NO_CHANGE;
|
||||
}
|
||||
Msg.info(this, "***ExecutionStatus: " + DebugStatus.fromArgument(argument));
|
||||
DebugStatus status = DebugStatus.fromArgument(argument);
|
||||
Msg.info(this, "***ExecutionStatus: " + status);
|
||||
if (status.equals(DebugStatus.NO_DEBUGGEE)) {
|
||||
event.setState(DbgState.EXIT);
|
||||
}
|
||||
return manager.processEvent(event);
|
||||
}
|
||||
if (flags.contains(ChangeEngineState.BREAKPOINTS)) {
|
||||
|
||||
+7
@@ -196,6 +196,13 @@ public class DbgModelTargetProcessImpl extends DbgModelTargetObjectImpl
|
||||
setExecutionState(TargetExecutionState.TERMINATED, "Exited");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onExit() {
|
||||
super.onExit();
|
||||
DbgModelTargetProcessContainer processes = (DbgModelTargetProcessContainer) getImplParent();
|
||||
processes.processRemoved(process.getId(), DbgCause.Causes.UNCLAIMED);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CompletableFuture<Void> select() {
|
||||
DbgManagerImpl manager = getManager();
|
||||
|
||||
Reference in New Issue
Block a user