forked from OSchip/llvm-project
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:
parent
403269894f
commit
874472584d
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue