Allow the macosx frame backchain to use 32/64 bit as the selector when

chosing which FP back-chain methods to use since we can rely upon generic 
register numbers after that.

llvm-svn: 127044
This commit is contained in:
Greg Clayton 2011-03-04 22:59:14 +00:00
parent 403269894f
commit 874472584d
1 changed files with 3 additions and 3 deletions

View File

@ -35,11 +35,11 @@ UnwindMacOSXFrameBackchain::GetFrameCount()
const ArchSpec& target_arch = m_thread.GetProcess().GetTarget().GetArchitecture ();
// Frame zero should always be supplied by the thread...
StackFrameSP frame_sp (m_thread.GetStackFrameAtIndex (0));
if (target_arch.GetMachine() == llvm::Triple::x86_64)
GetStackFrameData_x86_64 (frame_sp.get());
else if (target_arch.GetMachine() == llvm::Triple::x86)
GetStackFrameData_i386 (frame_sp.get());
if (target_arch.GetAddressByteSize() == 8)
GetStackFrameData_x86_64 (frame_sp.get());
else
GetStackFrameData_i386 (frame_sp.get());
}
return m_cursors.size();
}