<rdar://problem/12720514> Sub-TLF: Provide service to profile the inferior
This allows client to query profiling states on the inferior.
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@168228 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp b/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
index c1560e4..e9f1abc 100644
--- a/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
+++ b/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
@@ -647,6 +647,16 @@
}
break;
+ case 'A':
+ // Async miscellaneous reply. Right now, only profile data is coming through this channel.
+ {
+ const std::string& profile_data = response.GetStringRef();
+ const char *data_cstr = profile_data.c_str();
+ data_cstr++; // Move beyond 'A'
+ process->BroadcastAsyncProfileData (data_cstr, profile_data.size()-1);
+ }
+ break;
+
case 'E':
// ERROR
state = eStateInvalid;