NAME=: DMP64 Check
FILE=bins/dmp/bmp.dmp
CMDS=i~format
EXPECT=<<EOF
format   dmp64
EOF
RUN

NAME=: DMP64 Info
FILE=bins/dmp/bmp.dmp
CMDS=iI
EXPECT=<<EOF
arch     x86
baddr    0xffffffffffffffff
binsz    88428600
bintype  dmp64
bits     64
canary   false
retguard false
crypto   false
endian   little
havecode true
laddr    0x0
linenum  false
lsyms    false
machine  AMD64
maxopsz  16
minopsz  1
nx       false
os       Unknown
pcalign  0
pic      false
relocs   false
sanitiz  false
static   true
stripped false
va       true
EOF
RUN

NAME=: DMP header & bmp header
FILE=bins/dmp/bmp.dmp
CMDS=iH
EXPECT=<<EOF
DUMP_HEADER64:
  MajorVersion : 0x0000000f
  MinorVersion : 0x000047ba
  DirectoryTableBase : 0x00000000006d4002
  PfnDataBase : 0xfffff80510c22468
  PsLoadedModuleList : 0xfffff80510af62f0
  PsActiveProcessHead : 0xfffff80510ae6980
  MachineImageType : 0x00008664
  NumberProcessors : 0x00000001
  BugCheckCode : 0x00000000
  BugCheckParameter1 : 0x0000000000000000
  BugCheckParameter2 : 0x0000000000000000
  BugCheckParameter3 : 0x0000000000000000
  BugCheckParameter4 : 0x0000000000000000
  KdDebuggerDataBlock : 0xfffff80510ad45e0
  SecondaryDataState : 0x45474150
  ProductType : 0x45474150
  SuiteMask : 0x45474150

BITMAP_DUMP:
  HeaderSize : 0x0000a038
  BitmapSize : 0x00040000
  Pages : 0x0000544b
EOF
RUN

NAME=: DMP BMP Page sections
FILE=bins/dmp/bmp.dmp
CMDS=iS~?
EXPECT=<<EOF
21582
EOF
RUN

NAME=: Resolve vaddr
FILE=bins/dmp/bmp.dmp
CMDS=px 64 @ 0x1000
EXPECT=<<EOF
- offset -   0 1  2 3  4 5  6 7  8 9  A B  C D  E F  0123456789ABCDEF
0x00001000  0000 0000 0000 0000 0000 f9ff 0000 0000  ................
0x00001010  0006 0101 0000 0000 0000 0000 0000 0000  ................
0x00001020  0000 0000 0000 0000 0000 0000 0000 0000  ................
0x00001030  0000 0000 0000 0000 0000 0000 0000 0000  ................
EOF
RUN
