summaryrefslogtreecommitdiff
path: root/lldb/test/Shell/Minidump/missing-memory-region.yaml
blob: 1784cacfaf1ba0a250cc867f2c66146f31d8c5f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Check that looking up a memory region not present in the Minidump fails
# even if it's in the /proc/<pid>/maps file.

# RUN: yaml2obj %s -o %t
# RUN: %lldb -c %t -o "memory read 0x5000" 2>&1 | FileCheck %s

# CHECK-LABEL: (lldb) memory read 0x5000
# CHECK-NEXT: error: No memory range found for address (0x5000)

--- !minidump
Streams:
  - Type:            SystemInfo
    Processor Arch:  AMD64
    Processor Level: 6
    Processor Revision: 15876
    Number of Processors: 40
    Platform ID:     Linux
    CSD Version:     'Linux 3.13.0-91-generic #138-Ubuntu SMP Fri Jun 24 17:00:34 UTC 2016 x86_64'
    CPU:
      Vendor ID:       GenuineIntel
      Version Info:    0x00000000
      Feature Info:    0x00000000
  - Type:            LinuxProcStatus
    Text:             |
      Name:	test-yaml
      Umask:	0002
      State:	t (tracing stop)
      Pid:	8567
  - Type:            LinuxMaps
    Text:             |
      0x1000-0x1100     r-xp 00000000 00:00 0
      0x2000-0x2200     rw-p 00000000 00:00 0
      0x4000-0x6000     rw-- 00000000 00:00 0
  - Type:            Memory64List
    Memory Ranges:
      - Start of Memory Range: 0x1000
        Data Size:       0x100
        Content :        ''
      - Start of Memory Range: 0x2000
        Data Size:       0x200
        Content :        ''
...