class MockThreadHandle
Defined at line 14 of file ../../src/developer/debug/debug_agent/mock_thread_handle.h
Public Methods
void MockThreadHandle (zx_koid_t thread_koid, std::string name)
Defined at line 15 of file ../../src/developer/debug/debug_agent/mock_thread_handle.cc
void SetRegisterCategory (debug::RegisterCategory cat, std::vector<debug::RegisterValue> values)
Sets the values to be returned for the given register category query.
Defined at line 22 of file ../../src/developer/debug/debug_agent/mock_thread_handle.cc
void set_state (State s)
Note that this state is always returned. The thread could have been Suspend()-ed which will
indiate is_suspended(), but the GetState will still report the value set here.
Defined at line 25 of file ../../src/developer/debug/debug_agent/mock_thread_handle.h
size_t BreakpointInstallCount (uint64_t address)
Returns the number of breakpoint installs/uninstalls for the given address / total.
Defined at line 28 of file ../../src/developer/debug/debug_agent/mock_thread_handle.cc
void set_watchpoint_range_to_return (debug::AddressRange r)
Sets the information to return for the next watchpoint set.
Defined at line 31 of file ../../src/developer/debug/debug_agent/mock_thread_handle.h
void set_watchpoint_slot_to_return (int slot)
Defined at line 32 of file ../../src/developer/debug/debug_agent/mock_thread_handle.h
size_t TotalBreakpointInstallCalls ()
Defined at line 35 of file ../../src/developer/debug/debug_agent/mock_thread_handle.cc
const std::vector<WatchpointInstallation> & watchpoint_installs ()
Log of all watchpoint additions.
Defined at line 41 of file ../../src/developer/debug/debug_agent/mock_thread_handle.h
size_t BreakpointUninstallCount (uint64_t address)
Defined at line 42 of file ../../src/developer/debug/debug_agent/mock_thread_handle.cc
size_t TotalBreakpointUninstallCalls ()
Defined at line 49 of file ../../src/developer/debug/debug_agent/mock_thread_handle.cc
int suspend_count ()
Returns the suspend count for implementing reference-counted suspension via MockSuspendHandle.
Defined at line 52 of file ../../src/developer/debug/debug_agent/mock_thread_handle.h
bool is_suspended ()
Defined at line 53 of file ../../src/developer/debug/debug_agent/mock_thread_handle.h
bool single_step ()
Defined at line 55 of file ../../src/developer/debug/debug_agent/mock_thread_handle.h
size_t WatchpointInstallCount (const debug::AddressRange & )
Returns the number of watchpoint installs/uninstalls for the given address / total.
Defined at line 56 of file ../../src/developer/debug/debug_agent/mock_thread_handle.cc
const NativeThreadHandle & GetNativeHandle ()
ThreadHandle implementation.
Defined at line 58 of file ../../src/developer/debug/debug_agent/mock_thread_handle.h
NativeThreadHandle & GetNativeHandle ()
Defined at line 59 of file ../../src/developer/debug/debug_agent/mock_thread_handle.h
zx_koid_t GetKoid ()
Defined at line 60 of file ../../src/developer/debug/debug_agent/mock_thread_handle.h
std::string GetName ()
Defined at line 61 of file ../../src/developer/debug/debug_agent/mock_thread_handle.h
State GetState ()
Defined at line 62 of file ../../src/developer/debug/debug_agent/mock_thread_handle.h
size_t TotalWatchpointInstallCalls ()
Defined at line 63 of file ../../src/developer/debug/debug_agent/mock_thread_handle.cc
size_t WatchpointUninstallCount (const debug::AddressRange & )
Defined at line 70 of file ../../src/developer/debug/debug_agent/mock_thread_handle.cc
size_t TotalWatchpointUninstallCalls ()
Defined at line 77 of file ../../src/developer/debug/debug_agent/mock_thread_handle.cc
debug_ipc::ThreadRecord GetThreadRecord (zx_koid_t process_koid)
Defined at line 84 of file ../../src/developer/debug/debug_agent/mock_thread_handle.cc
std::unique_ptr<SuspendHandle> Suspend ()
Defined at line 93 of file ../../src/developer/debug/debug_agent/mock_thread_handle.cc
bool WaitForSuspension (TickTimePoint deadline)
Defined at line 97 of file ../../src/developer/debug/debug_agent/mock_thread_handle.cc
std::optional<GeneralRegisters> GetGeneralRegisters ()
Defined at line 99 of file ../../src/developer/debug/debug_agent/mock_thread_handle.cc
void SetGeneralRegisters (const GeneralRegisters & regs)
Defined at line 103 of file ../../src/developer/debug/debug_agent/mock_thread_handle.cc
std::optional<DebugRegisters> GetDebugRegisters ()
Defined at line 107 of file ../../src/developer/debug/debug_agent/mock_thread_handle.cc
bool SetDebugRegisters (const DebugRegisters & regs)
Defined at line 111 of file ../../src/developer/debug/debug_agent/mock_thread_handle.cc
void SetSingleStep (bool single_step)
Defined at line 116 of file ../../src/developer/debug/debug_agent/mock_thread_handle.cc
std::vector<debug::RegisterValue> ReadRegisters (const std::vector<debug::RegisterCategory> & cats_to_get)
Defined at line 118 of file ../../src/developer/debug/debug_agent/mock_thread_handle.cc
std::vector<debug::RegisterValue> WriteRegisters (const std::vector<debug::RegisterValue> & regs)
Defined at line 131 of file ../../src/developer/debug/debug_agent/mock_thread_handle.cc
bool InstallHWBreakpoint (uint64_t address)
Defined at line 137 of file ../../src/developer/debug/debug_agent/mock_thread_handle.cc
bool UninstallHWBreakpoint (uint64_t address)
Defined at line 142 of file ../../src/developer/debug/debug_agent/mock_thread_handle.cc
std::optional<WatchpointInfo> InstallWatchpoint (debug_ipc::BreakpointType type, const debug::AddressRange & range)
Defined at line 147 of file ../../src/developer/debug/debug_agent/mock_thread_handle.cc
bool UninstallWatchpoint (const debug::AddressRange & range)
Defined at line 155 of file ../../src/developer/debug/debug_agent/mock_thread_handle.cc