Add support for function with stack frame checks added by the compiler;
authorJason Molenda <jmolenda@apple.com>
Fri, 25 May 2012 01:54:06 +0000 (01:54 +0000)
committerJason Molenda <jmolenda@apple.com>
Fri, 25 May 2012 01:54:06 +0000 (01:54 +0000)
commit6f5e8c2647d98d4f7ca3a44d87f235e0c032ba6a
tree412de9f0c3f6fd4d57657d754e751d748f4e3144
parent268f154f489f52954d719b23b49b18bc356cbebe
Add support for function with stack frame checks added by the compiler;
these functions will end in the sequence

  mov %rbp, %rsp
  ret
  call __stack_chk_fail

instead of the usual mov, ret.  The x86 assembly profiler only looked
for functions ending in 'ret' and added the Unwind row describing how to
set the CFA based on that -- the addition of the call insn (which is jumped
to earlier in the function body) threw off that inspection.

Resolves the need to "step" twice to get out of these functions when doing
source-level stepping.

<rdar://problem/11469705>

llvm-svn: 157454
lldb/source/Plugins/UnwindAssembly/x86/UnwindAssembly-x86.cpp