diff options
author | Greg Clayton <gclayton@apple.com> | 2011-03-04 22:59:14 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2011-03-04 22:59:14 +0000 |
commit | 874472584de15f371c297044fd842f3bf59f29c1 (patch) | |
tree | 1cb607c6c479f6f5273ab598aa36fd2dac888e99 /lldb/source/Plugins/Process/Utility/UnwindMacOSXFrameBackchain.cpp | |
parent | 403269894fe065d817cad4369af1119318030a77 (diff) | |
download | bcm5719-llvm-874472584de15f371c297044fd842f3bf59f29c1.tar.gz bcm5719-llvm-874472584de15f371c297044fd842f3bf59f29c1.zip |
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
Diffstat (limited to 'lldb/source/Plugins/Process/Utility/UnwindMacOSXFrameBackchain.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/Utility/UnwindMacOSXFrameBackchain.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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(); } |