41 lines · plain
1; Check handling of dwo files with multiple compile units. Right now this is not2; supported, but it should not cause us to crash or misbehave either...3 4; RUN: llc %s -filetype=obj -o %t.o --split-dwarf-file=%t.o -split-dwarf-cross-cu-references5; RUN: %lldb %t.o -o "image lookup -s x1 -v" -o "image lookup -s x2 -v" -b | FileCheck %s6 7; CHECK: image lookup -s x18; CHECK: 1 symbols match 'x1'9; CHECK-NOT: CompileUnit:10; CHECK-NOT: Variable:11 12; CHECK: image lookup -s x213; CHECK: 1 symbols match 'x2'14; CHECK-NOT: CompileUnit:15; CHECK-NOT: Variable:16 17target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"18target triple = "x86_64-unknown-linux-gnu"19 20@x1 = dso_local global i32 42, align 4, !dbg !1021@x2 = dso_local global i32 47, align 4, !dbg !2022 23!llvm.dbg.cu = !{!12, !22}24!llvm.module.flags = !{!8, !9, !1}25 26!10 = !DIGlobalVariableExpression(var: !11, expr: !DIExpression())27!11 = distinct !DIGlobalVariable(name: "x1", scope: !12, type: !7)28!12 = distinct !DICompileUnit(language: DW_LANG_C99, file: !3, emissionKind: FullDebug, globals: !15)29!15 = !{!10}30 31!20 = !DIGlobalVariableExpression(var: !21, expr: !DIExpression())32!21 = distinct !DIGlobalVariable(name: "x2", scope: !22, type: !7)33!22 = distinct !DICompileUnit(language: DW_LANG_C99, file: !3, emissionKind: FullDebug, globals: !25)34!25 = !{!20}35 36!3 = !DIFile(filename: "-", directory: "/tmp")37!7 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)38!8 = !{i32 2, !"Dwarf Version", i32 4}39!9 = !{i32 2, !"Debug Info Version", i32 3}40!1 = !{i32 1, !"wchar_size", i32 4}41