diff options
author | Jim Ingham <jingham@apple.com> | 2012-07-27 23:57:19 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2012-07-27 23:57:19 +0000 |
commit | cfc0935ed958e75d2d3d50730d57c8ce2178704f (patch) | |
tree | 78155e58ebdae61441b292e943729ee4d284ed93 /lldb/scripts/Python/interface/SBProcess.i | |
parent | ae5bbfc0d00c89d2d63f37dce89804c4160cf50c (diff) | |
download | bcm5719-llvm-cfc0935ed958e75d2d3d50730d57c8ce2178704f.tar.gz bcm5719-llvm-cfc0935ed958e75d2d3d50730d57c8ce2178704f.zip |
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.
<rdar://problem/10792425>
llvm-svn: 160903
Diffstat (limited to 'lldb/scripts/Python/interface/SBProcess.i')
-rw-r--r-- | lldb/scripts/Python/interface/SBProcess.i | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/scripts/Python/interface/SBProcess.i b/lldb/scripts/Python/interface/SBProcess.i index 018e2c20c44..1adc238c469 100644 --- a/lldb/scripts/Python/interface/SBProcess.i +++ b/lldb/scripts/Python/interface/SBProcess.i @@ -206,6 +206,9 @@ public: lldb::SBError Signal (int signal); + void + SendAsyncInterrupt(); + %feature("autodoc", " Reads memory from the current process's address space and removes any traps that may have been inserted into the memory. It returns the byte |