diff options
| author | Han Ming Ong <hanming@apple.com> | 2012-11-17 00:21:04 +0000 |
|---|---|---|
| committer | Han Ming Ong <hanming@apple.com> | 2012-11-17 00:21:04 +0000 |
| commit | ab3b8b22a157f98bab6260ddf2b88b05dcb4cd1e (patch) | |
| tree | 9232dcea9c6bef57d9d10297647ad9eb322b79af /lldb/source/Plugins/Process/gdb-remote | |
| parent | f1b6177b62567cdda828b2cf25f04b7009274c91 (diff) | |
| download | bcm5719-llvm-ab3b8b22a157f98bab6260ddf2b88b05dcb4cd1e.tar.gz bcm5719-llvm-ab3b8b22a157f98bab6260ddf2b88b05dcb4cd1e.zip | |
<rdar://problem/12720514> Sub-TLF: Provide service to profile the inferior
This allows client to query profiling states on the inferior.
llvm-svn: 168228
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote')
| -rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp index c1560e44784..e9f1abc85c3 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp @@ -647,6 +647,16 @@ GDBRemoteCommunicationClient::SendContinuePacketAndWaitForResponse } 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; |

