|
libintrovirt v0.57.4
IntroVirt introspection library
|
A class for holding x86 register state. More...
#include <Registers.hh>
Public Member Functions | |
| virtual uint64_t | rax () const =0 |
| Get the rax register value. | |
| virtual void | rax (uint64_t val)=0 |
| Set the rax register value. | |
| virtual uint64_t | rbx () const =0 |
| Get the rbx register value. | |
| virtual void | rbx (uint64_t val)=0 |
| Set the rbx register value. | |
| virtual uint64_t | rcx () const =0 |
| Get the rcx register value. | |
| virtual void | rcx (uint64_t val)=0 |
| Set the rcx register value. | |
| virtual uint64_t | rdx () const =0 |
| Get the rdx register value. | |
| virtual void | rdx (uint64_t val)=0 |
| Set the rdx register value. | |
| virtual uint64_t | r15 () const =0 |
| Get the r15 register value. | |
| virtual void | r15 (uint64_t val)=0 |
| Set the r15 register value. | |
| virtual uint64_t | r14 () const =0 |
| Get the r14 register value. | |
| virtual void | r14 (uint64_t val)=0 |
| Set the r14 register value. | |
| virtual uint64_t | r13 () const =0 |
| Get the r13 register value. | |
| virtual void | r13 (uint64_t val)=0 |
| Set the r13 register value. | |
| virtual uint64_t | r12 () const =0 |
| Get the r12 register value. | |
| virtual void | r12 (uint64_t val)=0 |
| Set the r12 register value. | |
| virtual uint64_t | r11 () const =0 |
| Get the r11 register value. | |
| virtual void | r11 (uint64_t val)=0 |
| Set the r11 register value. | |
| virtual uint64_t | r10 () const =0 |
| Get the r10 register value. | |
| virtual void | r10 (uint64_t val)=0 |
| Set the r10 register value. | |
| virtual uint64_t | r9 () const =0 |
| Get the r9 register value. | |
| virtual void | r9 (uint64_t val)=0 |
| Set the r9 register value. | |
| virtual uint64_t | r8 () const =0 |
| Get the r8 register value. | |
| virtual void | r8 (uint64_t val)=0 |
| Set the r8 register value. | |
| virtual uint64_t | rsi () const =0 |
| Get the rsi register value. | |
| virtual void | rsi (uint64_t val)=0 |
| Set the rsi register value. | |
| virtual uint64_t | rdi () const =0 |
| Get the rdi register value. | |
| virtual void | rdi (uint64_t val)=0 |
| Set the rdi register value. | |
| virtual uint64_t | rsp () const =0 |
| Get the rsp register value. | |
| virtual void | rsp (uint64_t val)=0 |
| Set the rsp register value. | |
| virtual uint64_t | rbp () const =0 |
| Get the rbp register value. | |
| virtual void | rbp (uint64_t val)=0 |
| Set the rbp register value. | |
| virtual uint64_t | rip () const =0 |
| Get the rip register value. | |
| virtual void | rip (uint64_t val)=0 |
| Set the rip register value. | |
| virtual Flags & | rflags ()=0 |
| Get the rflags register value. | |
| virtual const Flags & | rflags () const =0 |
| Get the rflags register value. | |
| virtual void | rflags (const Flags &val)=0 |
| Convenience method for rflags().value(val.value()) | |
| virtual Efer | efer () const =0 |
| Get the Efer MSR. | |
| virtual uint64_t | msr (Msr msr) const =0 |
| Get a raw MSR value. | |
| virtual void | msr (Msr msr, uint64_t val)=0 |
| Set a raw MSR value. | |
| virtual Segment | cs () const =0 |
| Get the code segment register. | |
| virtual void | cs (x86::Segment seg)=0 |
| Set the code segment register. | |
| virtual bool | cs_long_mode () const =0 |
| Get long mode for the current code segment. | |
| virtual Segment | ds () const =0 |
| Get the data segment register. | |
| virtual Segment | es () const =0 |
| Get the ES register. | |
| virtual Segment | fs () const =0 |
| Get the FS register. | |
| virtual Segment | gs () const =0 |
| Get the GS register. | |
| virtual Segment | ss () const =0 |
| Get the stack segment register. | |
| virtual Segment | tr () const =0 |
| Get the task segment register. | |
| virtual Segment | ldt () const =0 |
| Get the segment descriptor for the ldt. | |
| virtual Cr0 | cr0 () const =0 |
| Get control register 0. | |
| virtual uint64_t | cr2 () const =0 |
| Get control register 2. | |
| virtual uint64_t | cr3 () const =0 |
| Get control register 3. | |
| virtual Cr4 | cr4 () const =0 |
| Get control register 4. | |
| virtual uint64_t | cr8 () const =0 |
| Get control register 8. | |
| virtual uint64_t | gdtr_base () const =0 |
| Get the gdtr segment base register. | |
| virtual uint32_t | gdtr_limit () const =0 |
| Get the gdtr segment limit register. | |
| virtual uint64_t | idtr_base () const =0 |
| Get the interrupt descritor table base address. | |
| virtual uint32_t | idtr_limit () const =0 |
| Get the interrupt descritor table limit. | |
| virtual | ~Registers ()=default |
| Destroy the instance. | |
A class for holding x86 register state.
|
virtualdefault |
Destroy the instance.
|
pure virtual |
Get control register 0.
|
pure virtual |
Get control register 2.
|
pure virtual |
|
pure virtual |
Get control register 4.
|
pure virtual |
Get control register 8.
|
pure virtual |
Get the code segment register.
|
pure virtual |
Set the code segment register.
| seg | The code segment register |
|
pure virtual |
Get long mode for the current code segment.
|
pure virtual |
Get the data segment register.
|
pure virtual |
|
pure virtual |
Get the ES register.
|
pure virtual |
Get the FS register.
|
pure virtual |
Get the gdtr segment base register.
|
pure virtual |
Get the gdtr segment limit register.
|
pure virtual |
Get the GS register.
|
pure virtual |
Get the interrupt descritor table base address.
|
pure virtual |
Get the interrupt descritor table limit.
|
pure virtual |
Get the segment descriptor for the ldt.
|
pure virtual |
Get a raw MSR value.
| msr | The MSR to retreive |
| CommandFailedException | if the msr could not be retrieved |
|
pure virtual |
Set a raw MSR value.
| msr | The MSR to set |
| val | The value to set in the MSR |
| CommandFailedException | if the msr could not be set |
|
pure virtual |
Get the r10 register value.
|
pure virtual |
Set the r10 register value.
| val | The value to set |
|
pure virtual |
Get the r11 register value.
|
pure virtual |
Set the r11 register value.
| val | The value to set |
|
pure virtual |
Get the r12 register value.
|
pure virtual |
Set the r12 register value.
| val | The value to set |
|
pure virtual |
Get the r13 register value.
|
pure virtual |
Set the r13 register value.
| val | The value to set |
|
pure virtual |
Get the r14 register value.
|
pure virtual |
Set the r14 register value.
| val | The value to set |
|
pure virtual |
Get the r15 register value.
|
pure virtual |
Set the r15 register value.
| val | The value to set |
|
pure virtual |
Get the r8 register value.
|
pure virtual |
Set the r8 register value.
| val | The value to set |
|
pure virtual |
Get the r9 register value.
|
pure virtual |
Set the r9 register value.
| val | The value to set |
|
pure virtual |
Get the rax register value.
|
pure virtual |
Set the rax register value.
| val | The value to set |
|
pure virtual |
Get the rbp register value.
|
pure virtual |
Set the rbp register value.
| val | The value to set |
|
pure virtual |
Get the rbx register value.
|
pure virtual |
Set the rbx register value.
| val | The value to set |
|
pure virtual |
Get the rcx register value.
|
pure virtual |
Set the rcx register value.
| val | The value to set |
|
pure virtual |
Get the rdi register value.
|
pure virtual |
Set the rdi register value.
| val | The value to set |
|
pure virtual |
Get the rdx register value.
|
pure virtual |
Set the rdx register value.
| val | The value to set |
|
pure virtual |
Get the rflags register value.
|
pure virtual |
Get the rflags register value.
|
pure virtual |
|
pure virtual |
Get the rip register value.
|
pure virtual |
Set the rip register value.
| val | The value to set |
|
pure virtual |
Get the rsi register value.
|
pure virtual |
Set the rsi register value.
| val | The value to set |
|
pure virtual |
|
pure virtual |
Set the rsp register value.
| val | The value to set |
|
pure virtual |
Get the stack segment register.
|
pure virtual |
Get the task segment register.