[Lldb-commits] [lldb] r357600 - [LLDB] - Update the test cases after yaml2obj change.

George Rimar via lldb-commits lldb-commits at lists.llvm.org
Wed Apr 3 08:28:36 PDT 2019


Author: grimar
Date: Wed Apr  3 08:28:35 2019
New Revision: 357600

URL: http://llvm.org/viewvc/llvm-project?rev=357600&view=rev
Log:
[LLDB] - Update the test cases after yaml2obj change.

https://reviews.llvm.org/D60122 (r357595) changed the
symbols description format in yaml2obj.

This change updates the LLDB tests.

Modified:
    lldb/trunk/lit/Breakpoint/Inputs/split-dwarf-5-addrbase.dwo.yaml
    lldb/trunk/lit/Breakpoint/Inputs/split-dwarf5-debug-stroffsets-file1.dwo.yaml
    lldb/trunk/lit/Breakpoint/Inputs/split-dwarf5-debug-stroffsets-file2.dwo.yaml
    lldb/trunk/lit/Modules/ELF/build-id-case.yaml
    lldb/trunk/lit/Modules/ELF/duplicate-section.yaml
    lldb/trunk/unittests/Core/Inputs/mangled-function-names.yaml
    lldb/trunk/unittests/ObjectFile/ELF/Inputs/debug-info-relocations.pcm.yaml
    lldb/trunk/unittests/ObjectFile/ELF/Inputs/sections-resolve-consistently.yaml
    lldb/trunk/unittests/Symbol/Inputs/basic-call-frame-info.yaml

Modified: lldb/trunk/lit/Breakpoint/Inputs/split-dwarf-5-addrbase.dwo.yaml
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Breakpoint/Inputs/split-dwarf-5-addrbase.dwo.yaml?rev=357600&r1=357599&r2=357600&view=diff
==============================================================================
--- lldb/trunk/lit/Breakpoint/Inputs/split-dwarf-5-addrbase.dwo.yaml (original)
+++ lldb/trunk/lit/Breakpoint/Inputs/split-dwarf-5-addrbase.dwo.yaml Wed Apr  3 08:28:35 2019
@@ -30,6 +30,4 @@ Sections:
     Flags:           [ SHF_EXCLUDE ]
     AddressAlign:    0x0000000000000001
     Content:         011101B042252525130503250000022E00111B120640186E2503253A0B3B0B3F190000032E00111B1206401803253A0B3B0B49133F19000004240003253E0B0B0B000000
-Symbols:         {}
-DynamicSymbols:  {}
 ...

Modified: lldb/trunk/lit/Breakpoint/Inputs/split-dwarf5-debug-stroffsets-file1.dwo.yaml
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Breakpoint/Inputs/split-dwarf5-debug-stroffsets-file1.dwo.yaml?rev=357600&r1=357599&r2=357600&view=diff
==============================================================================
--- lldb/trunk/lit/Breakpoint/Inputs/split-dwarf5-debug-stroffsets-file1.dwo.yaml (original)
+++ lldb/trunk/lit/Breakpoint/Inputs/split-dwarf5-debug-stroffsets-file1.dwo.yaml Wed Apr  3 08:28:35 2019
@@ -35,6 +35,4 @@ Sections:
     Flags:           [ SHF_EXCLUDE ]
     AddressAlign:    0x0000000000000001
     Content:         150000000500080001000000040000000101040C1F04253200
-Symbols:         {}
-DynamicSymbols:  {}
 ...

Modified: lldb/trunk/lit/Breakpoint/Inputs/split-dwarf5-debug-stroffsets-file2.dwo.yaml
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Breakpoint/Inputs/split-dwarf5-debug-stroffsets-file2.dwo.yaml?rev=357600&r1=357599&r2=357600&view=diff
==============================================================================
--- lldb/trunk/lit/Breakpoint/Inputs/split-dwarf5-debug-stroffsets-file2.dwo.yaml (original)
+++ lldb/trunk/lit/Breakpoint/Inputs/split-dwarf5-debug-stroffsets-file2.dwo.yaml Wed Apr  3 08:28:35 2019
@@ -35,6 +35,4 @@ Sections:
     Flags:           [ SHF_EXCLUDE ]
     AddressAlign:    0x0000000000000001
     Content:         150000000500080001000000040000000100040C1F04253200
