Add assertion for when no watchpoint found in POSIX watchnotify handler.

Also, ensure x86_64 watchpoint registers are initialized before they are accessed on the POSIX side.

llvm-svn: 184246
This commit is contained in:
Matt Kopec
2013-06-18 21:58:02 +00:00
parent c64623179b
commit 246a89562c
2 changed files with 21 additions and 12 deletions

View File

@@ -408,9 +408,9 @@ POSIXThread::WatchNotify(const ProcessMessage &message)
const WatchpointList &wp_list = target.GetWatchpointList();
lldb::WatchpointSP wp_sp = wp_list.FindByAddress(wp_monitor_addr);
if (wp_sp)
SetStopInfo (StopInfo::CreateStopReasonWithWatchpointID(*this,
wp_sp->GetID()));
assert(wp_sp.get() && "No watchpoint found");
SetStopInfo (StopInfo::CreateStopReasonWithWatchpointID(*this,
wp_sp->GetID()));
}
}