# Verify that dsymutil can match an object file by compatible triple when there # is no exact string match (e.g. the debug map triple has a version suffix that # the object file triple lacks). # RUN: dsymutil --linker classic -f -oso-prepend-path=%p/../Inputs -y %s -o - | llvm-dwarfdump -debug-info - | FileCheck %s # RUN: dsymutil --linker parallel -f -oso-prepend-path=%p/../Inputs -y %s -o - | llvm-dwarfdump -debug-info - | FileCheck %s # The fat-test.o object reports its x86_64 slice as "x86_64-apple-darwin". # Using "x86_64-apple-darwin20" here exercises the compatible-triple fallback: # the strings differ, but the triples are compatible (same arch, vendor, OS kind). --- triple: 'x86_64-apple-darwin20' objects: - filename: fat-test.o symbols: - { sym: _x86_64_var, objAddr: 0x0, binAddr: 0x1000, size: 0x4 } ... # CHECK: .debug_info contents: # CHECK: DW_TAG_variable # CHECK-NOT: {{DW_TAG|NULL}} # CHECK: DW_AT_name{{.*}}"x86_64_var"