aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
diff options
context:
space:
mode:
authorMohit K. Bhakkad <mohit.bhakkad@gmail.com>2015-10-09 15:05:45 +0000
committerMohit K. Bhakkad <mohit.bhakkad@gmail.com>2015-10-09 15:05:45 +0000
commit5df85cebfb7f1d53b3d76ca4b0b9161e14a136e7 (patch)
tree081a09e1a4be59f5e6430093287be7d0251295a3 /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
parent9f5013a138e16643b33c0df596002ef6b23fc9fb (diff)
downloadllvm-5df85cebfb7f1d53b3d76ca4b0b9161e14a136e7.zip
llvm-5df85cebfb7f1d53b3d76ca4b0b9161e14a136e7.tar.gz
llvm-5df85cebfb7f1d53b3d76ca4b0b9161e14a136e7.tar.bz2
[LLDB][MIPS] fix watchpoint searched on client side for same masked variables
Reviewers: clayborg, jingham. Subscribers: jaydeep, bhushan, sagar, nitesh.jain, brucem,lldb-commits. Differential Revision: http://reviews.llvm.org/D13548 llvm-svn: 249837
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
index 0994773..895fc05 100644
--- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
@@ -2105,6 +2105,8 @@ ProcessGDBRemote::SetThreadStopInfo (lldb::tid_t tid,
watch_id_t watch_id = LLDB_INVALID_WATCH_ID;
if (wp_addr != LLDB_INVALID_ADDRESS)
{
+ if (wp_hit_addr != LLDB_INVALID_ADDRESS)
+ wp_addr = wp_hit_addr;
WatchpointSP wp_sp = GetTarget().GetWatchpointList().FindByAddress(wp_addr);
if (wp_sp)
{