-Symbols:         {}
-DynamicSymbols:  {}
 ...

Modified: lldb/trunk/lit/Modules/ELF/build-id-case.yaml
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Modules/ELF/build-id-case.yaml?rev=357600&r1=357599&r2=357600&view=diff
==============================================================================
--- lldb/trunk/lit/Modules/ELF/build-id-case.yaml (original)
+++ lldb/trunk/lit/Modules/ELF/build-id-case.yaml Wed Apr  3 08:28:35 2019
@@ -32,10 +32,9 @@ Sections:
     AddressAlign:    0x0000000000000008
     Content:         DEADBEEFBAADF00D
 Symbols:
-  Local:
-    - Name:            main
-      Type:            STT_FUNC
-      Section:         .text
-      Value:           0x00000000004003D0
-      Size:            0x0000000000000008
+  - Name:            main
+    Type:            STT_FUNC
+    Section:         .text
+    Value:           0x00000000004003D0
+    Size:            0x0000000000000008
 ...

Modified: lldb/trunk/lit/Modules/ELF/duplicate-section.yaml
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Modules/ELF/duplicate-section.yaml?rev=357600&r1=357599&r2=357600&view=diff
==============================================================================
--- lldb/trunk/lit/Modules/ELF/duplicate-section.yaml (original)
+++ lldb/trunk/lit/Modules/ELF/duplicate-section.yaml Wed Apr  3 08:28:35 2019
@@ -33,10 +33,9 @@ Sections:
     AddressAlign:    0x0000000000000008
     Content:         DEADBEEFBAADF00D
 Symbols:
-  Local:
-    - Name:            main
-      Type:            STT_FUNC
-      Section:         .text
-      Value:           0x00000000004003D0
-      Size:            0x0000000000000008
+  - Name:            main
+    Type:            STT_FUNC
+    Section:         .text
+    Value:           0x00000000004003D0
+    Size:            0x0000000000000008
 ...

Modified: lldb/trunk/unittests/Core/Inputs/mangled-function-names.yaml
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/unittests/Core/Inputs/mangled-function-names.yaml?rev=357600&r1=357599&r2=357600&view=diff
==============================================================================
--- lldb/trunk/unittests/Core/Inputs/mangled-function-names.yaml (original)
+++ lldb/trunk/unittests/Core/Inputs/mangled-function-names.yaml Wed Apr  3 08:28:35 2019
@@ -33,84 +33,97 @@ Sections:
     Flags:           [ SHF_MERGE, SHF_STRINGS ]
     AddressAlign:    0x0000000000000001
     Content:         5562756E747520636C616E672076657273696F6E20332E352D317562756E74753120287472756E6B2920286261736564206F6E204C4C564D20332E352900
