28 lines · plain
1# Test unwinding through stack frames that aren't aligned to 16 bytes.2# (In real world code, this happens when unwinding through3# KiUserExceptionDispatcher and KiUserCallbackDispatcher in ntdll.dll.)4 5# REQUIRES: target-x86_64, native, system-windows6 7# RUN: %build %p/Inputs/windows-unaligned-x86_64.cpp %p/Inputs/windows-unaligned-x86_64-asm.s -o %t8# RUN: env LLDB_USE_NATIVE_PDB_READER=0 %lldb %t -s %s -o exit | FileCheck %s9# RUN: env LLDB_USE_NATIVE_PDB_READER=1 %lldb %t -s %s -o exit | FileCheck %s10 11# Future TODO: If %build could compile the source file in C mode, the symbol12# name handling would be easier across msvc and mingw build configurations.13# (In mingw mode, the extern C symbol "func" is printed as "::func" while14# it's plain "func" in msvc mode. Without the extern C, it's "func(..." in15# mingw mode, but "void __cdecl func(..." in msvc mode.)16 17breakpoint set -n func18# CHECK: Breakpoint 1: where = {{.*}}`{{(::)?}}func19 20process launch21# CHECK: stop reason = breakpoint 122 23thread backtrace24# CHECK: frame #0: {{.*}}`{{(::)?}}func25# CHECK: frame #1: {{.*}}`realign_stack26# CHECK: frame #2: {{.*}}`call_func27# CHECK: frame #3: {{.*}}`main28