Sonde v1.1.0
Embeddable Model Context Protocol server for Qt applications
Loading...
Searching...
No Matches
Sonde::Detail::RawStack Struct Reference

A sample of a thread's stack: return addresses, innermost first. More...

#include <stackcapture_p.h>

Public Attributes

std::array< quintptr, kCapacity > pcs { }
 Program counters; [0] is where the thread was.
int count = 0
 How many of pcs are set.
int linkRegisterIndex = -1
 Index of a frame taken from the link register (arm64 macOS) rather than the stack, or -1.

Static Public Attributes

static constexpr int kCapacity = 64
 The most frames kept (design 0016: at most 64 per sample).

Detailed Description

A sample of a thread's stack: return addresses, innermost first.

Member Data Documentation

◆ linkRegisterIndex

int Sonde::Detail::RawStack::linkRegisterIndex = -1

Index of a frame taken from the link register (arm64 macOS) rather than the stack, or -1.

It is dropped if it turns out to be in the same function as the frame before it (a stale value, not the caller).


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