mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 05:46:06 +00:00

When output range is only one entry, and input is low_pc/high_pc do not convert to ranges. This helps with size of .debug_ranges/.debug_rnglists. It also helps when either low_pc/high_pc is 0. We not generating potentially invalid ranges that result in LLDB error. Also fixed handling of DW_AT_subprogram with ranges. This can be created with -fbasic-block-sections=all. Reviewed By: maksfb Differential Revision: https://reviews.llvm.org/D156374
22 lines
1.0 KiB
Plaintext
22 lines
1.0 KiB
Plaintext
# REQUIRES: system-linux
|
|
|
|
# RUN: llvm-mc -dwarf-version=5 -filetype=obj -triple x86_64-unknown-linux %p/Inputs/dwarf5-locexpr-referrence-main.s -o %tmain.o
|
|
# RUN: llvm-mc -dwarf-version=5 -filetype=obj -triple x86_64-unknown-linux %p/Inputs/dwarf5-locexpr-referrence-helper.s -o %thelper.o
|
|
# RUN: %clang %cflags -dwarf-5 %tmain.o %thelper.o -o %t.exe -Wl,-q
|
|
# RUN: llvm-bolt %t.exe -o %t.bolt --update-debug-sections
|
|
# RUN: llvm-dwarfdump --show-form --verbose --debug-info %t.bolt | FileCheck --check-prefix=CHECK %s
|
|
|
|
# This test checks that we update relative DIE references with DW_OP_convert that are in locexpr.
|
|
|
|
# CHECK: version = 0x0005
|
|
# CHECK: DW_TAG_variable
|
|
# CHECK-NEXT: DW_AT_location
|
|
# CHECK-SAME: DW_OP_convert (0x00000028 -> 0x00000028)
|
|
# CHECK-SAME: DW_OP_convert (0x0000002c -> 0x0000002c)
|
|
# CHECK: version = 0x0005
|
|
# CHECK: DW_TAG_variable
|
|
# CHECK-NEXT: DW_AT_location
|
|
# CHECK-SAME: DW_OP_convert (0x00000028 -> 0x00000092)
|
|
# CHECK-SAME: DW_OP_convert (0x0000002c -> 0x00000096)
|
|
# CHECK: version = 0x0005
|