I think that a collect inside a while-stepping can collect the wrong data if a local variable uses a location expression. I don't have a test case (but see bug 11613), but saw this reading code. If correct, one possible fix would be to differentiate "compiling for while-stepping" so that loclist_tracepoint_var_ref could compile the entire location expression to AX.