class MockThread

Defined at line 18 of file ../../src/developer/debug/debug_agent/mock_thread.h

Simple setup for a DebuggedThread that sets up a mocked thread handle and provides some

convenience wrappers for querying the state.

Since DebuggedThread is not a abstract class designed for derivation, there should be no

overrides on this class. Overrides for behavior should go on the [Mock]ThreadHandle later.

Public Methods

void MockThread (DebuggedProcess * process, zx_koid_t thread_koid)

Defined at line 13 of file ../../src/developer/debug/debug_agent/mock_thread.cc

void ~MockThread ()

Defined at line 17 of file ../../src/developer/debug/debug_agent/mock_thread.cc

void SendException (uint64_t address, debug_ipc::ExceptionType type)

Sets the thread to be in an exception state with the current IP being at the given address.

All other registers will have their default (0) value.

Defined at line 19 of file ../../src/developer/debug/debug_agent/mock_thread.cc

MockThreadHandle & mock_thread_handle ()

Defined at line 23 of file ../../src/developer/debug/debug_agent/mock_thread.h

bool running ()

Defined at line 28 of file ../../src/developer/debug/debug_agent/mock_thread.h