摘要 |
A method for finding a function call stack when a computer system executes a function in run time includes obtaining a program counter generated from executing the function, obtaining a corresponding instruction according to the program counter, detecting whether the instruction corresponds with a Push-LR-to-Stack instruction, and storing an instruction address pointed to by the program counter when the instruction corresponds with the Push-LR-to-Stack instruction.
|