[Lldb-commits] [lldb] r127044 - /lldb/trunk/source/Plugins/Process/Utility/UnwindMacOSXFrameBackchain.cpp
Greg Clayton
gclayton at apple.com
Fri Mar 4 14:59:15 PST 2011
Author: gclayton
Date: Fri Mar 4 16:59:14 2011
New Revision: 127044
URL: http://llvm.org/viewvc/llvm-project?rev=127044&view=rev
Log:
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.
Modified:
lldb/trunk/source/Plugins/Process/Utility/UnwindMacOSXFrameBackchain.cpp
Modified: lldb/trunk/source/Plugins/Process/Utility/UnwindMacOSXFrameBackchain.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/Utility/UnwindMacOSXFrameBackchain.cpp?rev=127044&r1=127043&r2=127044&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/Utility/UnwindMacOSXFrameBackchain.cpp (original)
+++ lldb/trunk/source/Plugins/Process/Utility/UnwindMacOSXFrameBackchain.cpp Fri Mar 4 16:59:14 2011
@@ -35,11 +35,11 @@
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();
}
More information about the lldb-commits
mailing list