Lines Matching defs:wp_index
408 Status NativeRegisterContextWindows_WoW64::IsWatchpointHit(uint32_t wp_index,
412 if (wp_index >= NumSupportedHardwareWatchpoints())
420 is_hit = reg_value.GetAsUInt32() & (1 << wp_index);
426 uint32_t &wp_index, lldb::addr_t trap_addr) {
427 wp_index = LLDB_INVALID_INDEX32;
436 wp_index = i;
444 Status NativeRegisterContextWindows_WoW64::IsWatchpointVacant(uint32_t wp_index,
448 if (wp_index >= NumSupportedHardwareWatchpoints())
456 is_vacant = !(reg_value.GetAsUInt32() & (1 << (2 * wp_index)));
462 uint32_t wp_index) {
463 if (wp_index >= NumSupportedHardwareWatchpoints())
474 uint32_t bit_mask = 1 << wp_index;
488 bit_mask = (0x3 << (2 * wp_index)) | (0xF << (16 + 4 * wp_index));
534 for (uint32_t wp_index = 0; wp_index < NumSupportedHardwareWatchpoints();
535 ++wp_index) {
537 if (IsWatchpointVacant(wp_index, is_vacant).Fail())
541 if (!ClearHardwareWatchpoint(wp_index))
544 if (ApplyHardwareBreakpoint(wp_index, addr, size, watch_flags).Fail())
547 return wp_index;
554 uint32_t wp_index, lldb::addr_t addr, size_t size, uint32_t flags) {
561 uint32_t enable_bit = 1 << (2 * wp_index);
565 uint32_t rw_bits = flags << (16 + 4 * wp_index);
570 uint32_t size_bits = (size == 8 ? 0x2 : size - 1) << (18 + 4 * wp_index);
572 uint32_t bit_mask = (0x3 << (2 * wp_index)) | (0xF << (16 + 4 * wp_index));
581 error = DRWrite(lldb_dr0_i386 + wp_index, RegisterValue(addr));
589 NativeRegisterContextWindows_WoW64::GetWatchpointAddress(uint32_t wp_index) {
590 if (wp_index >= NumSupportedHardwareWatchpoints())
594 if (DRRead(lldb_dr0_i386 + wp_index, reg_value).Fail())