# RUN: yaml2obj %s | obj2yaml - | FileCheck %s

--- !minidump
Streams:
  - Type:            SystemInfo
    Processor Arch:  ARM64
    Platform ID:     Linux
    CSD Version:     Linux 3.13.0-91-generic
    CPU:
      CPUID:           0x05060708
  - Type:            LinuxAuxv
    Content:         DEADBEEFBAADF00D
  - Type:            LinuxMaps
    Text:             |
      400d9000-400db000 r-xp 00000000 b3:04 227        /system/bin/app_process
      400db000-400dc000 r--p 00001000 b3:04 227        /system/bin/app_process

  - Type:            ModuleList
    Modules:
      - Base of Image:   0x0001020304050607
        Size of Image:   0x08090A0B
        Checksum:        0x0C0D0E0F
        Time Date Stamp: 47
        Module Name:     a.out
        Version Info:
          Signature:            0x10111213
          Struct Version:       0x14151617
          File Version High:    0x18191A1B
          File Version Low:     0x1C1D1E1F
          Product Version High: 0x20212223
          Product Version Low:  0x24252627
          File Flags Mask:      0x28292A2B
          File Flags:           0x2C2D2E2F
          File OS:              0x30313233
          File Type:            0x34353637
          File Subtype:         0x38393A3B
          File Date High:       0x3C3D3E3F
          File Date Low:        0x40414243
        CodeView Record: '44454647'
        Misc Record:     '48494A4B'
      - Base of Image:   0x4C4D4E4F50515253
        Size of Image:   0x54555657
        Module Name:     libb.so
        CodeView Record: '58595A5B'
  - Type:            ThreadList
    Threads:
      - Thread Id:         0x5C5D5E5F
        Priority Class:    0x60616263
        Environment Block: 0x6465666768696A6B
        Context:           '7C7D7E7F80818283'
        Stack:
          Start of Memory Range: 0x6C6D6E6F70717273
          Content:               '7475767778797A7B'
  - Type:            MemoryList
    Memory Ranges:   
      - Start of Memory Range: 0x7C7D7E7F80818283
        Content:               '8485868788'
...

# CHECK:      --- !minidump
# CHECK-NEXT: Streams:
# CHECK-NEXT:   - Type:            SystemInfo
# CHECK-NEXT:     Processor Arch:  ARM64
# CHECK-NEXT:     Platform ID:     Linux
# CHECK-NEXT:     CSD Version:     Linux 3.13.0-91-generic
# CHECK-NEXT:     CPU:
# CHECK-NEXT:       CPUID:           0x05060708
# CHECK-NEXT:   - Type:            LinuxAuxv
# CHECK-NEXT:     Content:         DEADBEEFBAADF00D
# CHECK-NEXT:   - Type:            LinuxMaps
# CHECK-NEXT:     Text:             |
# CHECK-NEXT:       400d9000-400db000 r-xp 00000000 b3:04 227        /system/bin/app_process
# CHECK-NEXT:       400db000-400dc000 r--p 00001000 b3:04 227        /system/bin/app_process
# CHECK-EMPTY:
# CHECK-NEXT:   - Type:            ModuleList
# CHECK-NEXT:     Modules:
# CHECK-NEXT:       - Base of Image:   0x0001020304050607
# CHECK-NEXT:         Size of Image:   0x08090A0B
# CHECK-NEXT:         Checksum:        0x0C0D0E0F
# CHECK-NEXT:         Time Date Stamp: 47
# CHECK-NEXT:         Module Name:     a.out
# CHECK-NEXT:         Version Info:
# CHECK-NEXT:           Signature:            0x10111213
# CHECK-NEXT:           Struct Version:       0x14151617
# CHECK-NEXT:           File Version High:    0x18191A1B
# CHECK-NEXT:           File Version Low:     0x1C1D1E1F
# CHECK-NEXT:           Product Version High: 0x20212223
# CHECK-NEXT:           Product Version Low:  0x24252627
# CHECK-NEXT:           File Flags Mask:      0x28292A2B
# CHECK-NEXT:           File Flags:           0x2C2D2E2F
# CHECK-NEXT:           File OS:              0x30313233
# CHECK-NEXT:           File Type:            0x34353637
# CHECK-NEXT:           File Subtype:         0x38393A3B
# CHECK-NEXT:           File Date High:       0x3C3D3E3F
# CHECK-NEXT:           File Date Low:        0x40414243
# CHECK-NEXT:         CodeView Record: '44454647'
# CHECK-NEXT:         Misc Record:     48494A4B
# CHECK-NEXT:       - Base of Image:   0x4C4D4E4F50515253
# CHECK-NEXT:         Size of Image:   0x54555657
# CHECK-NEXT:         Module Name:     libb.so
# CHECK-NEXT:         CodeView Record: 58595A5B
# CHECK-NEXT:   - Type:            ThreadList
# CHECK-NEXT:     Threads:
# CHECK-NEXT:       - Thread Id:         0x5C5D5E5F
# CHECK-NEXT:         Priority Class:    0x60616263
# CHECK-NEXT:         Environment Block: 0x6465666768696A6B
# CHECK-NEXT:         Context:           7C7D7E7F80818283
# CHECK-NEXT:         Stack:
# CHECK-NEXT:           Start of Memory Range: 0x6C6D6E6F70717273
# CHECK-NEXT:           Content:               7475767778797A7B
# CHECK-NEXT:   - Type:            MemoryList
# CHECK-NEXT:     Memory Ranges:   
# CHECK-NEXT:       - Start of Memory Range: 0x7C7D7E7F80818283
# CHECK-NEXT:         Content:               '8485868788'
# CHECK-NEXT: ...
