Get stack info for a position in code.