[Lldb-commits] [PATCH] Add handling of async notify packets.

Ewan Crawford ewan at codeplay.com
Thu Jun 18 10:00:38 PDT 2015


Hi clayborg,

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.

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D10544

Files:
  source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
  source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h
  source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
  source/Plugins/Process/gdb-remote/ProcessGDBRemote.h

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10544.27941.patch
Type: text/x-patch
Size: 16114 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150618/d27b33f5/attachment.bin>


More information about the lldb-commits mailing list