llvm-project/lldb
Ewan Crawford 76df2881ba Add handling of async notify packets
This patch adds a listener to the AynscThread in ProcessGDBRemote, specifically for dealing with any async notification packets.

From the broadcast our listener receives we can process the notify packet from the event data. A handler function then sets the thread stop info from this packet, and updates lldb by setting the process private state to stopped. Allowing the async thread to go back to sleep and getting the main thread to handle the implications of a state change.

When sending a vCont in nonstop mode we also get a different reply from all-stop mode, an OK response as opposed to a stop reply. So a condition is added to handle this and set the process state without the stop-reply data.

Reviewers: clayborg

Subscribers: lldb-commits, labath, ted, aidan.dodds, deepak2427

Differential Revision: http://reviews.llvm.org/D10544

llvm-svn: 240397
2015-06-23 12:32:06 +00:00
..
cmake [LLDB][MIPS] ABI Plugin for MIPS64 2015-06-19 04:25:07 +00:00
docs Add a new wart, I mean feature, on to gdb-remote protocol: compression. 2015-06-18 21:46:06 +00:00
examples Fix a variety of typos. 2015-06-18 05:27:05 +00:00
include [LLDB][MIPS] MIPS32 branch emulation and single-stepping 2015-06-23 03:37:08 +00:00
lib [LLDB][MIPS] ABI Plugin for MIPS64 2015-06-19 04:25:07 +00:00
lit Create a check-lldb-unit target to run unit tests. 2015-03-13 20:55:07 +00:00
lldb.xcodeproj Fix the MacOSX build to include the Mips64 ABI plug-in. 2015-06-19 20:08:36 +00:00
lldb.xcworkspace Working on getting the OSX build green 2015-05-12 02:20:27 +00:00
resources Bump major vers # in xcode project file from 330 to 340. 2015-03-06 00:45:01 +00:00
scripts Fix a variety of typos. 2015-06-18 05:27:05 +00:00
source Add handling of async notify packets 2015-06-23 12:32:06 +00:00
test Adding some more flakey tests to the XFAIL list 2015-06-22 20:54:14 +00:00
tools Revert "Reduced packet counts to the remote GDB server where possible." 2015-06-23 03:17:01 +00:00
unittests Including <thread> with MSVC is buggy, use a workaround here. 2015-05-28 19:56:43 +00:00
utils
www Fix a variety of typos. 2015-06-18 05:27:05 +00:00
.arcconfig
.clang-format Update build instructions / coding conventions. 2015-03-10 23:22:25 +00:00
.gitignore Fix .gitignore to ignore symlinks. 2015-03-31 00:03:00 +00:00
CMakeLists.txt Use the debugginess of the python interpreter when symlinking _lldb.pyd. 2015-04-22 22:53:18 +00:00
CODE_OWNERS.txt Convert CRLF to LF in CODE_OWNERS.txt 2015-03-23 14:00:54 +00:00
INSTALL.txt Revert "git-svn test commit" 2014-11-18 22:45:59 +00:00
LICENSE.TXT
Makefile Remove the -Wno-unused-function option. We are clean 2014-09-09 07:49:15 +00:00