[lldb][test] - Update test cases after yaml2obj change.
authorGeorgii Rymar <grimar@accesssoftek.com>
Mon, 9 Nov 2020 10:52:58 +0000 (13:52 +0300)
committerGeorgii Rymar <grimar@accesssoftek.com>
Mon, 9 Nov 2020 10:53:40 +0000 (13:53 +0300)
The format of program header descriptions was changed by D90458.

lldb/test/Shell/Commands/command-disassemble-process.yaml
lldb/test/Shell/Minidump/Inputs/basic-elf.yaml
lldb/test/Shell/ObjectFile/ELF/PT_LOAD-overlap-PT_INTERP.yaml
lldb/test/Shell/ObjectFile/ELF/PT_LOAD-overlap-PT_TLS.yaml
lldb/test/Shell/ObjectFile/ELF/PT_LOAD-overlap-section.yaml
lldb/test/Shell/ObjectFile/ELF/PT_LOAD-overlap.yaml
lldb/test/Shell/ObjectFile/ELF/PT_LOAD.yaml
lldb/test/Shell/ObjectFile/ELF/PT_TLS-overlap-PT_LOAD.yaml
lldb/test/Shell/ObjectFile/ELF/base-address.yaml
lldb/test/Shell/ObjectFile/ELF/section-overlap.yaml
lldb/test/Shell/SymbolFile/Breakpad/Inputs/basic-elf.yaml

index 7003b3d..e87c476 100644 (file)
@@ -96,14 +96,14 @@ ProgramHeaders:
     Flags: [ PF_X, PF_R ]
     VAddr: 0x4000
     Align: 0x1000
-    Sections:
-      - Section: .text
+    FirstSec: .text
+    LastSec:  .text
   - Type: PT_LOAD
     Flags: [ PF_W, PF_R ]
     VAddr: 0x5000
     Align: 0x1000
-    Sections:
-      - Section: .note.gnu.build-id
+    FirstSec: .note.gnu.build-id
+    LastSec: .note.gnu.build-id
 ...
 
 --- !minidump
index e6dc1b5..29cf8c9 100644 (file)
@@ -28,13 +28,12 @@ ProgramHeaders:
     Flags: [ PF_X, PF_R ]
     VAddr: 0x4000
     Align: 0x1000
-    Sections:
-      - Section: .text
+    FirstSec: .text
+    LastSec:  .text
   - Type: PT_LOAD
     Flags: [ PF_W, PF_R ]
     VAddr: 0x5000
     Align: 0x1000
-    Sections:
-      - Section: .data
-      - Section: .note.gnu.build-id
+    FirstSec: .data
+    LastSec:  .note.gnu.build-id
 ...
index 2190a0e..035bb65 100644 (file)
@@ -39,12 +39,11 @@ ProgramHeaders:
     Flags: [ PF_R ]
     VAddr: 0x1000
     Align: 0x4
-    Sections:
-      - Section: .interp
+    FirstSec: .interp
+    LastSec:  .interp
   - Type: PT_LOAD
     Flags: [ PF_X, PF_W, PF_R ]
     VAddr: 0x1000
     Align: 0x4
-    Sections:
-      - Section: .interp
-      - Section: .text
+    FirstSec: .interp
+    LastSec:  .text
index b1c5fac..d653dd3 100644 (file)
@@ -53,11 +53,11 @@ ProgramHeaders:
     Flags: [ PF_R, PF_W ]
     VAddr: 0x1000
     Align: 0x4
-    Sections:
-      - Section: .tbss
+    FirstSec: .tbss
+    LastSec:  .tbss
   - Type: PT_LOAD
     Flags: [ PF_W, PF_R ]
     VAddr: 0x1000
     Align: 0x4
-    Sections:
-      - Section: .data
+    FirstSec: .data
+    LastSec:  .data
index 3b7bde8..a118672 100644 (file)
@@ -62,5 +62,5 @@ ProgramHeaders:
     Flags: [ PF_X, PF_W, PF_R ]
     VAddr: 0x1008 # Modified by hand to start at 0x1006
     Align: 0x4
-    Sections:
-      - Section: .text
+    FirstSec: .text
+    LastSec:  .text
index 87e908b..da47515 100644 (file)
@@ -31,12 +31,11 @@ ProgramHeaders:
     Flags: [ PF_X, PF_W, PF_R ]
     VAddr: 0x1000
     Align: 0x4
-    Sections:
-      - Section: .text
-      - Section: .data
+    FirstSec: .text
+    LastSec:  .data
   - Type: PT_LOAD
     Flags: [ PF_R, PF_W ]
     VAddr: 0x1008
     Align: 0x4
-    Sections:
-      - Section: .data
+    FirstSec: .data
+    LastSec:  .data
index ee535fc..5beab4d 100644 (file)
@@ -74,6 +74,5 @@ ProgramHeaders:
     Flags: [ PF_X, PF_W, PF_R ]
     VAddr: 0x1000
     Align: 0x4
-    Sections:
-      - Section: .text
-      - Section: .data
+    FirstSec: .text
+    LastSec:  .data
index c4f8f24..ea711ec 100644 (file)
@@ -53,11 +53,11 @@ ProgramHeaders:
     Flags: [ PF_W, PF_R ]
     VAddr: 0x1000
     Align: 0x4
-    Sections:
-      - Section: .data
+    FirstSec: .data
+    LastSec:  .data
   - Type: PT_TLS
     Flags: [ PF_R, PF_W ]
     VAddr: 0x1000
     Align: 0x4
-    Sections:
-      - Section: .tbss
+    FirstSec: .tbss
+    LastSec:  .tbss
index a16347f..97bc788 100644 (file)
@@ -28,7 +28,6 @@ ProgramHeaders:
     Flags: [ PF_X, PF_R ]
     VAddr: 0x400000
     Align: 0x200000
-    Sections:
-      - Section: .pad
-      - Section: .text
+    FirstSec: .pad
+    LastSec:  .text
 ...
index dcf3055..ffea3ad 100644 (file)
@@ -46,6 +46,5 @@ ProgramHeaders:
     Flags: [ PF_X, PF_W, PF_R ]
     VAddr: 0x1000
     Align: 0x4
-    Sections:
-      - Section: .sect1
-      - Section: .overlap1
+    FirstSec: .sect1
+    LastSec:  .overlap1
index a9649ff..e3515e9 100644 (file)
@@ -25,7 +25,6 @@ ProgramHeaders:
     Flags: [ PF_X, PF_R ]
     VAddr: 0x400000
     Align: 0x1000
-    Sections:
-      - Section: .text1
-      - Section: .text2
+    FirstSec: .text1
+    LastSec:  .text2
 ...