summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/Linux/NativeThreadLinux.h
diff options
context:
space:
mode:
authorChaoren Lin <chaorenl@google.com>2015-02-03 01:51:47 +0000
committerChaoren Lin <chaorenl@google.com>2015-02-03 01:51:47 +0000
commit18fe6404f9bc379045f4bce801f1c7113cddc6a0 (patch)
treeefb591cfed07504ecae67514806e536c98cc8153 /lldb/source/Plugins/Process/Linux/NativeThreadLinux.h
parent2fe1d0abc2434c359c3761910cebceb00a5743bf (diff)
downloadbcm5719-llvm-18fe6404f9bc379045f4bce801f1c7113cddc6a0.tar.gz
bcm5719-llvm-18fe6404f9bc379045f4bce801f1c7113cddc6a0.zip
Implement setting and clearing watchpoints.
llvm-svn: 227930
Diffstat (limited to 'lldb/source/Plugins/Process/Linux/NativeThreadLinux.h')
-rw-r--r--lldb/source/Plugins/Process/Linux/NativeThreadLinux.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Process/Linux/NativeThreadLinux.h b/lldb/source/Plugins/Process/Linux/NativeThreadLinux.h
index 7233b30237b..2519b5b1da0 100644
--- a/lldb/source/Plugins/Process/Linux/NativeThreadLinux.h
+++ b/lldb/source/Plugins/Process/Linux/NativeThreadLinux.h
@@ -13,6 +13,8 @@
#include "lldb/lldb-private-forward.h"
#include "lldb/Host/common/NativeThreadProtocol.h"
+#include <map>
+
namespace lldb_private
{
class NativeProcessLinux;
@@ -73,9 +75,15 @@ namespace lldb_private
void
SetStoppedByBreakpoint ();
+ void
+ SetStoppedByWatchpoint ();
+
bool
IsStoppedAtBreakpoint ();
+ bool
+ IsStoppedAtWatchpoint ();
+
void
SetStoppedByTrace ();
@@ -101,6 +109,8 @@ namespace lldb_private
ThreadStopInfo m_stop_info;
NativeRegisterContextSP m_reg_context_sp;
std::string m_stop_description;
+ using WatchpointIndexMap = std::map<lldb::addr_t, uint32_t>;
+ WatchpointIndexMap m_watchpoint_index_map;
};
}
OpenPOWER on IntegriCloud