Lines Matching defs:wp_index

418 Status NativeRegisterContextWindows_i386::IsWatchpointHit(uint32_t wp_index,
422 if (wp_index >= NumSupportedHardwareWatchpoints())
430 is_hit = reg_value.GetAsUInt32() & (1 << wp_index);
436 uint32_t &wp_index, lldb::addr_t trap_addr) {
437 wp_index = LLDB_INVALID_INDEX32;
446 wp_index = i;
454 Status NativeRegisterContextWindows_i386::IsWatchpointVacant(uint32_t wp_index,
458 if (wp_index >= NumSupportedHardwareWatchpoints())
466 is_vacant = !(reg_value.GetAsUInt32() & (1 << (2 * wp_index)));
472 uint32_t wp_index) {
473 if (wp_index >= NumSupportedHardwareWatchpoints())
484 uint32_t bit_mask = 1 << wp_index;
498 bit_mask = (0x3 << (2 * wp_index)) | (0xF << (16 + 4 * wp_index));
544 for (uint32_t wp_index = 0; wp_index < NumSupportedHardwareWatchpoints();
545 ++wp_index) {
547 if (IsWatchpointVacant(wp_index, is_vacant).Fail())
551 if (!ClearHardwareWatchpoint(wp_index))
554 if (ApplyHardwareBreakpoint(wp_index, addr, size, watch_flags).Fail())
557 return wp_index;
564 uint32_t wp_index, lldb::addr_t addr, size_t size, uint32_t flags) {
571 uint32_t enable_bit = 1 << (2 * wp_index);
575 uint32_t rw_bits = flags << (16 + 4 * wp_index);
580 uint32_t size_bits = (size == 8 ? 0x2 : size - 1) << (18 + 4 * wp_index);
582 uint32_t bit_mask = (0x3 << (2 * wp_index)) | (0xF << (16 + 4 * wp_index));
591 error = DRWrite(lldb_dr0_i386 + wp_index, RegisterValue(addr));
599 NativeRegisterContextWindows_i386::GetWatchpointAddress(uint32_t wp_index) {
600 if (wp_index >= NumSupportedHardwareWatchpoints())
604 if (DRRead(lldb_dr0_i386 + wp_index, reg_value).Fail())