CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
59 lines
2.6 KiB
Plaintext
59 lines
2.6 KiB
Plaintext
# REQUIRES: x86
|
|
|
|
# RUN: yaml2obj %S/Inputs/unwind-via-stack-win.yaml -o %t
|
|
# RUN: %lldb -c %t \
|
|
# RUN: -o "target symbols add %S/Inputs/unwind-via-stack-win.syms" \
|
|
# RUN: -s %s -b | FileCheck %s
|
|
|
|
# First check that unwind plan generation works correctly.
|
|
# This function has a "typical" unwind rule.
|
|
image show-unwind -n call_many
|
|
# CHECK-LABEL: image show-unwind -n call_many
|
|
# CHECK: UNWIND PLANS for unwind-via-stack-win.exe`call_many
|
|
# CHECK: Symbol file UnwindPlan:
|
|
# CHECK: This UnwindPlan originally sourced from breakpad STACK WIN
|
|
# CHECK: This UnwindPlan is sourced from the compiler: yes.
|
|
# CHECK: This UnwindPlan is valid at all instruction locations: no.
|
|
# CHECK: This UnwindPlan is for a trap handler function: no.
|
|
# CHECK: Address range of this UnwindPlan: [unwind-via-stack-win.exe..module_image + 4112-4221)
|
|
# CHECK: row[0]: 0: CFA=DW_OP_breg7 +0, DW_OP_consts +80, DW_OP_plus => esp=DW_OP_pick 0x0, DW_OP_consts +4, DW_OP_plus eip=DW_OP_pick 0x0, DW_OP_deref
|
|
|
|
# Then, some invalid rules.
|
|
image show-unwind -n bogus_rule
|
|
# CHECK-LABEL: image show-unwind -n bogus_rule
|
|
# CHECK: UNWIND PLANS for unwind-via-stack-win.exe`bogus_rule
|
|
# CHECK-NOT: Symbol file
|
|
|
|
image show-unwind -n bogus_cfa_rhs
|
|
# CHECK-LABEL: image show-unwind -n bogus_cfa_rhs
|
|
# CHECK: UNWIND PLANS for unwind-via-stack-win.exe`bogus_cfa_rhs
|
|
# CHECK-NOT: Symbol file
|
|
|
|
image show-unwind -n bogus_esp_rhs
|
|
# CHECK-LABEL: image show-unwind -n bogus_esp_rhs
|
|
# CHECK: UNWIND PLANS for unwind-via-stack-win.exe`bogus_esp_rhs
|
|
# CHECK-NOT: Symbol file
|
|
|
|
# We don't treat unknown lhs as an error, as it can be just a temporary
|
|
# variable used in other rules.
|
|
image show-unwind -n temporary_var
|
|
# CHECK-LABEL: image show-unwind -n temporary_var
|
|
# CHECK: UNWIND PLANS for unwind-via-stack-win.exe`temporary_var
|
|
# CHECK: Symbol file UnwindPlan:
|
|
# CHECK: This UnwindPlan originally sourced from breakpad STACK WIN
|
|
# CHECK: This UnwindPlan is sourced from the compiler: yes.
|
|
# CHECK: This UnwindPlan is valid at all instruction locations: no.
|
|
# CHECK: This UnwindPlan is for a trap handler function: no.
|
|
# CHECK: Address range of this UnwindPlan: [unwind-via-stack-win.exe..module_image + 4400-4404)
|
|
# CHECK: row[0]: 0: CFA=DW_OP_breg7 +0 => esp=DW_OP_pick 0x0, DW_OP_consts +4, DW_OP_plus eip=DW_OP_pick 0x0, DW_OP_deref
|
|
|
|
# And finally, check that backtracing works as a whole by unwinding a simple
|
|
# stack.
|
|
thread backtrace
|
|
# CHECK-LABEL: thread backtrace
|
|
# CHECK: frame #0: 0x000b1092 unwind-via-stack-win.exe`many_pointer_args
|
|
# CHECK: frame #1: 0x000b1079 unwind-via-stack-win.exe`call_many + 105
|
|
# CHECK: frame #2: 0x000b1085 unwind-via-stack-win.exe`main + 5
|
|
# CHECK: frame #3: 0x77278494 kernel32.dll
|
|
# CHECK-NOT: frame
|