Home
last modified time | relevance | path

Searched refs:hw_index (Results 1 – 25 of 38) sorted by relevance

12

/external/llvm-project/lldb/source/Plugins/Process/FreeBSD/
DRegisterContextPOSIXProcessMonitor_x86.cpp411 uint32_t hw_index; in SetHardwareWatchpoint() local
413 for (hw_index = 0; hw_index < num_hw_watchpoints; ++hw_index) { in SetHardwareWatchpoint()
414 if (IsWatchpointVacant(hw_index)) in SetHardwareWatchpoint()
415 return SetHardwareWatchpointWithIndex(addr, size, read, write, hw_index); in SetHardwareWatchpoint()
422 uint32_t hw_index) { in ClearHardwareWatchpoint() argument
423 if (hw_index < NumSupportedHardwareWatchpoints()) { in ClearHardwareWatchpoint()
428 current_dr7_bits.GetAsUInt64() & ~(3 << (2 * hw_index)); in ClearHardwareWatchpoint()
484 uint32_t hw_index) { in IsWatchpointHit() argument
496 if (hw_index < NumSupportedHardwareWatchpoints()) { in IsWatchpointHit()
501 is_hit = val & (1 << hw_index); in IsWatchpointHit()
[all …]
DRegisterContextPOSIXProcessMonitor_mips64.cpp193 uint32_t hw_index; in SetHardwareWatchpoint() local
195 for (hw_index = 0; hw_index < num_hw_watchpoints; ++hw_index) { in SetHardwareWatchpoint()
196 if (IsWatchpointVacant(hw_index)) in SetHardwareWatchpoint()
197 return SetHardwareWatchpointWithIndex(addr, size, read, write, hw_index); in SetHardwareWatchpoint()
204 uint32_t hw_index) { in ClearHardwareWatchpoint() argument
236 uint32_t hw_index) { in IsWatchpointHit() argument
245 uint32_t hw_index) { in GetWatchpointAddress() argument
250 uint32_t hw_index) { in IsWatchpointVacant() argument
255 addr_t addr, size_t size, bool read, bool write, uint32_t hw_index) { in SetHardwareWatchpointWithIndex() argument
DRegisterContextPOSIXProcessMonitor_arm.cpp194 uint32_t hw_index; in SetHardwareWatchpoint() local
196 for (hw_index = 0; hw_index < num_hw_watchpoints; ++hw_index) { in SetHardwareWatchpoint()
197 if (IsWatchpointVacant(hw_index)) in SetHardwareWatchpoint()
198 return SetHardwareWatchpointWithIndex(addr, size, read, write, hw_index); in SetHardwareWatchpoint()
205 uint32_t hw_index) { in ClearHardwareWatchpoint() argument
234 uint32_t hw_index) { in IsWatchpointHit() argument
243 uint32_t hw_index) { in GetWatchpointAddress() argument
248 uint32_t hw_index) { in IsWatchpointVacant() argument
253 addr_t addr, size_t size, bool read, bool write, uint32_t hw_index) { in SetHardwareWatchpointWithIndex() argument
DRegisterContextPOSIXProcessMonitor_arm64.cpp203 uint32_t hw_index; in SetHardwareWatchpoint() local
205 for (hw_index = 0; hw_index < num_hw_watchpoints; ++hw_index) { in SetHardwareWatchpoint()
206 if (IsWatchpointVacant(hw_index)) in SetHardwareWatchpoint()
207 return SetHardwareWatchpointWithIndex(addr, size, read, write, hw_index); in SetHardwareWatchpoint()
214 uint32_t hw_index) { in ClearHardwareWatchpoint() argument
241 uint32_t hw_index) { in IsWatchpointHit() argument
250 uint32_t hw_index) { in GetWatchpointAddress() argument
255 uint32_t hw_index) { in IsWatchpointVacant() argument
260 lldb::addr_t addr, size_t size, bool read, bool write, uint32_t hw_index) { in SetHardwareWatchpointWithIndex() argument
DRegisterContextPOSIXProcessMonitor_powerpc.cpp207 uint32_t hw_index; in SetHardwareWatchpoint() local
209 for (hw_index = 0; hw_index < num_hw_watchpoints; ++hw_index) { in SetHardwareWatchpoint()
210 if (IsWatchpointVacant(hw_index)) in SetHardwareWatchpoint()
211 return SetHardwareWatchpointWithIndex(addr, size, read, write, hw_index); in SetHardwareWatchpoint()
218 uint32_t hw_index) { in ClearHardwareWatchpoint() argument
248 uint32_t hw_index) { in IsWatchpointHit() argument
257 uint32_t hw_index) { in GetWatchpointAddress() argument
262 uint32_t hw_index) { in IsWatchpointVacant() argument
267 addr_t addr, size_t size, bool read, bool write, uint32_t hw_index) { in SetHardwareWatchpointWithIndex() argument
DRegisterContextPOSIXProcessMonitor_x86.h52 bool ClearHardwareWatchpoint(uint32_t hw_index) override;
61 bool IsWatchpointHit(uint32_t hw_index) override;
65 lldb::addr_t GetWatchpointAddress(uint32_t hw_index) override;
67 bool IsWatchpointVacant(uint32_t hw_index) override;
70 bool write, uint32_t hw_index) override;
DRegisterContextPOSIXProcessMonitor_arm64.h51 bool ClearHardwareWatchpoint(uint32_t hw_index) override;
60 bool IsWatchpointHit(uint32_t hw_index) override;
64 lldb::addr_t GetWatchpointAddress(uint32_t hw_index) override;
66 bool IsWatchpointVacant(uint32_t hw_index) override;
69 bool write, uint32_t hw_index) override;
DRegisterContextPOSIXProcessMonitor_powerpc.h58 bool ClearHardwareWatchpoint(uint32_t hw_index) override;
67 bool IsWatchpointHit(uint32_t hw_index) override;
71 lldb::addr_t GetWatchpointAddress(uint32_t hw_index) override;
73 bool IsWatchpointVacant(uint32_t hw_index) override;
76 bool write, uint32_t hw_index) override;
DRegisterContextPOSIXProcessMonitor_arm.h50 bool ClearHardwareWatchpoint(uint32_t hw_index) override;
59 bool IsWatchpointHit(uint32_t hw_index) override;
63 lldb::addr_t GetWatchpointAddress(uint32_t hw_index) override;
65 bool IsWatchpointVacant(uint32_t hw_index) override;
68 bool write, uint32_t hw_index) override;
DRegisterContextPOSIXProcessMonitor_mips64.h54 bool ClearHardwareWatchpoint(uint32_t hw_index) override;
63 bool IsWatchpointHit(uint32_t hw_index) override;
67 lldb::addr_t GetWatchpointAddress(uint32_t hw_index) override;
69 bool IsWatchpointVacant(uint32_t hw_index) override;
72 bool write, uint32_t hw_index) override;
DRegisterContextPOSIX.h38 virtual bool IsWatchpointHit(uint32_t hw_index) = 0;
45 virtual lldb::addr_t GetWatchpointAddress(uint32_t hw_index) = 0;
47 virtual bool IsWatchpointVacant(uint32_t hw_index) = 0;
51 uint32_t hw_index) = 0;
/external/llvm-project/lldb/tools/debugserver/source/MacOSX/arm64/
DDNBArchImplARM64.cpp495 uint32_t hw_index = GetHardwareWatchpointHit(addr); in NotifyException() local
504 hw_index, (uint64_t)addr); in NotifyException()
507 if (LoHi[i] != 0 && LoHi[i] == hw_index && LoHi[i] != i && in NotifyException()
517 if (hw_index != INVALID_NUB_HW_INDEX) { in NotifyException()
519 m_watchpoint_hw_index = hw_index; in NotifyException()
522 exc.exc_data.push_back(hw_index); in NotifyException()
961 bool DNBArchMachARM64::ReenableHardwareWatchpoint(uint32_t hw_index) { in ReenableHardwareWatchpoint() argument
965 if (hw_index < NumSupportedHardwareWatchpoints() && LoHi[hw_index]) { in ReenableHardwareWatchpoint()
966 return ReenableHardwareWatchpoint_helper(hw_index) && in ReenableHardwareWatchpoint()
967 ReenableHardwareWatchpoint_helper(LoHi[hw_index]); in ReenableHardwareWatchpoint()
[all …]
DDNBArchImplARM64.h218 bool IsWatchpointEnabled(const DBG &debug_state, uint32_t hw_index);
219 nub_addr_t GetWatchpointAddressByIndex(uint32_t hw_index);
220 nub_addr_t GetWatchAddress(const DBG &debug_state, uint32_t hw_index);
/external/llvm-project/lldb/tools/debugserver/source/MacOSX/arm/
DDNBArchImpl.cpp641 uint32_t hw_index = GetHardwareWatchpointHit(addr); in NotifyException() local
645 hw_index, (uint64_t)addr); in NotifyException()
648 if (LoHi[i] != 0 && LoHi[i] == hw_index && LoHi[i] != i && in NotifyException()
657 if (hw_index != INVALID_NUB_HW_INDEX) { in NotifyException()
659 m_watchpoint_hw_index = hw_index; in NotifyException()
662 exc.exc_data.push_back(hw_index); in NotifyException()
1056 bool DNBArchMachARM::DisableHardwareBreakpoint(uint32_t hw_index, in DisableHardwareBreakpoint() argument
1062 if (hw_index < num_hw_points) { in DisableHardwareBreakpoint()
1063 m_state.dbg.__bcr[hw_index] = 0; in DisableHardwareBreakpoint()
1067 hw_index, hw_index, m_state.dbg.__bvr[hw_index], in DisableHardwareBreakpoint()
[all …]
DDNBArchImpl.h239 bool IsWatchpointEnabled(const DBG &debug_state, uint32_t hw_index);
240 nub_addr_t GetWatchpointAddressByIndex(uint32_t hw_index);
241 nub_addr_t GetWatchAddress(const DBG &debug_state, uint32_t hw_index);
/external/llvm-project/lldb/tools/debugserver/source/MacOSX/i386/
DDNBArchImplI386.h58 bool DisableHardwareBreakpoint(uint32_t hw_index,
218 static void SetHardwareBreakpoint(DBG &debug_state, uint32_t hw_index,
222 static void SetWatchpoint(DBG &debug_state, uint32_t hw_index,
225 static void ClearWatchpoint(DBG &debug_state, uint32_t hw_index);
226 static bool IsWatchpointVacant(const DBG &debug_state, uint32_t hw_index);
228 static bool IsWatchpointHit(const DBG &debug_state, uint32_t hw_index);
229 static nub_addr_t GetWatchAddress(const DBG &debug_state, uint32_t hw_index);
DDNBArchImplI386.cpp701 uint32_t hw_index = GetHardwareWatchpointHit(addr); in NotifyException() local
702 if (hw_index != INVALID_NUB_HW_INDEX) { in NotifyException()
705 exc.exc_data.push_back(hw_index); in NotifyException()
755 void DNBArchImplI386::SetWatchpoint(DBG &debug_state, uint32_t hw_index, in SetWatchpoint() argument
782 (1 << (2 * hw_index) | in SetWatchpoint()
783 size_and_rw_bits(size, read, write) << (16 + 4 * hw_index)); in SetWatchpoint()
785 switch (hw_index) { in SetWatchpoint()
805 void DNBArchImplI386::SetHardwareBreakpoint(DBG &debug_state, uint32_t hw_index, in SetHardwareBreakpoint() argument
830 debug_state.__dr7 |= (1 << (2 * hw_index) | 0 << (16 + 4 * hw_index)); in SetHardwareBreakpoint()
832 switch (hw_index) { in SetHardwareBreakpoint()
[all …]
/external/llvm-project/lldb/tools/debugserver/source/MacOSX/x86_64/
DDNBArchImplX86_64.h222 static void SetHardwareBreakpoint(DBG &debug_state, uint32_t hw_index,
226 static void SetWatchpoint(DBG &debug_state, uint32_t hw_index,
229 static void ClearWatchpoint(DBG &debug_state, uint32_t hw_index);
230 static bool IsWatchpointVacant(const DBG &debug_state, uint32_t hw_index);
232 static bool IsWatchpointHit(const DBG &debug_state, uint32_t hw_index);
233 static nub_addr_t GetWatchAddress(const DBG &debug_state, uint32_t hw_index);
DDNBArchImplX86_64.cpp657 uint32_t hw_index = GetHardwareWatchpointHit(addr); in NotifyException() local
658 if (hw_index != INVALID_NUB_HW_INDEX) { in NotifyException()
661 exc.exc_data.push_back(hw_index); in NotifyException()
711 void DNBArchImplX86_64::SetWatchpoint(DBG &debug_state, uint32_t hw_index, in SetWatchpoint() argument
738 (1 << (2 * hw_index) | in SetWatchpoint()
739 size_and_rw_bits(size, read, write) << (16 + 4 * hw_index)); in SetWatchpoint()
740 switch (hw_index) { in SetWatchpoint()
760 void DNBArchImplX86_64::ClearWatchpoint(DBG &debug_state, uint32_t hw_index) { in ClearWatchpoint() argument
761 debug_state.__dr7 &= ~(3 << (2 * hw_index)); in ClearWatchpoint()
762 switch (hw_index) { in ClearWatchpoint()
[all …]
/external/llvm-project/lldb/tools/debugserver/source/MacOSX/
DMachThreadList.cpp491 uint32_t hw_index = INVALID_NUB_HW_INDEX; in DoHardwareBreakpointAction() local
501 hw_index = m_threads[idx]->EnableHardwareWatchpoint(bp, also_set_on_task); in DoHardwareBreakpointAction()
504 hw_index = in DoHardwareBreakpointAction()
508 hw_index = m_threads[idx]->EnableHardwareBreakpoint(bp, also_set_on_task); in DoHardwareBreakpointAction()
511 hw_index = in DoHardwareBreakpointAction()
515 if (hw_index == INVALID_NUB_HW_INDEX) { in DoHardwareBreakpointAction()
527 return hw_index; in DoHardwareBreakpointAction()
/external/llvm-project/lldb/tools/debugserver/source/
DDNBArch.h91 virtual bool DisableHardwareBreakpoint(uint32_t hw_index, in DisableHardwareBreakpoint() argument
95 virtual bool DisableHardwareWatchpoint(uint32_t hw_index, in DisableHardwareWatchpoint() argument
DDNBBreakpoint.h91 void SetHardwareIndex(uint32_t hw_index) { m_hw_index = hw_index; } in SetHardwareIndex() argument
/external/llvm-project/lldb/source/Plugins/Process/Utility/
DRegisterContextThreadMemory.cpp180 bool RegisterContextThreadMemory::ClearHardwareWatchpoint(uint32_t hw_index) { in ClearHardwareWatchpoint() argument
183 return m_reg_ctx_sp->ClearHardwareWatchpoint(hw_index); in ClearHardwareWatchpoint()
/external/llvm-project/lldb/include/lldb/Host/common/
DNativeRegisterContext.h78 virtual bool ClearHardwareWatchpoint(uint32_t hw_index);
80 virtual Status ClearWatchpointHit(uint32_t hw_index);
/external/llvm-project/lldb/source/API/
DSBWatchpoint.cpp101 int32_t hw_index = -1; in GetHardwareIndex() local
107 hw_index = watchpoint_sp->GetHardwareIndex(); in GetHardwareIndex()
110 return hw_index; in GetHardwareIndex()

12