diff options
author | Pavel Labath <labath@google.com> | 2017-01-20 14:17:16 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2017-01-20 14:17:16 +0000 |
commit | e0a5b575a6e6b4c70a8bc0e947109199e90bacac (patch) | |
tree | 2e838635d907678fff326145825ae22c11d0d98f /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h | |
parent | 2817b476e8b2356418f98bc3538d868214516b83 (diff) | |
download | bcm5719-llvm-e0a5b575a6e6b4c70a8bc0e947109199e90bacac.tar.gz bcm5719-llvm-e0a5b575a6e6b4c70a8bc0e947109199e90bacac.zip |
Prevent client from querying each thread's PC at each stop.
Summary:
The server was no longer sending the thread PCs the way the client
expected them.
I changed the server to send them back as a threadstop info field,
similar to the Apple version of the server.
I also changed the client to look for them there, before querying the
server.
I added a test to ensure the server doesn't stop sending them.
Reviewed By: labath
Differential Revision: https://reviews.llvm.org/D28880
Author: Jason Majors
llvm-svn: 292611
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h index 6423abc5583..1ecd58224c0 100644 --- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h +++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h @@ -417,6 +417,7 @@ private: void HandleStopReply() override; void HandleAsyncStructuredDataPacket(llvm::StringRef data) override; + void SetThreadPc(const lldb::ThreadSP &thread_sp, uint64_t index); using ModuleCacheKey = std::pair<std::string, std::string>; // KeyInfo for the cached module spec DenseMap. // The invariant is that all real keys will have the file and architecture |