Target State

The method OutputCurrentState will print the current state of the target to the debugger's output stream.

The current execution status of the target is returned by GetExecutionStatus. If the target is suspended, the method SetExecutionStatus can be used to resume execution in one of the execution modes.

The method GetReturnOffset returns the address of the instruction that will execute when the current function returns.

GetNearInstruction returns the location of an instruction relative to a given address.

Badanie śledzenia stosu

A call stack contains the data for the function calls that are made by a thread. The data for each function call is called a stack frame and includes the return address, parameters passed to the function, and the function's local variables. Za każdym razem, gdy jest wykonywane wywołanie funkcji, nowa ramka stosu jest wypychana na górę stosu. Po powrocie tej funkcji, ramka stosu jest zdejmowana ze stosu. Każdy wątek ma własny stos wywołań, który reprezentuje wywołania wykonywane w tym wątku.

Note Not all of the data for a function call can be stored in the stack frame. Parametry i zmienne lokalne mogą być czasami przechowywane w rejestrach.

To retrieve the call stack or stack trace, use the methods GetStackTrace and GetContextStackTrace. The stack trace can be printed using OutputStackTrace and OutputContextStackTrace.