-Symbols:         
-  Local:           
-    - Type:            STT_SECTION
-      Section:         .text
-    - Type:            STT_SECTION
-      Section:         .anothertext
-      Value:           0x0000000000000010
-    - Type:            STT_SECTION
-      Section:         .eh_frame
-      Value:           0x0000000000000050
-    - Type:            STT_SECTION
-      Section:         .data
-      Value:           0x00000000000000A8
-    - Type:            STT_SECTION
-      Section:         .comment
-    - Name:            /tmp/a.c
-      Type:            STT_FILE
-    - Type:            STT_FILE
-  Global:          
-    - Name:            somedata
-      Type:            STT_OBJECT
-      Section:         .anothertext
-      Value:           0x0000000000000045
-    - Name:            main
-      Type:            STT_FUNC
-      Section:         .anothertext
-      Value:           0x0000000000000010
-      Size:            0x000000000000003F
-    - Name:            _Z3foov
-      Type:            STT_FUNC
-      Section:         .text
-      Size:            0x000000000000000D
-    - Name:            puts at GLIBC_2.5
-      Type:            STT_FUNC
-      Section:         .text
-      Size:            0x000000000000000D
-    - Name:            puts at GLIBC_2.6
-      Type:            STT_FUNC
-      Section:         .text
-      Size:            0x000000000000000D
-    - Name:            _Z5annotv at VERSION3
-      Type:            STT_FUNC
-      Section:         .text
-      Size:            0x000000000000000D
-    - Name:            _ZN1AC2Ev
-      Type:            STT_FUNC
-      Section:         .text
-      Size:            0x000000000000000D
-    - Name:            _ZN1AD2Ev
-      Type:            STT_FUNC
-      Section:         .text
-      Size:            0x000000000000000D
-    - Name:            _ZN1A3barEv
-      Type:            STT_FUNC
-      Section:         .text
-      Size:            0x000000000000000D
-    - Name:            _ZGVZN4llvm4dbgsEvE7thestrm
-      Type:            STT_FUNC
-      Section:         .text
-      Size:            0x000000000000000D
-    - Name:            _ZZN4llvm4dbgsEvE7thestrm
-      Type:            STT_FUNC
-      Section:         .text
-      Size:            0x000000000000000D
-    - Name:            _ZTVN5clang4DeclE
-      Type:            STT_FUNC
-      Section:         .text
-      Size:            0x000000000000000D
-    - Name:            -[ObjCfoo]
-      Type:            STT_FUNC
-      Section:         .text
-      Size:            0x000000000000000D
-    - Name:            +[B ObjCbar(WithCategory)]
-      Type:            STT_FUNC
-      Section:         .text
-      Size:            0x000000000000000D
-    - Name:            _Z12undemangableEvx42
-      Type:            STT_FUNC
-      Section:         .text
-      Size:            0x000000000000000D
+Symbols:
+  - Type:            STT_SECTION
+    Section:         .text
+  - Type:            STT_SECTION
+    Section:         .anothertext
+    Value:           0x0000000000000010
+  - Type:            STT_SECTION
+    Section:         .eh_frame
+    Value:           0x0000000000000050
+  - Type:            STT_SECTION
+    Section:         .data
+    Value:           0x00000000000000A8
+  - Type:            STT_SECTION
+    Section:         .comment
+  - Name:            /tmp/a.c
+    Type:            STT_FILE
+  - Type:            STT_FILE          
+  - Name:            somedata
+    Type:            STT_OBJECT
+    Section:         .anothertext
+    Value:           0x0000000000000045
+    Binding:         STB_GLOBAL
+  - Name:            main
+    Type:            STT_FUNC
+    Section:         .anothertext
+    Value:           0x0000000000000010
+    Size:            0x000000000000003F
+    Binding:         STB_GLOBAL
+  - Name:            _Z3foov
+    Type:            STT_FUNC
+    Section:         .text
+    Size:            0x000000000000000D
+    Binding:         STB_GLOBAL
+  - Name:            puts at GLIBC_2.5
+    Type:            STT_FUNC
+    Section:         .text
+    Size:            0x000000000000000D
+    Binding:         STB_GLOBAL
+  - Name:            puts at GLIBC_2.6
+    Type:            STT_FUNC
+    Section:         .text
+    Size:            0x000000000000000D
+    Binding:         STB_GLOBAL
+  - Name:            _Z5annotv at VERSION3
+    Type:            STT_FUNC
+    Section:         .text
+    Size:            0x000000000000000D
+    Binding:         STB_GLOBAL
+  - Name:            _ZN1AC2Ev
+    Type:            STT_FUNC
+    Section:         .text
+    Size:            0x000000000000000D
+    Binding:         STB_GLOBAL
+  - Name:            _ZN1AD2Ev
+    Type:            STT_FUNC
+    Section:         .text
+    Size:            0x000000000000000D
+    Binding:         STB_GLOBAL
+  - Name:            _ZN1A3barEv
+    Type:            STT_FUNC
+    Section:         .text
+    Size:            0x000000000000000D
+    Binding:         STB_GLOBAL
+  - Name:            _ZGVZN4llvm4dbgsEvE7thestrm
+    Type:            STT_FUNC
+    Section:         .text
+    Size:            0x000000000000000D
+    Binding:         STB_GLOBAL
+  - Name:            _ZZN4llvm4dbgsEvE7thestrm
+    Type:            STT_FUNC
+    Section:         .text
+    Size:            0x000000000000000D
+    Binding:         STB_GLOBAL
+  - Name:            _ZTVN5clang4DeclE
+    Type:            STT_FUNC
+    Section:         .text
+    Size:            0x000000000000000D
+    Binding:         STB_GLOBAL
+  - Name:            -[ObjCfoo]
+    Type:            STT_FUNC
+    Section:         .text
+    Size:            0x000000000000000D
+    Binding:         STB_GLOBAL
+  - Name:            +[B ObjCbar(WithCategory)]
+    Type:            STT_FUNC
+    Section:         .text
+    Size:            0x000000000000000D
+    Binding:         STB_GLOBAL
+  - Name:            _Z12undemangableEvx42
+    Type:            STT_FUNC
+    Section:         .text
+    Size:            0x000000000000000D
+    Binding:         STB_GLOBAL
 ...

