Skip to content

Commit dc157d8

Browse files
committed
[lldb] Call DestroyImpl for eStateInvalid
The process ends up in eStateInvalid when you attempt to interrupt a GDBRemoteProcess and it doesn't return in time. When that happens we really should be calling Destroy because otherwise we might end up in a situation where we receive a packet while or after we've torn down the main process.
1 parent ced1d0f commit dc157d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Target/Process.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,10 +665,10 @@ void Process::Finalize() {
665665
case eStateStepping:
666666
case eStateCrashed:
667667
case eStateSuspended:
668+
case eStateInvalid:
668669
DestroyImpl(false);
669670
break;
670671

671-
case eStateInvalid:
672672
case eStateUnloaded:
673673
case eStateDetached:
674674
case eStateExited:

0 commit comments

Comments
 (0)