class GeneralRegisters

Defined at line 19 of file ../../src/developer/debug/debug_agent/general_registers.h

Wrapper around the general thread registers to allow them to be accessed uniformly regardless

of the platform.

Public Methods

void CopyTo (std::vector<debug::RegisterValue> & dest)

Appends the current general registers to the given high-level register record.

Defined at line 11 of file ../../src/developer/debug/debug_agent/general_registers.cc

std::optional<uint64_t> GetRegister (debug::RegisterID reg_id)

TODO: Maintain a better id

<

-> platform register mapping and use here and in the arch files to

avoid this unnecessary std::vector creation and unify with the arch::SaveGeneralRegisters()

implementation.

Defined at line 15 of file ../../src/developer/debug/debug_agent/general_registers.cc

void GeneralRegisters ()

Defined at line 21 of file ../../src/developer/debug/debug_agent/general_registers.h

void GeneralRegisters (const arch::PlatformGeneralRegisters & r)

Defined at line 22 of file ../../src/developer/debug/debug_agent/general_registers.h

void GeneralRegisters (const arch::PlatformGeneralRegisters & r)

Defined at line 22 of file ../../src/developer/debug/debug_agent/general_registers.h

uint64_t ip ()

Instruction pointer.

Defined at line 26 of file ../../src/developer/debug/debug_agent/general_registers.h

void set_ip (uint64_t ip)

Defined at line 27 of file ../../src/developer/debug/debug_agent/general_registers.h

uint64_t sp ()

Stack pointer.

Defined at line 30 of file ../../src/developer/debug/debug_agent/general_registers.h

void set_sp (uint64_t sp)

Defined at line 31 of file ../../src/developer/debug/debug_agent/general_registers.h

arch::PlatformGeneralRegisters & GetNativeRegisters ()

Defined at line 44 of file ../../src/developer/debug/debug_agent/general_registers.h

const arch::PlatformGeneralRegisters & GetNativeRegisters ()

Defined at line 45 of file ../../src/developer/debug/debug_agent/general_registers.h