mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-01 09:00:46 +00:00
Adopt new "om" command output in tests
This commit is contained in:
parent
7a1b64131d
commit
08499ea67f
@ -63,9 +63,9 @@ ood > /dev/null
|
||||
om
|
||||
EOF
|
||||
EXPECT=<<EOF
|
||||
1 fd: 3 +0x00000000 0x00000000 - 0x7ffffffffffffffe rwx
|
||||
* 1 fd: 3 +0x00000000 0x00000000 - 0x7ffffffffffffffe rwx
|
||||
|
||||
1 fd: 4 +0x00000000 0x00000000 - 0x7ffffffffffffffe rwx
|
||||
* 1 fd: 4 +0x00000000 0x00000000 - 0x7ffffffffffffffe rwx
|
||||
EOF
|
||||
RUN
|
||||
|
||||
|
@ -4471,14 +4471,14 @@ File has been modified.
|
||||
+ sha256 53cb8b3aec20da6a313ac996ca8f518bca9fa4768ff771d35513be09a387f025
|
||||
EOF
|
||||
EXPECT=<<EOF
|
||||
4 fd: 3 +0x00001000 0x100000000 - 0x100000fff r-x fmap.__TEXT
|
||||
3 fd: 3 +0x00002000 0x100001000 - 0x100001fff r-- fmap.__DATA
|
||||
2 fd: 3 +0x00003000 0x100002000 - 0x100003fff r-- fmap.__LINKEDIT
|
||||
1 fd: 3 +0x00000000 0x00000000 - 0x0000c52f r--
|
||||
4 fd: 3 +0x00001000 0x100000000 - 0x100000fff rwx fmap.__TEXT
|
||||
3 fd: 3 +0x00002000 0x100001000 - 0x100001fff rwx fmap.__DATA
|
||||
2 fd: 3 +0x00003000 0x100002000 - 0x100003fff rwx fmap.__LINKEDIT
|
||||
1 fd: 3 +0x00000000 0x00000000 - 0x0000c52f rwx
|
||||
- 4 fd: 3 +0x00001000 0x100000000 - 0x100000fff r-x fmap.__TEXT
|
||||
- 3 fd: 3 +0x00002000 0x100001000 - 0x100001fff r-- fmap.__DATA
|
||||
- 2 fd: 3 +0x00003000 0x100002000 - 0x100003fff r-- fmap.__LINKEDIT
|
||||
* 1 fd: 3 +0x00000000 0x00000000 - 0x0000c52f r--
|
||||
- 4 fd: 3 +0x00001000 0x100000000 - 0x100000fff rwx fmap.__TEXT
|
||||
- 3 fd: 3 +0x00002000 0x100001000 - 0x100001fff rwx fmap.__DATA
|
||||
- 2 fd: 3 +0x00003000 0x100002000 - 0x100003fff rwx fmap.__LINKEDIT
|
||||
* 1 fd: 3 +0x00000000 0x00000000 - 0x0000c52f rwx
|
||||
md5 84144530144b53a704c84d9c65ab5f92
|
||||
sha1 9016e215a321184c42c28ab03847554851932713
|
||||
sha256 95debaecaaaf89c7f5151218def15ef18c8be375aeccf0564a3b16416c361012
|
||||
|
@ -341,8 +341,8 @@ EXPECT=<<EOF
|
||||
|
||||
0x00000010 2021 2223 2425 2627 2829 2a2b 2c2d 2e2f !"#$%&'()*+,-./
|
||||
|
||||
2 fd: 4 +0x00000000 0x00000000 - 0x000000ff rwx
|
||||
1 fd: 3 +0x00000000 0x00000000 - 0x000001ff rwx
|
||||
* 2 fd: 4 +0x00000000 0x00000000 - 0x000000ff rwx
|
||||
* 1 fd: 3 +0x00000000 0x00000000 - 0x000001ff rwx
|
||||
|
||||
0x00000010 1011 1213 1415 1617 1819 1a1b 1c1d 1e1f ................
|
||||
EOF
|
||||
@ -401,11 +401,11 @@ om
|
||||
# pv1
|
||||
EOF
|
||||
EXPECT=<<EOF
|
||||
5 fd: 3 +0x00000000 0x00000000 - 0x0000347f rwx fmap.LOAD0
|
||||
4 fd: 3 +0x00004000 0x00004000 - 0x00016790 rwx fmap.LOAD1
|
||||
3 fd: 3 +0x00017000 0x00017000 - 0x0001f7bf rwx fmap.LOAD2
|
||||
2 fd: 3 +0x00020050 0x00021050 - 0x00022267 rwx fmap.LOAD3
|
||||
1 fd: 4 +0x00000000 0x00022268 - 0x00023557 rw- mmap.LOAD3
|
||||
- 5 fd: 3 +0x00000000 0x00000000 - 0x0000347f rwx fmap.LOAD0
|
||||
* 4 fd: 3 +0x00004000 0x00004000 - 0x00016790 rwx fmap.LOAD1
|
||||
- 3 fd: 3 +0x00017000 0x00017000 - 0x0001f7bf rwx fmap.LOAD2
|
||||
- 2 fd: 3 +0x00020050 0x00021050 - 0x00022267 rwx fmap.LOAD3
|
||||
- 1 fd: 4 +0x00000000 0x00022268 - 0x00023557 rw- mmap.LOAD3
|
||||
EOF
|
||||
RUN
|
||||
|
||||
|
@ -400,17 +400,17 @@ EXPECT=<<EOF
|
||||
0x000007fe = ovf "AB"
|
||||
0x000fffff = ovf ""
|
||||
|
||||
1 fd: 3 +0x00000000 0x000003e8 - 0x00000be7 rwx
|
||||
* 1 fd: 3 +0x00000000 0x000003e8 - 0x00000be7 rwx
|
||||
----
|
||||
2 fd: 3 +0x00000400 0x000007e8 - 0x00000be7 rwx
|
||||
1 fd: 3 +0x00000000 0x000003e8 - 0x000007e7 rwx
|
||||
* 2 fd: 3 +0x00000400 0x000007e8 - 0x00000be7 rwx
|
||||
- 1 fd: 3 +0x00000000 0x000003e8 - 0x000007e7 rwx
|
||||
0x000007e7 = "CD"
|
||||
----
|
||||
2 fd: 3 +0x00000400 0x000007e8 - 0x00000be7 -wx
|
||||
1 fd: 3 +0x00000000 0x000003e8 - 0x000007e7 rwx
|
||||
* 2 fd: 3 +0x00000400 0x000007e8 - 0x00000be7 -wx
|
||||
- 1 fd: 3 +0x00000000 0x000003e8 - 0x000007e7 rwx
|
||||
0x000007e7 = ovf "C"
|
||||
----
|
||||
1 fd: 3 +0x00000000 0x000003e8 - 0x000007e7 rwx
|
||||
- 1 fd: 3 +0x00000000 0x000003e8 - 0x000007e7 rwx
|
||||
0x000007e7 = ovf "C"
|
||||
|
||||
0x000fffff = "12"
|
||||
|
@ -343,9 +343,9 @@ EOF
|
||||
EXPECT=<<EOF
|
||||
3 * r-x 0x000021da bins/elf/analysis/main
|
||||
4 - rw- 0x00000008 null://8
|
||||
3 fd: 3 +0x00000000 0x00001337 - 0x00001a12 r-x fmap.LOAD0
|
||||
2 fd: 3 +0x000006e0 0x00201a17 - 0x00201c46 r-- fmap.LOAD1
|
||||
1 fd: 4 +0x00000000 0x00201c47 - 0x00201c4e rw- mmap.LOAD1
|
||||
- 3 fd: 3 +0x00000000 0x00001337 - 0x00001a12 r-x fmap.LOAD0
|
||||
- 2 fd: 3 +0x000006e0 0x00201a17 - 0x00201c46 r-- fmap.LOAD1
|
||||
- 1 fd: 4 +0x00000000 0x00201c47 - 0x00201c4e rw- mmap.LOAD1
|
||||
om 4 0x00201c47 0x00000008 0x00000000 rw- mmap.LOAD1
|
||||
om 3 0x00201a17 0x00000230 0x000006e0 r-- fmap.LOAD1
|
||||
om 3 0x00001337 0x000006dc 0x00000000 r-x fmap.LOAD0
|
||||
@ -385,7 +385,7 @@ om*~[2]
|
||||
EOF
|
||||
EXPECT=<<EOF
|
||||
3 * r-x 0x000021da bins/elf/analysis/main
|
||||
1 fd: 3 +0x00000000 0x00001337 - 0x00003510 r-x
|
||||
- 1 fd: 3 +0x00000000 0x00001337 - 0x00003510 r-x
|
||||
om 3 0x00001337 0x000021da 0x00000000 r-x
|
||||
--
|
||||
--
|
||||
@ -425,15 +425,15 @@ EXPECT=<<EOF
|
||||
5 - rw- 0x00002200 null://8704
|
||||
6 - r-- 0x00000400 null://1024
|
||||
7 - r-x 0x00000200 null://512
|
||||
9 fd: 3 +0x00000400 0x140001000 - 0x14001adff r-x fmap..text
|
||||
8 fd: 7 +0x00000000 0x14001ae00 - 0x14001afff r-x mmap..text
|
||||
7 fd: 3 +0x0001a200 0x14001b000 - 0x14001dbff r-- fmap..rdata
|
||||
6 fd: 6 +0x00000000 0x14001dc00 - 0x14001dfff r-- mmap..rdata
|
||||
5 fd: 3 +0x0001ce00 0x14001e000 - 0x14001fdff r-- fmap..data
|
||||
4 fd: 5 +0x00000000 0x14001fe00 - 0x140021fff rw- mmap..data
|
||||
3 fd: 3 +0x0001ec00 0x140022000 - 0x140022fff r-- fmap..pdata
|
||||
2 fd: 3 +0x0001fc00 0x140023000 - 0x1400231ff r-- fmap..reloc
|
||||
1 fd: 4 +0x00000000 0x140023200 - 0x140023fff r-- mmap..reloc
|
||||
- 9 fd: 3 +0x00000400 0x140001000 - 0x14001adff r-x fmap..text
|
||||
- 8 fd: 7 +0x00000000 0x14001ae00 - 0x14001afff r-x mmap..text
|
||||
- 7 fd: 3 +0x0001a200 0x14001b000 - 0x14001dbff r-- fmap..rdata
|
||||
- 6 fd: 6 +0x00000000 0x14001dc00 - 0x14001dfff r-- mmap..rdata
|
||||
- 5 fd: 3 +0x0001ce00 0x14001e000 - 0x14001fdff r-- fmap..data
|
||||
- 4 fd: 5 +0x00000000 0x14001fe00 - 0x140021fff rw- mmap..data
|
||||
- 3 fd: 3 +0x0001ec00 0x140022000 - 0x140022fff r-- fmap..pdata
|
||||
- 2 fd: 3 +0x0001fc00 0x140023000 - 0x1400231ff r-- fmap..reloc
|
||||
- 1 fd: 4 +0x00000000 0x140023200 - 0x140023fff r-- mmap..reloc
|
||||
om 4 0x140023200 0x00000e00 0x00000000 r-- mmap..reloc
|
||||
om 3 0x140023000 0x00000200 0x0001fc00 r-- fmap..reloc
|
||||
om 3 0x140022000 0x00001000 0x0001ec00 r-- fmap..pdata
|
||||
|
@ -10,6 +10,6 @@ NAME=display mapped flag in sections list
|
||||
FILE=bins/elf/analysis/x86-simple
|
||||
CMDS=om
|
||||
EXPECT=<<EOF
|
||||
1 fd: 3 +0x00000000 0x08048000 - 0x08048071 r-x fmap.LOAD0
|
||||
- 1 fd: 3 +0x00000000 0x08048000 - 0x08048071 r-x fmap.LOAD0
|
||||
EOF
|
||||
RUN
|
||||
|
@ -72,8 +72,8 @@ NAME=tiny coff
|
||||
FILE=bins/coff/coff.obj
|
||||
CMDS=om;is;ir
|
||||
EXPECT=<<EOF
|
||||
2 fd: 3 +0x00000064 0x00000000 - 0x00000026 r-x fmap..text_0
|
||||
1 fd: 3 +0x0000008b 0x00000030 - 0x0000004b r-- fmap..data_1
|
||||
- 2 fd: 3 +0x00000064 0x00000000 - 0x00000026 r-x fmap..text_0
|
||||
- 1 fd: 3 +0x0000008b 0x00000030 - 0x0000004b r-- fmap..data_1
|
||||
[Symbols]
|
||||
|
||||
nth paddr vaddr bind type size lib name
|
||||
@ -106,15 +106,15 @@ s sym.__1FooBar__QAE_XZ
|
||||
pd 2
|
||||
EOF
|
||||
EXPECT=<<EOF
|
||||
9 fd: 3 +0x0000017c 0x00000000 - 0x000000ee --- fmap..drectve_0
|
||||
8 fd: 3 +0x0000026b 0x000000f0 - 0x00000b9f r-- fmap..debug_S_1
|
||||
7 fd: 3 +0x00000d1b 0x00000ba0 - 0x00000c13 r-- fmap..debug_T_2
|
||||
6 fd: 3 +0x00000d8f 0x00000c20 - 0x00000c4c r-x fmap..text_mn_3
|
||||
5 fd: 3 +0x00000dbc 0x00000c50 - 0x00000d23 r-- fmap..debug_S_4
|
||||
4 fd: 3 +0x00000ec2 0x00000d30 - 0x00000d59 r-x fmap..text_mn_5
|
||||
3 fd: 3 +0x00000eec 0x00000d60 - 0x00000e33 r-- fmap..debug_S_6
|
||||
2 fd: 3 +0x00000ff2 0x00000e40 - 0x00000e43 r-- fmap..rtc_IMZ_7
|
||||
1 fd: 3 +0x00001000 0x00000e50 - 0x00000e53 r-- fmap..rtc_TMZ_8
|
||||
- 9 fd: 3 +0x0000017c 0x00000000 - 0x000000ee --- fmap..drectve_0
|
||||
- 8 fd: 3 +0x0000026b 0x000000f0 - 0x00000b9f r-- fmap..debug_S_1
|
||||
- 7 fd: 3 +0x00000d1b 0x00000ba0 - 0x00000c13 r-- fmap..debug_T_2
|
||||
- 6 fd: 3 +0x00000d8f 0x00000c20 - 0x00000c4c r-x fmap..text_mn_3
|
||||
- 5 fd: 3 +0x00000dbc 0x00000c50 - 0x00000d23 r-- fmap..debug_S_4
|
||||
- 4 fd: 3 +0x00000ec2 0x00000d30 - 0x00000d59 r-x fmap..text_mn_5
|
||||
- 3 fd: 3 +0x00000eec 0x00000d60 - 0x00000e33 r-- fmap..debug_S_6
|
||||
- 2 fd: 3 +0x00000ff2 0x00000e40 - 0x00000e43 r-- fmap..rtc_IMZ_7
|
||||
- 1 fd: 3 +0x00001000 0x00000e50 - 0x00000e53 r-- fmap..rtc_TMZ_8
|
||||
0 0x00000d8f 0x00000c20 LOCAL SECT 4 .text$mn
|
||||
0 0x00000ec2 0x00000d30 LOCAL SECT 4 .text$mn
|
||||
;-- section..text_mn_5:
|
||||
|
@ -5,8 +5,8 @@ om
|
||||
s
|
||||
EOF
|
||||
EXPECT=<<EOF
|
||||
2 fd: 3 +0x0000035d 0x0000035d - 0x00000368 r-x fmap.code
|
||||
1 fd: 3 +0x00000000 0x00000000 - 0x0000041b r-- fmap.file
|
||||
- 2 fd: 3 +0x0000035d 0x0000035d - 0x00000368 r-x fmap.code
|
||||
- 1 fd: 3 +0x00000000 0x00000000 - 0x0000041b r-- fmap.file
|
||||
0x35d
|
||||
EOF
|
||||
RUN
|
||||
|
@ -2,7 +2,7 @@ NAME=./helloworld-phdr-elf
|
||||
FILE=bins/elf/analysis/x86-helloworld-phdr
|
||||
CMDS=om
|
||||
EXPECT=<<EOF
|
||||
2 fd: 3 +0x00000000 0x08048000 - 0x080480ff r-x fmap.LOAD0
|
||||
1 fd: 3 +0x00000130 0x08049130 - 0x0804922f r-x fmap.LOAD1
|
||||
- 2 fd: 3 +0x00000000 0x08048000 - 0x080480ff r-x fmap.LOAD0
|
||||
- 1 fd: 3 +0x00000130 0x08049130 - 0x0804922f r-x fmap.LOAD1
|
||||
EOF
|
||||
RUN
|
||||
|
@ -15,6 +15,6 @@ NAME=ELF: corkami tiny.elf - sections
|
||||
FILE=bins/elf/analysis/tiny.elf
|
||||
CMDS=om
|
||||
EXPECT=<<EOF
|
||||
1 fd: 3 +0x00000000 0x00010000 - 0x0002001f r-- fmap.LOAD0
|
||||
- 1 fd: 3 +0x00000000 0x00010000 - 0x0002001f r-- fmap.LOAD0
|
||||
EOF
|
||||
RUN
|
||||
|
@ -2,7 +2,7 @@ NAME=GBA: 3D - S
|
||||
FILE=bins/gba/3D.gba
|
||||
CMDS=om
|
||||
EXPECT=<<EOF
|
||||
2 fd: 3 +0x00000000 0x08000000 - 0x080105cb r-x fmap.ROM
|
||||
1 fd: 4 +0x00000000 0x080105cc - 0x09ffffff r-x mmap.ROM
|
||||
- 2 fd: 3 +0x00000000 0x08000000 - 0x080105cb r-x fmap.ROM
|
||||
- 1 fd: 4 +0x00000000 0x080105cc - 0x09ffffff r-x mmap.ROM
|
||||
EOF
|
||||
RUN
|
||||
|
@ -20,6 +20,6 @@ nth paddr size vaddr vsize perm name
|
||||
0000:0000 30ff xor bh, bh ; [01] -rwx section size 1 named seg_001
|
||||
0000:0002 ff invalid
|
||||
0000:0003 ff invalid
|
||||
1 fd: 3 +0x00000200 0x00000000 - 0x00000000 r-x fmap.seg_001
|
||||
- 1 fd: 3 +0x00000200 0x00000000 - 0x00000000 r-x fmap.seg_001
|
||||
EOF
|
||||
RUN
|
||||
|
@ -32,7 +32,7 @@ NAME=PE: corkami CoST.exe - sections list
|
||||
FILE=bins/pe/CoST.exe
|
||||
CMDS=om
|
||||
EXPECT=<<EOF
|
||||
1 fd: 3 +0x00000000 0x7efd0000 - 0x7efd5169 r-x fmap.blob
|
||||
- 1 fd: 3 +0x00000000 0x7efd0000 - 0x7efd5169 r-x fmap.blob
|
||||
EOF
|
||||
RUN
|
||||
|
||||
|
@ -15,14 +15,14 @@ NAME=PE: hello cxx - sections
|
||||
FILE=bins/pe/hellocxx-mingw32.exe
|
||||
CMDS=om
|
||||
EXPECT=<<EOF
|
||||
9 fd: 3 +0x00000400 0x00401000 - 0x00440bff r-x fmap..text
|
||||
8 fd: 6 +0x00000000 0x00440c00 - 0x00440fff r-- mmap..text
|
||||
7 fd: 3 +0x00040000 0x00441000 - 0x004411ff r-- fmap..data
|
||||
6 fd: 7 +0x00000000 0x00441200 - 0x00441fff rw- mmap..data
|
||||
5 fd: 3 +0x00040200 0x00442000 - 0x00444bff r-- fmap..rdata
|
||||
4 fd: 6 +0x00000000 0x00444c00 - 0x00444fff r-- mmap..rdata
|
||||
3 fd: 5 +0x00000000 0x00445000 - 0x00446fff rw- mmap..bss
|
||||
2 fd: 3 +0x00042e00 0x00447000 - 0x004477ff r-- fmap..idata
|
||||
1 fd: 4 +0x00000000 0x00447800 - 0x00447fff rw- mmap..idata
|
||||
- 9 fd: 3 +0x00000400 0x00401000 - 0x00440bff r-x fmap..text
|
||||
- 8 fd: 6 +0x00000000 0x00440c00 - 0x00440fff r-- mmap..text
|
||||
- 7 fd: 3 +0x00040000 0x00441000 - 0x004411ff r-- fmap..data
|
||||
- 6 fd: 7 +0x00000000 0x00441200 - 0x00441fff rw- mmap..data
|
||||
- 5 fd: 3 +0x00040200 0x00442000 - 0x00444bff r-- fmap..rdata
|
||||
- 4 fd: 6 +0x00000000 0x00444c00 - 0x00444fff r-- mmap..rdata
|
||||
- 3 fd: 5 +0x00000000 0x00445000 - 0x00446fff rw- mmap..bss
|
||||
- 2 fd: 3 +0x00042e00 0x00447000 - 0x004477ff r-- fmap..idata
|
||||
- 1 fd: 4 +0x00000000 0x00447800 - 0x00447fff rw- mmap..idata
|
||||
EOF
|
||||
RUN
|
||||
|
@ -9,7 +9,7 @@ NAME=1: PE: nosectionW7 - entrypoint
|
||||
FILE=bins/pe/nosectionW7.exe
|
||||
CMDS=om
|
||||
EXPECT=<<EOF
|
||||
1 fd: 3 +0x00000138 0x00400138 - 0x0040023f r-x fmap.blob
|
||||
- 1 fd: 3 +0x00000138 0x00400138 - 0x0040023f r-x fmap.blob
|
||||
EOF
|
||||
RUN
|
||||
|
||||
|
@ -9,7 +9,7 @@ NAME=PE: nosectionXP - section
|
||||
FILE=bins/pe/nosectionXP.exe
|
||||
CMDS=om
|
||||
EXPECT=<<EOF
|
||||
1 fd: 3 +0x00000138 0x00400138 - 0x00400236 r-x fmap.blob
|
||||
- 1 fd: 3 +0x00000138 0x00400138 - 0x00400236 r-x fmap.blob
|
||||
EOF
|
||||
RUN
|
||||
|
||||
|
@ -18,6 +18,6 @@ NAME=VSF: Rambo II- ROMs
|
||||
FILE=bins/vsf/c64-rambo2-norom.vsf
|
||||
CMDS=om
|
||||
EXPECT=<<EOF
|
||||
1 fd: 3 +0x00000084 0x00000000 - 0x0000ffff r-x fmap.RAM
|
||||
* 1 fd: 3 +0x00000084 0x00000000 - 0x0000ffff r-x fmap.RAM
|
||||
EOF
|
||||
RUN
|
||||
|
@ -18,8 +18,8 @@ NAME=VSF: Rambo II- ROMs
|
||||
FILE=bins/vsf/c64-rambo2-rom.vsf
|
||||
CMDS=om
|
||||
EXPECT=<<EOF
|
||||
3 fd: 3 +0x0001209d 0x0000a000 - 0x0000bfff r-x fmap.BASIC
|
||||
2 fd: 3 +0x0001009d 0x0000e000 - 0x0000ffff r-x fmap.KERNAL
|
||||
1 fd: 3 +0x00000084 0x00000000 - 0x0000ffff r-x fmap.RAM
|
||||
- 3 fd: 3 +0x0001209d 0x0000a000 - 0x0000bfff r-x fmap.BASIC
|
||||
- 2 fd: 3 +0x0001009d 0x0000e000 - 0x0000ffff r-x fmap.KERNAL
|
||||
* 1 fd: 3 +0x00000084 0x00000000 - 0x0000ffff r-x fmap.RAM
|
||||
EOF
|
||||
RUN
|
||||
|
@ -18,7 +18,7 @@ NAME=VSF: Rocky Horror Picture Show- ROMs
|
||||
FILE=bins/vsf/c128-rhps-norom.vsf
|
||||
CMDS=om
|
||||
EXPECT=<<EOF
|
||||
2 fd: 3 +0x0000008c 0x00000000 - 0x0000ffff r-x fmap.RAM_BANK_0
|
||||
1 fd: 3 +0x0001008c 0x00000000 - 0x0000ffff r-x fmap.RAM_BANK_1
|
||||
- 2 fd: 3 +0x0000008c 0x00000000 - 0x0000ffff r-x fmap.RAM_BANK_0
|
||||
- 1 fd: 3 +0x0001008c 0x00000000 - 0x0000ffff r-x fmap.RAM_BANK_1
|
||||
EOF
|
||||
RUN
|
||||
|
@ -18,11 +18,11 @@ NAME=VSF: Rocky Horror Picture Show- ROMs
|
||||
FILE=bins/vsf/c128-rhps-rom.vsf
|
||||
CMDS=om
|
||||
EXPECT=<<EOF
|
||||
6 fd: 3 +0x000420a1 0x00004000 - 0x0000afff r-x fmap.BASIC
|
||||
5 fd: 3 +0x000490a1 0x0000b000 - 0x0000bfff r-x fmap.MONITOR
|
||||
4 fd: 3 +0x0004a0a1 0x0000c000 - 0x0000cfff r-x fmap.EDITOR
|
||||
3 fd: 3 +0x000400a1 0x0000e000 - 0x0000ffff r-x fmap.KERNAL
|
||||
2 fd: 3 +0x0000008c 0x00000000 - 0x0000ffff r-x fmap.RAM_BANK_0
|
||||
1 fd: 3 +0x0001008c 0x00000000 - 0x0000ffff r-x fmap.RAM_BANK_1
|
||||
- 6 fd: 3 +0x000420a1 0x00004000 - 0x0000afff r-x fmap.BASIC
|
||||
- 5 fd: 3 +0x000490a1 0x0000b000 - 0x0000bfff r-x fmap.MONITOR
|
||||
- 4 fd: 3 +0x0004a0a1 0x0000c000 - 0x0000cfff r-x fmap.EDITOR
|
||||
- 3 fd: 3 +0x000400a1 0x0000e000 - 0x0000ffff r-x fmap.KERNAL
|
||||
- 2 fd: 3 +0x0000008c 0x00000000 - 0x0000ffff r-x fmap.RAM_BANK_0
|
||||
- 1 fd: 3 +0x0001008c 0x00000000 - 0x0000ffff r-x fmap.RAM_BANK_1
|
||||
EOF
|
||||
RUN
|
||||
|
@ -12,9 +12,9 @@ omb-*
|
||||
omb -1
|
||||
EOF
|
||||
EXPECT=<<EOF
|
||||
1 fd: 3 +0x00000000 0x00000000 - 0x000003ff rwx
|
||||
1 fd: 3 +0x00000000 0x00000000 - 0x000003ff rwx
|
||||
1 fd: 3 +0x00000000 0x00000000 - 0x000003ff rwx
|
||||
* 1 fd: 3 +0x00000000 0x00000000 - 0x000003ff rwx
|
||||
* 1 fd: 3 +0x00000000 0x00000000 - 0x000003ff rwx
|
||||
* 1 fd: 3 +0x00000000 0x00000000 - 0x000003ff rwx
|
||||
Usage: omb[jq,+] [fd] Operate on memory banks
|
||||
| omb list all memory banks
|
||||
| omb [id] switch to use a different bank
|
||||
|
@ -14,10 +14,10 @@ EOF
|
||||
EXPECT=<<EOF
|
||||
9090
|
||||
0000
|
||||
2 fd: 4 +0x00000000 0x00000000 - 0x000003ff rw-
|
||||
1 fd: 3 +0x00000000 0x00000000 - 0x000003ff rw-
|
||||
1 fd: 3 +0x00000000 0x00000000 - 0x000003ff rw-
|
||||
2 fd: 4 +0x00000000 0x00000000 - 0x000003ff rw-
|
||||
* 2 fd: 4 +0x00000000 0x00000000 - 0x000003ff rw-
|
||||
* 1 fd: 3 +0x00000000 0x00000000 - 0x000003ff rw-
|
||||
* 1 fd: 3 +0x00000000 0x00000000 - 0x000003ff rw-
|
||||
* 2 fd: 4 +0x00000000 0x00000000 - 0x000003ff rw-
|
||||
9090
|
||||
EOF
|
||||
RUN
|
||||
@ -178,13 +178,13 @@ $initial_map |.
|
||||
om # Output must be the same as initial om
|
||||
EOF
|
||||
EXPECT=<<EOF
|
||||
3 fd: 3 +0x00000000 0x08048000 - 0x08048a67 r-x fmap.LOAD0
|
||||
2 fd: 3 +0x00000ed4 0x08049ed4 - 0x0804a01f r-- fmap.LOAD1
|
||||
1 fd: 4 +0x00000000 0x0804a020 - 0x0804a023 rw- mmap.LOAD1
|
||||
- 3 fd: 3 +0x00000000 0x08048000 - 0x08048a67 r-x fmap.LOAD0
|
||||
- 2 fd: 3 +0x00000ed4 0x08049ed4 - 0x0804a01f r-- fmap.LOAD1
|
||||
- 1 fd: 4 +0x00000000 0x0804a020 - 0x0804a023 rw- mmap.LOAD1
|
||||
----
|
||||
----
|
||||
3 fd: 3 +0x00000000 0x08048000 - 0x08048a67 r-x fmap.LOAD0
|
||||
2 fd: 3 +0x00000ed4 0x08049ed4 - 0x0804a01f r-- fmap.LOAD1
|
||||
1 fd: 4 +0x00000000 0x0804a020 - 0x0804a023 rw- mmap.LOAD1
|
||||
- 3 fd: 3 +0x00000000 0x08048000 - 0x08048a67 r-x fmap.LOAD0
|
||||
- 2 fd: 3 +0x00000ed4 0x08049ed4 - 0x0804a01f r-- fmap.LOAD1
|
||||
- 1 fd: 4 +0x00000000 0x0804a020 - 0x0804a023 rw- mmap.LOAD1
|
||||
EOF
|
||||
RUN
|
||||
|
@ -9,8 +9,8 @@ om
|
||||
om. @ 0x300
|
||||
EOF
|
||||
EXPECT=<<EOF
|
||||
2 fd: 4 +0x00000000 0x00000300 - 0x000003ff rw- bbbbbb
|
||||
1 fd: 3 +0x00000000 0x00000000 - 0x000000ff rw- aaaaaa
|
||||
- 2 fd: 4 +0x00000000 0x00000300 - 0x000003ff rw- bbbbbb
|
||||
* 1 fd: 3 +0x00000000 0x00000000 - 0x000000ff rw- aaaaaa
|
||||
2 fd: 4 +0x00000000 0x00000300 - 0x000003ff rw- bbbbbb
|
||||
EOF
|
||||
RUN
|
||||
|
Loading…
Reference in New Issue
Block a user