From cfc0935ed958e75d2d3d50730d57c8ce2178704f Mon Sep 17 00:00:00 2001 From: Jim Ingham Date: Fri, 27 Jul 2012 23:57:19 +0000 Subject: Added an lldb_private & equivalent SB API to send an AsyncInterrupt to the event loop. Convert from calling Halt in the lldb Driver.cpp's input reader's sigint handler to sending this AsyncInterrupt so it can be handled in the event loop. If you are attaching and get an async interrupt, abort the attach attempt. Also remember to destroy the process if get interrupted while attaching. Getting this to work also required handing the eBroadcastBitInterrupt in a few more places in Process WaitForEvent & friends. llvm-svn: 160903 --- lldb/source/Commands/CommandObjectProcess.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'lldb/source/Commands/CommandObjectProcess.cpp') diff --git a/lldb/source/Commands/CommandObjectProcess.cpp b/lldb/source/Commands/CommandObjectProcess.cpp index f45e926..97ed205 100644 --- a/lldb/source/Commands/CommandObjectProcess.cpp +++ b/lldb/source/Commands/CommandObjectProcess.cpp @@ -566,6 +566,7 @@ protected: else { result.AppendError ("attach failed: process did not stop (no such process or permission problem?)"); + process->Destroy(); result.SetStatus (eReturnStatusFailed); return false; } -- cgit v1.1