Hi, > i don't think how[*RA_STATE] can ever be set to REG_SAVED_OFFSET, > this pseudo reg is not spilled to the stack, it is reset to 0 in > each frame and then toggled within a frame.
It's is just a state, we can use any state we want since it is a pseudo reg. These registers are global and shared across all functions in an unwind, so their state or value isn't reset for each frame. So if we want to reset it in each frame then using a virtual register to hold per-function data seems like a bad design. I'm surprised nobody has ever tested it... Cheers, Wilco