Home
last modified time | relevance | path

Searched refs:debug_state (Results 1 – 8 of 8) sorted by relevance

/openbsd-src/gnu/llvm/lldb/tools/debugserver/source/MacOSX/x86_64/
H A 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);
231 static void ClearWatchpointHits(DBG &debug_state);
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);
H A DDNBArchImplX86_64.cpp578 DBG &debug_state = m_state.context.dbg; in ThreadWillResume() local
582 if (IsWatchpointHit(debug_state, i)) in ThreadWillResume()
586 ClearWatchpointHits(debug_state); in ThreadWillResume()
711 void DNBArchImplX86_64::SetWatchpoint(DBG &debug_state, uint32_t hw_index, in SetWatchpoint() argument
737 debug_state.__dr7 |= in SetWatchpoint()
742 debug_state.__dr0 = addr; in SetWatchpoint()
745 debug_state.__dr1 = addr; in SetWatchpoint()
748 debug_state.__dr2 = addr; in SetWatchpoint()
751 debug_state.__dr3 = addr; in SetWatchpoint()
760 void DNBArchImplX86_64::ClearWatchpoint(DBG &debug_state, uint32_t hw_index) { in ClearWatchpoint() argument
[all …]
/openbsd-src/gnu/llvm/lldb/tools/debugserver/source/MacOSX/i386/
H A DDNBArchImplI386.h218 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);
227 static void ClearWatchpointHits(DBG &debug_state);
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);
H A DDNBArchImplI386.cpp623 DBG &debug_state = m_state.context.dbg; in ThreadWillResume() local
627 if (IsWatchpointHit(debug_state, i)) in ThreadWillResume()
631 ClearWatchpointHits(debug_state); in ThreadWillResume()
755 void DNBArchImplI386::SetWatchpoint(DBG &debug_state, uint32_t hw_index, in SetWatchpoint() argument
781 debug_state.__dr7 |= in SetWatchpoint()
787 debug_state.__dr0 = addr_32; in SetWatchpoint()
790 debug_state.__dr1 = addr_32; in SetWatchpoint()
793 debug_state.__dr2 = addr_32; in SetWatchpoint()
796 debug_state.__dr3 = addr_32; in SetWatchpoint()
805 void DNBArchImplI386::SetHardwareBreakpoint(DBG &debug_state, uint32_t hw_index, in SetHardwareBreakpoint() argument
[all …]
/openbsd-src/gnu/llvm/lldb/tools/debugserver/source/MacOSX/arm64/
H A DDNBArchImplARM64.h217 bool IsWatchpointEnabled(const DBG &debug_state, uint32_t hw_index);
219 nub_addr_t GetWatchAddress(const DBG &debug_state, uint32_t hw_index);
H A DDNBArchImplARM64.cpp1126 DBG &debug_state = m_state.dbg; in GetHardwareWatchpointHit() local
1129 nub_addr_t wp_addr = GetWatchAddress(debug_state, i); in GetHardwareWatchpointHit()
1130 uint32_t byte_mask = bits(debug_state.__wcr[i], 12, 5); in GetHardwareWatchpointHit()
1138 if (!IsWatchpointEnabled(debug_state, i)) in GetHardwareWatchpointHit()
1172 bool DNBArchMachARM64::IsWatchpointEnabled(const DBG &debug_state, in IsWatchpointEnabled() argument
1179 return (debug_state.__wcr[hw_index] & 1u); in IsWatchpointEnabled()
1182 nub_addr_t DNBArchMachARM64::GetWatchAddress(const DBG &debug_state, in GetWatchAddress() argument
1188 return bits(debug_state.__wvr[hw_index], 63, 0); in GetWatchAddress()
/openbsd-src/gnu/llvm/lldb/tools/debugserver/source/MacOSX/arm/
H A DDNBArchImpl.h238 bool IsWatchpointEnabled(const DBG &debug_state, uint32_t hw_index);
240 nub_addr_t GetWatchAddress(const DBG &debug_state, uint32_t hw_index);
H A DDNBArchImpl.cpp1372 DBG &debug_state = m_state.dbg; in GetHardwareWatchpointHit() local
1375 nub_addr_t wp_addr = GetWatchAddress(debug_state, i); in GetHardwareWatchpointHit()
1382 uint32_t byte_mask = bits(debug_state.__wcr[i], 12, 5); in GetHardwareWatchpointHit()
1384 uint32_t byte_mask = bits(debug_state.__wcr[i], 8, 5); in GetHardwareWatchpointHit()
1413 bool DNBArchMachARM::IsWatchpointEnabled(const DBG &debug_state, in IsWatchpointEnabled() argument
1420 return (debug_state.__wcr[hw_index] & 1u); in IsWatchpointEnabled()
1423 nub_addr_t DNBArchMachARM::GetWatchAddress(const DBG &debug_state, in GetWatchAddress() argument
1429 return bits(debug_state.__wvr[hw_index], 31, 0); in GetWatchAddress()