[Lldb-commits] [PATCH] D62008: DWARF: Parse type units from the debug_types section

Jan Kratochvil via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu May 16 07:48:43 PDT 2019


jankratochvil added a comment.

On Fedora 29 x86_64 I get:

  FAIL: LLDB :: SymbolFile/DWARF/debug-types-basic.test (123 of 1636)
  ******************** TEST 'LLDB :: SymbolFile/DWARF/debug-types-basic.test' FAILED ********************
  Script:
  --
  : 'RUN: at line 3';   /home/jkratoch/redhat/llvm-monorepo-clangassert/bin/clang --driver-mode=g++ -pthread -target x86_64-pc-linux /home/jkratoch/redhat/llvm-monorepo/lldb/lit/SymbolFile/DWARF/Inputs/debug-types-basic.cpp    -g -fdebug-types-section -c -o /home/jkratoch/redhat/llvm-monorepo-clangassert/tools/lldb/lit/SymbolFile/DWARF/Output/debug-types-basic.test.tmp.o
  : 'RUN: at line 5';   /home/jkratoch/redhat/llvm-monorepo-clangassert/bin/ld.lld /home/jkratoch/redhat/llvm-monorepo-clangassert/tools/lldb/lit/SymbolFile/DWARF/Output/debug-types-basic.test.tmp.o -o /home/jkratoch/redhat/llvm-monorepo-clangassert/tools/lldb/lit/SymbolFile/DWARF/Output/debug-types-basic.test.tmp
  : 'RUN: at line 6';   /home/jkratoch/redhat/llvm-monorepo-clangassert/bin/lldb --no-lldbinit -S /home/jkratoch/redhat/llvm-monorepo/lldb/lit/lit-lldb-init /home/jkratoch/redhat/llvm-monorepo-clangassert/tools/lldb/lit/SymbolFile/DWARF/Output/debug-types-basic.test.tmp -s /home/jkratoch/redhat/llvm-monorepo/lldb/lit/SymbolFile/DWARF/debug-types-basic.test -o exit | /home/jkratoch/redhat/llvm-monorepo-clangassert/bin/FileCheck /home/jkratoch/redhat/llvm-monorepo/lldb/lit/SymbolFile/DWARF/debug-types-basic.test
  --
  Exit Code: 1
  
  Command Output (stderr):
  --
  ld.lld: warning: cannot find entry symbol _start; defaulting to 0x201000
  warning: (x86_64) /home/jkratoch/redhat/llvm-monorepo-clangassert/tools/lldb/lit/SymbolFile/DWARF/Output/debug-types-basic.test.tmp lldb doesn’t support .debug_types debug info
  error: use of undeclared identifier 'E'
  /home/jkratoch/redhat/llvm-monorepo/lldb/lit/SymbolFile/DWARF/debug-types-basic.test:10:10: error: CHECK: expected string not found in input
  # CHECK: struct A {
           ^
  <stdin>:11:1: note: scanning from here
  no type was found matching 'A'
  ^
  <stdin>:11:11: note: possible intended match here
  no type was found matching 'A'
            ^
  /home/jkratoch/redhat/llvm-monorepo/lldb/lit/SymbolFile/DWARF/debug-types-basic.test:19:10: error: CHECK: expected string not found in input
  # CHECK: enum E {
           ^
  <stdin>:13:1: note: scanning from here
  no type was found matching 'E'
  ^
  <stdin>:14:15: note: possible intended match here
  (lldb) type lookup EC
                ^
  /home/jkratoch/redhat/llvm-monorepo/lldb/lit/SymbolFile/DWARF/debug-types-basic.test:27:10: error: CHECK: expected string not found in input
  # CHECK: enum class EC {
           ^
  <stdin>:15:1: note: scanning from here
  no type was found matching 'EC'
  ^
  <stdin>:15:24: note: possible intended match here
  no type was found matching 'EC'
                         ^
  /home/jkratoch/redhat/llvm-monorepo/lldb/lit/SymbolFile/DWARF/debug-types-basic.test:38:16: error: CHECK-LABEL: expected string not found in input
  # CHECK-LABEL: print (EC) 1
                 ^
  <stdin>:17:1: note: scanning from here
  (lldb) exit
  ^
  <stdin>:17:8: note: possible intended match here
  (lldb) exit
         ^
  
  --
  
  ********************
  FAIL: LLDB :: SymbolFile/DWARF/debug-types-expressions.test (144 of 1636)
  ******************** TEST 'LLDB :: SymbolFile/DWARF/debug-types-expressions.test' FAILED ********************
  Script:
  --
  : 'RUN: at line 3';   /home/jkratoch/redhat/llvm-monorepo-clangassert/bin/clang --driver-mode=g++ -pthread /home/jkratoch/redhat/llvm-monorepo/lldb/lit/SymbolFile/DWARF/Inputs/debug-types-expressions.cpp    -g -fdebug-types-section -o /home/jkratoch/redhat/llvm-monorepo-clangassert/tools/lldb/lit/SymbolFile/DWARF/Output/debug-types-expressions.test.tmp
  : 'RUN: at line 5';   /home/jkratoch/redhat/llvm-monorepo-clangassert/bin/lldb --no-lldbinit -S /home/jkratoch/redhat/llvm-monorepo/lldb/lit/lit-lldb-init /home/jkratoch/redhat/llvm-monorepo-clangassert/tools/lldb/lit/SymbolFile/DWARF/Output/debug-types-expressions.test.tmp -s /home/jkratoch/redhat/llvm-monorepo/lldb/lit/SymbolFile/DWARF/debug-types-expressions.test -o exit | /home/jkratoch/redhat/llvm-monorepo-clangassert/bin/FileCheck /home/jkratoch/redhat/llvm-monorepo/lldb/lit/SymbolFile/DWARF/debug-types-expressions.test
  --
  Exit Code: 1
  
  Command Output (stderr):
  --
  warning: (x86_64) /home/jkratoch/redhat/llvm-monorepo-clangassert/tools/lldb/lit/SymbolFile/DWARF/Output/debug-types-expressions.test.tmp lldb doesn’t support .debug_types debug info
  error: Multiple internal symbols found for 'a'
  id = {0x00000e8f}, range = [0x00001555552e2348-0x00001555552e2350), name="a"
  id = {0x000003ee}, range = [0x00001555552a1c78-0x00001555552a1c80), name="a"
  id = {0x00000b5d}, range = [0x00001555552e2348-0x00001555552e2350), name="a"
  id = {0x00000d17}, range = [0x00001555552e2348-0x00001555552e2350), name="a"
  
  error: use of undeclared identifier 'a'
  /home/jkratoch/redhat/llvm-monorepo/lldb/lit/SymbolFile/DWARF/debug-types-expressions.test:14:10: error: CHECK: expected string not found in input
  # CHECK: (B *) a =
           ^
  <stdin>:24:1: note: scanning from here
  (lldb) print a->f()
  ^
  /home/jkratoch/redhat/llvm-monorepo/lldb/lit/SymbolFile/DWARF/debug-types-expressions.test:21:16: error: CHECK-LABEL: expected string not found in input
  # CHECK-LABEL: print ns::A()
                 ^
  <stdin>:25:1: note: scanning from here
  (lldb) exit
  ^
  <stdin>:25:8: note: possible intended match here
  (lldb) exit
         ^
  
  --
  
  ********************
  Testing Time: 88.82s
  ********************
  Failing Tests (2):
      LLDB :: SymbolFile/DWARF/debug-types-basic.test
      LLDB :: SymbolFile/DWARF/debug-types-expressions.test
  
    Expected Passes    : 1587
    Expected Failures  : 1
    Unsupported Tests  : 46
    Unexpected Failures: 2


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D62008/new/

https://reviews.llvm.org/D62008





More information about the lldb-commits mailing list