Method

GumBacktracergenerate_with_limit

Declaration [src]

void
gum_backtracer_generate_with_limit (
  GumBacktracer* self,
  const GumCpuContext* cpu_context,
  GumReturnAddressArray* return_addresses,
  guint limit
)

Description [src]

Walks a thread’s stack and stores each return address in return_addresses, stopping after limit entries. Omit cpu_context to start walking from where this function is called from.

Parameters

cpu_context

Type: GumCpuContext

The location to start walking from.

The argument can be NULL.
The data is owned by the caller of the method.
return_addresses

Type: GumReturnAddressArray

The resulting backtrace.

The argument will be set by the function.
The returned data is owned by the instance.
limit

Type: guint

The limit on how far to walk.