aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectProcess.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2012-03-31 00:10:30 +0000
committerGreg Clayton <gclayton@apple.com>2012-03-31 00:10:30 +0000
commit1517dd33d98e9ab203401c292308585126821e0b (patch)
tree8c48094a80c03da7fcbf144f5db0d0f726267b83 /lldb/source/Commands/CommandObjectProcess.cpp
parentd915503486efcf64b9d1b8b2268fbc6d675a80b2 (diff)
downloadllvm-1517dd33d98e9ab203401c292308585126821e0b.zip
llvm-1517dd33d98e9ab203401c292308585126821e0b.tar.gz
llvm-1517dd33d98e9ab203401c292308585126821e0b.tar.bz2
Patch from Viktor Kutuzov: delete the temporary process we created when "process connect" fails.
llvm-svn: 153790
Diffstat (limited to 'lldb/source/Commands/CommandObjectProcess.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectProcess.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/source/Commands/CommandObjectProcess.cpp b/lldb/source/Commands/CommandObjectProcess.cpp
index ca83986..0dbf54f 100644
--- a/lldb/source/Commands/CommandObjectProcess.cpp
+++ b/lldb/source/Commands/CommandObjectProcess.cpp
@@ -880,6 +880,7 @@ public:
{
result.AppendError(error.AsCString("Remote connect failed"));
result.SetStatus (eReturnStatusFailed);
+ target_sp->DeleteCurrentProcess();
return false;
}
}