Patent ID: 7574702

Claim:
A method of stack walking a call stack associated with mixed code, wherein the mixed code comprises at least one managed instruction and at least one native instruction, the method comprising the acts of: providing a call stack comprising at least one managed frame and at least one native frame, the at least one managed frame being associated with a first function having at least one managed instruction, the managed frame containing a first return address, and the at least one native frame being associated with a second function having at least one native instruction, the native frame containing a second return address; performing a stack walk of the call stack to detect a managed frame on the call stack; in response to detecting a managed frame on the call stack, performing a managed stack walk of managed frames on the call stack to resolve the managed frames on the call stack; and after performing the managed stack walk, performing a native stack walk of native frames on the call stack to resolve the native frames on the call stack, including native frames between managed frames.