===========================================================================
| 1301 | |
| 1302 | //=========================================================================== |
| 1303 | bool _CheckBreakpointValue ( Breakpoint_t *pBP, int nVal ) |
| 1304 | { |
| 1305 | bool bStatus = false; |
| 1306 | |
| 1307 | int iCmp = pBP->eOperator; |
| 1308 | switch (iCmp) |
| 1309 | { |
| 1310 | case BP_OP_LESS_EQUAL : |
| 1311 | if (nVal <= pBP->nAddress) |
| 1312 | bStatus = true; |
| 1313 | break; |
| 1314 | case BP_OP_LESS_THAN : |
| 1315 | if (nVal < pBP->nAddress) |
| 1316 | bStatus = true; |
| 1317 | break; |
| 1318 | case BP_OP_EQUAL : // Range is like C++ STL: [,) (inclusive,not-inclusive) |
| 1319 | if ((nVal >= pBP->nAddress) && ((UINT)nVal < (pBP->nAddress + pBP->nLength))) |
| 1320 | bStatus = true; |
| 1321 | break; |
| 1322 | case BP_OP_NOT_EQUAL : // Range is: (,] (not-inclusive, inclusive) |
| 1323 | if ((nVal < pBP->nAddress) || ((UINT)nVal >= (pBP->nAddress + pBP->nLength))) |
| 1324 | bStatus = true; |
| 1325 | break; |
| 1326 | case BP_OP_GREATER_THAN : |
| 1327 | if (nVal > pBP->nAddress) |
| 1328 | bStatus = true; |
| 1329 | break; |
| 1330 | case BP_OP_GREATER_EQUAL: |
| 1331 | if (nVal >= pBP->nAddress) |
| 1332 | bStatus = true; |
| 1333 | break; |
| 1334 | default: |
| 1335 | break; |
| 1336 | } |
| 1337 | |
| 1338 | if (!bStatus) |
| 1339 | return false; |
| 1340 | |
| 1341 | return _CheckBreakpointValueWithPrefix(pBP, nVal); |
| 1342 | } |
| 1343 | |
| 1344 | //=========================================================================== |
| 1345 | // Only called by DebuggerCheckMemBreakpoints() |
no test coverage detected