Modified: lldb/trunk/unittests/ObjectFile/ELF/Inputs/debug-info-relocations.pcm.yaml
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/unittests/ObjectFile/ELF/Inputs/debug-info-relocations.pcm.yaml?rev=357600&r1=357599&r2=357600&view=diff
==============================================================================
--- lldb/trunk/unittests/ObjectFile/ELF/Inputs/debug-info-relocations.pcm.yaml (original)
+++ lldb/trunk/unittests/ObjectFile/ELF/Inputs/debug-info-relocations.pcm.yaml Wed Apr  3 08:28:35 2019
@@ -133,51 +133,50 @@ Sections:
         Symbol:          .text
         Type:            R_AARCH64_ABS64
 Symbols:         
-  Local:           
-    - Name:            reduced.h
-      Type:            STT_FILE
-    - Name:            '$d.1'
-      Section:         .debug_str
-    - Name:            '$d.2'
-      Section:         .debug_abbrev
-    - Name:            '$d.3'
-      Section:         .debug_info
-    - Name:            '$d.4'
-      Section:         .debug_macinfo
-    - Name:            '$d.5'
-      Section:         .debug_pubnames
-    - Name:            '$d.6'
-      Section:         .debug_pubtypes
-    - Name:            '$d.7'
-      Section:         .comment
-    - Name:            '$d.8'
-      Section:         .debug_frame
-    - Name:            '$d.9'
-      Section:         .debug_line
-    - Name:            '$x.0'
-      Section:         .text
-    - Name:            .text
-      Type:            STT_SECTION
-      Section:         .text
-    - Name:            .debug_str
-      Type:            STT_SECTION
-      Section:         .debug_str
-    - Name:            .debug_abbrev
-      Type:            STT_SECTION
-      Section:         .debug_abbrev
-    - Name:            .debug_info
-      Type:            STT_SECTION
-      Section:         .debug_info
-    - Name:            .debug_frame
-      Type:            STT_SECTION
-      Section:         .debug_frame
-    - Name:            .debug_line
-      Type:            STT_SECTION
-      Section:         .debug_line
-  Global:          
-    - Name:            f
-      Type:            STT_FUNC
-      Section:         .text
-      Size:            0x0000000000000008
+  - Name:            reduced.h
+    Type:            STT_FILE
+  - Name:            '$d.1'
+    Section:         .debug_str
+  - Name:            '$d.2'
+    Section:         .debug_abbrev
+  - Name:            '$d.3'
+    Section:         .debug_info
+  - Name:            '$d.4'
+    Section:         .debug_macinfo
+  - Name:            '$d.5'
+    Section:         .debug_pubnames
+  - Name:            '$d.6'
+    Section:         .debug_pubtypes
+  - Name:            '$d.7'
+    Section:         .comment
+  - Name:            '$d.8'
+    Section:         .debug_frame
+  - Name:            '$d.9'
+    Section:         .debug_line
+  - Name:            '$x.0'
+    Section:         .text
+  - Name:            .text
+    Type:            STT_SECTION
+    Section:         .text
+  - Name:            .debug_str
+    Type:            STT_SECTION
+    Section:         .debug_str
+  - Name:            .debug_abbrev
+    Type:            STT_SECTION
+    Section:         .debug_abbrev
+  - Name:            .debug_info
+    Type:            STT_SECTION
+    Section:         .debug_info
+  - Name:            .debug_frame
+    Type:            STT_SECTION
+    Section:         .debug_frame
+  - Name:            .debug_line
+    Type:            STT_SECTION
+    Section:         .debug_line
+  - Name:            f
+    Type:            STT_FUNC
+    Section:         .text
+    Size:            0x0000000000000008
+    Binding:         STB_GLOBAL
 DynamicSymbols:  
 ...

