Lines Matching defs:wp_index

768 Status NativeRegisterContextNetBSD_x86_64::IsWatchpointHit(uint32_t wp_index,
770 if (wp_index >= NumSupportedHardwareWatchpoints())
783 is_hit = status_bits & (1 << wp_index);
789 uint32_t &wp_index, lldb::addr_t trap_addr) {
791 for (wp_index = 0; wp_index < num_hw_wps; ++wp_index) {
793 Status error = IsWatchpointHit(wp_index, is_hit);
795 wp_index = LLDB_INVALID_INDEX32;
801 wp_index = LLDB_INVALID_INDEX32;
805 Status NativeRegisterContextNetBSD_x86_64::IsWatchpointVacant(uint32_t wp_index,
807 if (wp_index >= NumSupportedHardwareWatchpoints())
820 is_vacant = !(control_bits & (1 << (2 * wp_index + 1)));
826 lldb::addr_t addr, size_t size, uint32_t watch_flags, uint32_t wp_index) {
828 if (wp_index >= NumSupportedHardwareWatchpoints())
845 Status error = IsWatchpointVacant(wp_index, is_vacant);
859 uint64_t enable_bit = 1 << (2 * wp_index + 1);
863 uint64_t rw_bits = watch_flags << (16 + 4 * wp_index);
868 uint64_t size_bits = (size == 8 ? 0x2 : size - 1) << (18 + 4 * wp_index);
870 uint64_t bit_mask = (0x3 << (2 * wp_index)) | (0xF << (16 + 4 * wp_index));
877 GetRegisterInfoAtIndex(lldb_dr0_x86_64 + wp_index);
887 ClearWatchpointHit(wp_index);
903 uint32_t wp_index) {
904 if (wp_index >= NumSupportedHardwareWatchpoints())
915 uint64_t bit_mask = 0x3 << (2 * wp_index);
921 Status NativeRegisterContextNetBSD_x86_64::ClearWatchpointHit(uint32_t wp_index) {
922 if (wp_index >= NumSupportedHardwareWatchpoints())
934 uint64_t bit_mask = 1 << wp_index;
969 for (uint32_t wp_index = 0; wp_index < num_hw_watchpoints; ++wp_index) {
971 Status error = IsWatchpointVacant(wp_index, is_vacant);
973 error = SetHardwareWatchpointWithIndex(addr, size, watch_flags, wp_index);
975 return wp_index;
986 NativeRegisterContextNetBSD_x86_64::GetWatchpointAddress(uint32_t wp_index) {
987 if (wp_index >= NumSupportedHardwareWatchpoints())
991 GetRegisterInfoAtIndex(lldb_dr0_x86_64 + wp_index);