/freebsd-src/contrib/llvm-project/lldb/source/Plugins/Process/Utility/ |
H A D | NativeRegisterContextDBReg_x86.cpp | 18 static inline uint64_t GetStatusBit(uint32_t wp_index) { in GetStatusBit() argument 21 return 1ULL << wp_index; in GetStatusBit() 25 static inline uint64_t GetEnableBit(uint32_t wp_index) { in GetEnableBit() argument 30 return 1ULL << (2 * wp_index + 1); in GetEnableBit() 34 static inline uint64_t GetBothEnableBitMask(uint32_t wp_index) { in GetBothEnableBitMask() argument 37 return 3ULL << (2 * wp_index + 1); in GetBothEnableBitMask() 42 uint32_t wp_index) { in GetWatchTypeBits() argument 50 return static_cast<uint64_t>(watch_flags) << (16 + 4 * wp_index); in GetWatchTypeBits() 54 static inline uint64_t GetWatchSizeBits(uint32_t size, uint32_t wp_index) { in GetWatchSizeBits() argument 67 << (18 + 4 * wp_index); in GetWatchSizeBits() [all …]
|
H A D | NativeRegisterContextDBReg_arm64.cpp | 236 uint32_t control_value = 0, wp_index = 0; in SetHardwareWatchpoint() local 281 wp_index = LLDB_INVALID_INDEX32; in SetHardwareWatchpoint() 284 wp_index = i; // Mark last free slot in SetHardwareWatchpoint() 290 if (wp_index == LLDB_INVALID_INDEX32) in SetHardwareWatchpoint() 294 m_hwp_regs[wp_index].real_addr = real_addr; in SetHardwareWatchpoint() 295 m_hwp_regs[wp_index].address = addr; in SetHardwareWatchpoint() 296 m_hwp_regs[wp_index].control = control_value; in SetHardwareWatchpoint() 302 m_hwp_regs[wp_index].address = 0; in SetHardwareWatchpoint() 303 m_hwp_regs[wp_index].control &= ~g_enable_bit; in SetHardwareWatchpoint() 311 return wp_index; in SetHardwareWatchpoint() [all …]
|
H A D | NativeRegisterContextDBReg_x86.h | 25 Status IsWatchpointHit(uint32_t wp_index, bool &is_hit) override; 27 Status GetWatchpointHitIndex(uint32_t &wp_index, 30 Status IsWatchpointVacant(uint32_t wp_index, bool &is_vacant) override; 32 bool ClearHardwareWatchpoint(uint32_t wp_index) override; 34 Status ClearWatchpointHit(uint32_t wp_index) override; 40 uint32_t wp_index); 45 lldb::addr_t GetWatchpointAddress(uint32_t wp_index) override;
|
H A D | NativeRegisterContextDBReg_arm64.h | 43 Status GetWatchpointHitIndex(uint32_t &wp_index, 46 lldb::addr_t GetWatchpointHitAddress(uint32_t wp_index) override; 48 lldb::addr_t GetWatchpointAddress(uint32_t wp_index) override; 50 uint32_t GetWatchpointSize(uint32_t wp_index); 52 bool WatchpointIsEnabled(uint32_t wp_index);
|
/freebsd-src/contrib/llvm-project/lldb/source/Plugins/Process/FreeBSD/ |
H A D | NativeThreadFreeBSD.cpp | 117 void NativeThreadFreeBSD::SetStoppedByWatchpoint(uint32_t wp_index) { in SetStoppedByWatchpoint() argument 118 lldbassert(wp_index != LLDB_INVALID_INDEX32 && "wp_index cannot be invalid"); in SetStoppedByWatchpoint() 121 ostr << GetRegisterContext().GetWatchpointAddress(wp_index) << " "; in SetStoppedByWatchpoint() 122 ostr << wp_index; in SetStoppedByWatchpoint() 124 ostr << " " << GetRegisterContext().GetWatchpointHitAddress(wp_index); in SetStoppedByWatchpoint() 259 uint32_t wp_index = in SetWatchpoint() local 261 if (wp_index == LLDB_INVALID_INDEX32) in SetWatchpoint() 263 m_watchpoint_index_map.insert({addr, wp_index}); in SetWatchpoint() 271 uint32_t wp_index in RemoveWatchpoint() local [all...] |
H A D | NativeThreadFreeBSD.h | 66 void SetStoppedByWatchpoint(uint32_t wp_index);
|
H A D | NativeProcessFreeBSD.cpp | 344 uint32_t wp_index = LLDB_INVALID_INDEX32; in MonitorSIGTRAP() 346 wp_index, reinterpret_cast<uintptr_t>(info.pl_siginfo.si_addr)); in MonitorSIGTRAP() 352 if (wp_index != LLDB_INVALID_INDEX32) { in MonitorSIGTRAP() 353 regctx.ClearWatchpointHit(wp_index); in MonitorSIGTRAP() 354 thread->SetStoppedByWatchpoint(wp_index); in MonitorSIGTRAP() 326 uint32_t wp_index = LLDB_INVALID_INDEX32; MonitorSIGTRAP() local
|
/freebsd-src/contrib/llvm-project/lldb/source/Plugins/Process/NetBSD/ |
H A D | NativeThreadNetBSD.cpp | 117 void NativeThreadNetBSD::SetStoppedByWatchpoint(uint32_t wp_index) { in SetStoppedByWatchpoint() argument 118 lldbassert(wp_index != LLDB_INVALID_INDEX32 && "wp_index cannot be invalid"); in SetStoppedByWatchpoint() 121 ostr << GetRegisterContext().GetWatchpointAddress(wp_index) << " "; in SetStoppedByWatchpoint() 122 ostr << wp_index; in SetStoppedByWatchpoint() 124 ostr << " " << GetRegisterContext().GetWatchpointHitAddress(wp_index); in SetStoppedByWatchpoint() 271 uint32_t wp_index = in SetWatchpoint() local 273 if (wp_index == LLDB_INVALID_INDEX32) in SetWatchpoint() 275 m_watchpoint_index_map.insert({addr, wp_index}); in SetWatchpoint() 283 uint32_t wp_index in RemoveWatchpoint() local [all...] |
H A D | NativeThreadNetBSD.h | 61 void SetStoppedByWatchpoint(uint32_t wp_index);
|
H A D | NativeProcessNetBSD.cpp | 332 uint32_t wp_index = LLDB_INVALID_INDEX32; in MonitorSIGTRAP() local 334 wp_index, (uintptr_t)info.psi_siginfo.si_addr); in MonitorSIGTRAP() 340 if (wp_index != LLDB_INVALID_INDEX32) { in MonitorSIGTRAP() 341 thread->SetStoppedByWatchpoint(wp_index); in MonitorSIGTRAP() 342 regctx.ClearWatchpointHit(wp_index); in MonitorSIGTRAP()
|
/freebsd-src/contrib/llvm-project/lldb/include/lldb/Host/common/ |
H A D | NativeRegisterContext.h | 84 virtual Status IsWatchpointHit(uint32_t wp_index, bool &is_hit); 86 virtual Status GetWatchpointHitIndex(uint32_t &wp_index, 89 virtual Status IsWatchpointVacant(uint32_t wp_index, bool &is_vacant); 91 virtual lldb::addr_t GetWatchpointAddress(uint32_t wp_index); 102 virtual lldb::addr_t GetWatchpointHitAddress(uint32_t wp_index);
|
/freebsd-src/contrib/llvm-project/lldb/source/Host/common/ |
H A D | NativeRegisterContext.cpp | 282 Status NativeRegisterContext::IsWatchpointHit(uint32_t wp_index, bool &is_hit) { in IsWatchpointHit() argument 287 Status NativeRegisterContext::GetWatchpointHitIndex(uint32_t &wp_index, in GetWatchpointHitIndex() argument 289 wp_index = LLDB_INVALID_INDEX32; in GetWatchpointHitIndex() 293 Status NativeRegisterContext::IsWatchpointVacant(uint32_t wp_index, in IsWatchpointVacant() argument 299 lldb::addr_t NativeRegisterContext::GetWatchpointAddress(uint32_t wp_index) { in GetWatchpointAddress() argument 303 lldb::addr_t NativeRegisterContext::GetWatchpointHitAddress(uint32_t wp_index) { in GetWatchpointHitAddress() argument
|