Modified: lldb/trunk/unittests/ObjectFile/ELF/Inputs/sections-resolve-consistently.yaml
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/unittests/ObjectFile/ELF/Inputs/sections-resolve-consistently.yaml?rev=357600&r1=357599&r2=357600&view=diff
==============================================================================
--- lldb/trunk/unittests/ObjectFile/ELF/Inputs/sections-resolve-consistently.yaml (original)
+++ lldb/trunk/unittests/ObjectFile/ELF/Inputs/sections-resolve-consistently.yaml Wed Apr  3 08:28:35 2019
@@ -31,20 +31,22 @@ Sections:
     AddressAlign:    0x0000000000000004
     Size:            0x0000000000000004
 Symbols:
-  Global:
-    - Name:            Y
-      Type:            STT_OBJECT
-      Section:         .data
-      Value:           0x0000000000601000
-      Size:            0x0000000000000004
-    - Name:            _start
-      Type:            STT_FUNC
-      Section:         .text
-      Value:           0x0000000000400180
-      Size:            0x0000000000000014
-    - Name:            X
-      Type:            STT_OBJECT
-      Section:         .bss
-      Value:           0x0000000000601004
-      Size:            0x0000000000000004
+  - Name:            Y
+    Type:            STT_OBJECT
+    Section:         .data
+    Value:           0x0000000000601000
+    Size:            0x0000000000000004
+    Binding:         STB_GLOBAL
+  - Name:            _start
+    Type:            STT_FUNC
+    Section:         .text
+    Value:           0x0000000000400180
+    Size:            0x0000000000000014
+    Binding:         STB_GLOBAL
+  - Name:            X
+    Type:            STT_OBJECT
+    Section:         .bss
+    Value:           0x0000000000601004
+    Size:            0x0000000000000004
+    Binding:         STB_GLOBAL
 ...

Modified: lldb/trunk/unittests/Symbol/Inputs/basic-call-frame-info.yaml
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/unittests/Symbol/Inputs/basic-call-frame-info.yaml?rev=357600&r1=357599&r2=357600&view=diff
==============================================================================
--- lldb/trunk/unittests/Symbol/Inputs/basic-call-frame-info.yaml (original)
+++ lldb/trunk/unittests/Symbol/Inputs/basic-call-frame-info.yaml Wed Apr  3 08:28:35 2019
@@ -119,20 +119,22 @@ Sections:
 #  DW_CFA_advance_loc: 3 to 0000000000000284
 #  DW_CFA_def_cfa_register: r6 (rbp)
 Symbols:
-  Global:
-    - Name:            eh_frame
-      Type:            STT_FUNC
-      Section:         .text
-      Value:           0x0000000000000260
-      Size:            0x000000000000000C
-    - Name:            debug_frame3
-      Type:            STT_FUNC
-      Section:         .text
-      Value:           0x0000000000000270
-      Size:            0x000000000000000C
-    - Name:            debug_frame4
-      Type:            STT_FUNC
-      Section:         .text
-      Value:           0x0000000000000280
-      Size:            0x000000000000000C
+  - Name:            eh_frame
+    Type:            STT_FUNC
+    Section:         .text
+    Value:           0x0000000000000260
+    Size:            0x000000000000000C
+    Binding:         STB_GLOBAL
+  - Name:            debug_frame3
+    Type:            STT_FUNC
+    Section:         .text
+    Value:           0x0000000000000270
+    Size:            0x000000000000000C
+    Binding:         STB_GLOBAL
+  - Name:            debug_frame4
+    Type:            STT_FUNC
+    Section:         .text
+    Value:           0x0000000000000280
+    Size:            0x000000000000000C
+    Binding:         STB_GLOBAL
 ...




More information about the lldb-commits mailing list