From 874472584de15f371c297044fd842f3bf59f29c1 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Fri, 4 Mar 2011 22:59:14 +0000 Subject: 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 --- lldb/source/Plugins/Process/Utility/UnwindMacOSXFrameBackchain.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lldb/source/Plugins/Process/Utility/UnwindMacOSXFrameBackchain.cpp') diff --git a/lldb/source/Plugins/Process/Utility/UnwindMacOSXFrameBackchain.cpp b/lldb/source/Plugins/Process/Utility/UnwindMacOSXFrameBackchain.cpp index f712fd92c54..d09f93b635d 100644 --- a/lldb/source/Plugins/Process/Utility/UnwindMacOSXFrameBackchain.cpp +++ b/lldb/source/Plugins/Process/Utility/UnwindMacOSXFrameBackchain.cpp @@ -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) + + if (target_arch.GetAddressByteSize() == 8) GetStackFrameData_x86_64 (frame_sp.get()); - else if (target_arch.GetMachine() == llvm::Triple::x86) + else GetStackFrameData_i386 (frame_sp.get()); - } return m_cursors.size(); } -- cgit v1.2.3