mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-02-18 16:40:08 +00:00
bug fix: process removed after .kill or q from console
This commit is contained in:
parent
73848ddea9
commit
29fe88b811
@ -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)) {
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user