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
54 lines
2.2 KiB
Plaintext
54 lines
2.2 KiB
Plaintext
$ cat dwarf5-addrx-0x0-last.c
|
|
#include <stdio.h>
|
|
|
|
int main (int argc, char const *argv[])
|
|
{
|
|
int pass_me = argc + 10;
|
|
printf("Foo\n");
|
|
printf("Bar\n");
|
|
|
|
return 0;
|
|
}
|
|
|
|
$ clang -gdwarf-5 dwarf5-addrx-0x0-last.c -c -o dwarf5-addrx-0x0-last.o
|
|
$ clang dwarf5-addrx-0x0-last.o -o dwarf5-addrx-0x0-last.out
|
|
|
|
# Sanity check: make sure main's low PC (0x0) requires an index computation
|
|
# into the .debug_addr section.
|
|
RUN: llvm-dwarfdump -debug-addr %p/../Inputs/private/tmp/dwarf5/dwarf5-addrx-0x0-last.o | FileCheck %s --check-prefix DEBUGADDR
|
|
|
|
DEBUGADDR: Addrs: [
|
|
DEBUGADDR: 0x0000000000000054
|
|
DEBUGADDR: 0x0000000000000059
|
|
DEBUGADDR: 0x0000000000000000
|
|
DEBUGADDR: ]
|
|
|
|
RUN: dsymutil --linker classic -oso-prepend-path %p/../Inputs %p/../Inputs/private/tmp/dwarf5/dwarf5-addrx-0x0-last.out -o %t.dSYM 2>&1 | FileCheck %s --allow-empty
|
|
RUN: llvm-dwarfdump --verify %t.dSYM 2>&1 | FileCheck %s
|
|
RUN: llvm-dwarfdump --verbose -debug-info %t.dSYM | FileCheck %s --check-prefix DEBUGINFO
|
|
RUN: llvm-dwarfdump --verbose -debug-line %t.dSYM | FileCheck %s --check-prefix DEBUGLINE
|
|
|
|
RUN: dsymutil --linker parallel -oso-prepend-path %p/../Inputs \
|
|
RUN: %p/../Inputs/private/tmp/dwarf5/dwarf5-addrx-0x0-last.out \
|
|
RUN: -o %t.dSYM 2>&1 | FileCheck %s --allow-empty
|
|
RUN: llvm-dwarfdump --verify %t.dSYM 2>&1 | FileCheck %s
|
|
RUN: llvm-dwarfdump --verbose -debug-info %t.dSYM | FileCheck %s --check-prefix DEBUGINFO
|
|
RUN: llvm-dwarfdump --verbose -debug-line %t.dSYM | FileCheck %s --check-prefix DEBUGLINE
|
|
|
|
|
|
CHECK-NOT: error:
|
|
|
|
DEBUGINFO: DW_TAG_subprogram
|
|
DEBUGINFO: DW_AT_low_pc [DW_FORM_addrx] (indexed (00000000) address = 0x0000000100003f4c)
|
|
DEBUGINFO: DW_AT_high_pc [DW_FORM_data4] (0x00000054)
|
|
DEBUGINFO: DW_AT_name [DW_FORM_strx] (indexed (00000007) string = "main")
|
|
|
|
DEBUGLINE: 0x0000000100003f4c 4 0 {{.*}} is_stmt
|
|
DEBUGLINE: 0x0000000100003f6c 5 17 {{.*}} is_stmt prologue_end
|
|
DEBUGLINE: 0x0000000100003f70 5 22 {{.*}}
|
|
DEBUGLINE: 0x0000000100003f74 5 7 {{.*}}
|
|
DEBUGLINE: 0x0000000100003f78 6 3 {{.*}} is_stmt
|
|
DEBUGLINE: 0x0000000100003f84 7 3 {{.*}} is_stmt
|
|
DEBUGLINE: 0x0000000100003f94 9 3 {{.*}} is_stmt epilogue_begin
|
|
DEBUGLINE: 0x0000000100003fa0 9 3 {{.*}} is_stmt end_sequence
|