Profilers and debuggers need to traverse the frame stack, but the layout of the stack is an internal implementation detail.
However can make some limited promises to make porting tools between Python versions a bit easier.
In order to traverse the stack, the offset of the previous pointer needs to be known. To understand the frame, more information is needed.
@pablogsal
@Yhg1s
expressed interest in this.
Linked PRs