IDiaFrameData::get_program
Note
This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here
Retrieves the program string that is used to compute the register set before the call to the current function.
Syntax
HRESULT get_program (
BSTR* pRetVal
);
Parameters
pRetVal
[out] Returns the program string.
Return Value
If successful, returns S_OK
. Returns S_FALSE
if this property is not supported. Otherwise, returns an error code.
Remarks
The program string is a sequence of macros that is interpreted in order to establish the prologue. For example, a typical stack frame might use the program string "$T0 $ebp = $eip $T0 4 + ^ = $ebp $T0 ^ = $esp $T0 8 + ="
. The format is reverse polish notation, where the operators follow the operands. T0
represents a temporary variable on the stack. This example performs the following steps:
Move contents of register
ebp
toT0
.Add
4
to the value inT0
to produce an address, get the value from that address, and store the value in registereip
.Get the value from the address stored in
T0
and store that value in registerebp
.Add
8
to the value inT0
and store that value in registeresp
.Note that the program string is specific to the CPU and to the calling convention set up for the function represented by the current stack frame.