Apple Interview Question
Software Engineer / DevelopersTeam: Kernel
Country: United States
Interview Type: In-Person
Not sure if I am getting it right. But, I guess just returning current stack of program should be fine. You just need to keep track of line of code for each stack though.
The stack gets you the raw data, correct. But how would you know which functions were called and what are the local variables and parameters? ;)
Keeping track of each line of code is not necessary. Assume that the instructions are still stored in memory. You need to find out what they are.
Walk the Frame pointer. Frame structure is of the format.
- Sreekanth November 20, 2013