summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/Utility/UnwindMacOSXFrameBackchain.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Plugins/Process/Utility/UnwindMacOSXFrameBackchain.cpp')
-rw-r--r--lldb/source/Plugins/Process/Utility/UnwindMacOSXFrameBackchain.cpp6
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();
}
OpenPOWER on IntegriCloud