private StackFrame TryLMF(ThreadServant thread, TargetMemoryAccess memory)
{
try {
if (lmf_address.IsNull)
return null;
StackFrame new_frame = thread.Architecture.GetLMF (thread, memory, ref lmf_address);
if (new_frame == null)
return null;
// Sanity check; don't loop.
if (new_frame.StackPointer <= last_frame.StackPointer)
return null;
return new_frame;
} catch (TargetException) {
return null;
}
}