summaryrefslogtreecommitdiffstats
path: root/lldb/tools/debugserver/source/MacOSX/MachThread.h
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-09-29 21:48:52 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-09-29 21:48:52 +0000
commita9b68f4dd6c99620f306309583ab114c2ae36160 (patch)
tree2b4368efe782d1bf7df2208580b5627c7708761a /lldb/tools/debugserver/source/MacOSX/MachThread.h
parent3f030ff0169ad768cdc27967d8953f89852d78eb (diff)
downloadbcm5719-llvm-a9b68f4dd6c99620f306309583ab114c2ae36160.tar.gz
bcm5719-llvm-a9b68f4dd6c99620f306309583ab114c2ae36160.zip
Modify the delegation chain from MachThreadList -> MachThread -> DNBArchProtocol so that when
the watchpoint state is changed, not only does the change propagate to all the thread instances, it also updates a global debug state, if chosen by the DNBArchProtocol derivative. Once implemented, the DNBArchProtocol derivative, also makes sure that when new thread comes along, it tries to inherit from the global debug state, if it is valid. Modify TestWatchpointMultipleThreads.py to test this functionality. llvm-svn: 140811
Diffstat (limited to 'lldb/tools/debugserver/source/MacOSX/MachThread.h')
-rw-r--r--lldb/tools/debugserver/source/MacOSX/MachThread.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/tools/debugserver/source/MacOSX/MachThread.h b/lldb/tools/debugserver/source/MacOSX/MachThread.h
index 2293e439589..b76e84872de 100644
--- a/lldb/tools/debugserver/source/MacOSX/MachThread.h
+++ b/lldb/tools/debugserver/source/MacOSX/MachThread.h
@@ -31,6 +31,7 @@
class DNBBreakpoint;
class MachProcess;
+class MachThreadList;
class MachThread
{
@@ -131,6 +132,9 @@ protected:
std::string m_dispatch_queue_name;
#endif
+private:
+ friend class MachThreadList;
+ void HardwareWatchpointStateChanged(); // Provide a chance to update the global view of the hardware watchpoint state
};
typedef std::tr1::shared_ptr<MachThread> MachThreadSP;
OpenPOWER on IntegriCloud