Add an additional check to UnwindAssembly_x86::AugmentUnwindPlanFromCallSite
authorJason Molenda <jmolenda@apple.com>
Tue, 13 Jan 2015 06:07:07 +0000 (06:07 +0000)
committerJason Molenda <jmolenda@apple.com>
Tue, 13 Jan 2015 06:07:07 +0000 (06:07 +0000)
commit91805e6f5647f3270066d496aa3ee9c14b05d0d6
tree27331bbcb5e299f0bc84512fa41393b814fc49b7
parent34549b8f75e3a772d8a99011452de1de7e4cceb6
Add an additional check to UnwindAssembly_x86::AugmentUnwindPlanFromCallSite
which will verify if the eh_frame instructions include details about
the prologue or not.  Both clang and gcc include prologue instructions
but there's no requirement for them to do so -- and I'm sure we'll
have to interoperate with a compiler that doesn't generate prologue
info at some point.

I don't have any compilers that omit the prologue instructions so the
testing was of the "makre sure augmented unwind info is still created".
With an eh_frame without prologue, this code should reject the
augmentation scheme altogether and we should fall back to using assembly
instruction profiling.

llvm-svn: 225771
lldb/include/lldb/Utility/RegisterNumber.h
lldb/source/Plugins/UnwindAssembly/x86/UnwindAssembly-x86.cpp
lldb/source/Utility/RegisterNumber.cpp