I'm hacking some code to watch a process, and I want to see which procedures it's been calling. Basically I send an IPL2 KAST to the process when it's CUR from some code on the timer queue, and I intend the KAST code to check previous call frames to find the saved PC.
What I need to know is :
When I'm in the KAST how can I find the saved PC, PSL and FP of the code I've interrupted, so that I can trace back through the stack.