radare2/test/new/db/cmd/bug_3788

46 lines
820 B
Plaintext

NAME=bug 3788 #1: search in virtual address
FILE=../bins/vsf/c64-rambo2-norom.vsf
EXPECT=<<EOF
0x0000008a hit0_0 ac6c6c68
EOF
CMDS=<<EOF
s 0
/x ac6c6c68
EOF
RUN
NAME=bug 3788 #2: search with multiple sections
FILE=../bins/vsf/c64-rambo2-rom.vsf
EXPECT=<<EOF
0x0000008a hit0_0 ac686b6d
EOF
CMDS=<<EOF
s 0
e search.in=bin.sections
/x ac686b6d
EOF
RUN
NAME=bug 3788 #3: cmd.hit
FILE=../bins/vsf/c64-rambo2-norom.vsf
EXPECT=<<EOF
0x0000008a hit0_0 ac6c6c68
- offset - 0 1 2 3 4 5 6 7 8 9 A B C D E F 0123456789ABCDEF
0x0000008a ac6c 6c68 6700 1200 0000 0000 0000 4b0f .llhg.........K.
EOF
CMDS=<<EOF
s 0
e cmd.hit = px 16
/x ac6c6c68
EOF
RUN
NAME=bug 3788 #4: no collision in VA
FILE=../bins/nes/Pong.nes
EXPECT=<<EOF
0x0000c020 hit0_0 8512a9208520
0x00008020 hit0_1 8512a9208520
EOF
CMDS=/x 8512a9208520
RUN