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/source/Plugins | |
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/source/Plugins')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp index 15f513d272a..35994bcb2d7 100644 --- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp @@ -1868,7 +1868,7 @@ ProcessGDBRemote::DoDestroy () { if (log) log->Printf ("ProcessGDBRemote::DoDestroy - failed to send k packet"); - exit_string.assign ("killing while attaching."); + exit_string.assign ("killed or interrupted while attaching."); } } else |