Ghidra 11.3.2
Ghidra internal decompiler documentation.
Loading...
Searching...
No Matches
ghidra::TrackedContext Struct Reference

A tracked register (Varnode) and the value it contains. More...

#include <globalcontext.hh>

Collaboration diagram for ghidra::TrackedContext:
[legend]

Public Member Functions

void decode (Decoder &decoder)
 Decode this from a stream.
 
void encode (Encoder &encoder) const
 Encode this to a stream.
 

Public Attributes

VarnodeData loc
 Storage details of the register being tracked.
 
uintb val
 The value of the register.
 

Detailed Description

A tracked register (Varnode) and the value it contains.

This is the object returned when querying for tracked registers, via ContextDatabase::getTrackedSet(). It holds the storage details of the register and the actual value it holds at the point of the query.

Member Function Documentation

◆ decode()

void ghidra::TrackedContext::decode ( Decoder decoder)

Decode this from a stream.

Parse a <set> element to fill in the storage and value details.

Parameters
decoderis the stream decoder

References ghidra::Decoder::closeElement(), ghidra::VarnodeData::decodeFromAttributes(), loc, ghidra::Decoder::openElement(), ghidra::Decoder::readUnsignedInteger(), and val.

◆ encode()

void ghidra::TrackedContext::encode ( Encoder encoder) const

Encode this to a stream.

The register storage and value are encoded as a <set> element.

Parameters
encoderis the stream encoder

References ghidra::Encoder::closeElement(), ghidra::AddrSpace::encodeAttributes(), loc, ghidra::VarnodeData::offset, ghidra::Encoder::openElement(), ghidra::VarnodeData::size, ghidra::VarnodeData::space, val, and ghidra::Encoder::writeUnsignedInteger().


The documentation for this struct was generated from the following files: