Minor change: compare the return val of DNBWatchpointSet() against INVALID_NUB_WATCH_ID

to determine its validity.

llvm-svn: 139209
This commit is contained in:
Johnny Chen 2011-09-07 00:09:23 +00:00
parent 9de7a7db26
commit 9d814e0dd2
1 changed files with 2 additions and 2 deletions

View File

@ -2927,10 +2927,10 @@ RNBRemote::HandlePacket_z (const char *p)
}
else
{
// We do NOT already have a breakpoint at this address, So lets
// We do NOT already have a watchpoint at this address, So lets
// create one.
nub_watch_t watch_id = DNBWatchpointSet (pid, addr, byte_size, watch_flags, hardware);
if (watch_id != INVALID_NUB_BREAK_ID)
if (watch_id != INVALID_NUB_WATCH_ID)
{
// We successfully created a watchpoint, now lets full out
// a ref count structure with the watch_id and add it to our